acessing to the raw data of an email message
Jiba
jibalamy at free.fr
Sun Nov 26 13:34:56 EST 2006
Hi,
I'm using the email Python package for parsing mail and checking GPG signature.
The Message object doesn't store the raw message data. Message.as_string "rebuild" the whole message, for example it may gives:
Content-Disposition: attachment; filename=text.txt
whereas the original message was containing:
Content-Disposition: attachment;
filename=text.txt
From the RFC point of view, both are equivalent. However, when checking the signature using GPG, there are not the same for GPG, and thus the check fails.
Does anyone have an idea ? I think it would be nice to let the parser add the raw message data in the Message object.
Thanks,
Jiba
More information about the Python-list
mailing list