acessing to the raw data of an email message

J

Jiba

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
 
F

Fredrik Lundh

Jiba said:
Does anyone have an idea ? I think it would be nice to let the
> parser add the raw message data in the Message object.

since you're the one passing the raw data to the email parser, maybe you
could store it somewhere yourself?

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top