From: W. Trevor King Date: Sat, 18 Jul 2009 20:16:13 +0000 (-0400) Subject: Major be-handle-mail rewrite to make things more modular. X-Git-Tag: v0.2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=11dd056b0f553661714ec0970679cc47784170bb;p=pgp-mime.git Major be-handle-mail rewrite to make things more modular. Added Command and Message classes, and use new flexibility in send_pgp_mime.py. --- diff --git a/interfaces/email/interactive/send_pgp_mime.py b/interfaces/email/interactive/send_pgp_mime.py index 7a41550..3a60013 100644 --- a/interfaces/email/interactive/send_pgp_mime.py +++ b/interfaces/email/interactive/send_pgp_mime.py @@ -158,7 +158,7 @@ def attach_root(header, root_part): Attach the email.Message root_part to the email.Message header without generating a multi-part message. """ - for k,v in self.header.items(): + for k,v in header.items(): root_part[k] = v return root_part @@ -243,7 +243,7 @@ def target_emails(msg): + resent_ccs + resent_bccs) return [addr[1] for addr in all_recipients] -class EncryptedMessageFactory (object): +class PGPMimeMessageFactory (object): """ See http://www.ietf.org/rfc/rfc3156.txt for specification details. >>> from_addr = "me@big.edu"