If I download the attachment from a normal mail client software (i.e. it's really strange, there's something I don't get. Name="No_Norm_AMLT_908_"Ĭontent-Disposition: attachment filename="No_Norm_AMLT_908_"Īnyway. The attachment var first lines are: From nobody Mon Oct 15 18:54:12 2012 Return gpg.decrypt_file(attachment.get_payload(), passphrase=settings.PGP_PASSPH) Gpg = gnupg.GPG(gnupghome=settings.PGP_PATH) Well, I tried a lot of different ways, but the most logical should be this: message = ssage_from_string(content) I can decrypt typical mail content, as: -BEGIN PGP MESSAGE-īut the attachment affair is really making my life a hell. I'm using email.Message class and gnupg library to:ġ - parse email string fetched from Twisted imap4 client.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |