module email

Sergey Dorofeev sergey at fidoman.ru
Thu Jan 25 05:55:27 EST 2007


"Rob Wolfe" <rw at smsnet.pl> wrote in message news:874pqgf7hb.fsf at smsnet.pl...

>> p2=email.message.Message()
>> p2.set_type("message/rfc822")
>> p2.set_payload(m)
>
> Payload is a _list_ of Message objects (is_multipart() == True)
> or a _string_ object (is_multipart() == False) but never just Message 
> object.

1. If I give m.as_string() into set_payload, result is the same.
2. I don't understand, how message/rfc822 section can accept a list of two 
or more messages. Can you explain?





More information about the Python-list mailing list