import rfc822 # email headers and such
Matthew Schinckel
matt at null.net
Tue Aug 22 10:44:14 EDT 2000
In message <39999AED.F412E930 at ix.netcom.com>, Thomas Gagne wrote:
> I may soon have the need to accept as input to Python an email message that
> will either a) have an XML document attached to it or b) have XML as the
> body
> of the message. I don't see mothods int he rfc822 module for accessing the
> body, or attachments, much less decoding them if necessary.
>
> Maybe there's another module for that?
>
Certainly is: try looking in the next few pages after rfc822.
mimetools and multifile in particular.
Then use any XML extraction tools to get the data (treated like a file object).
--
Matthew Schinckel <matt at null.net>
More information about the Python-list
mailing list