Major be-handle-mail rewrite to make things more modular.
authorW. Trevor King <wking@drexel.edu>
Sat, 18 Jul 2009 20:16:13 +0000 (16:16 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 20 Mar 2012 21:20:03 +0000 (17:20 -0400)
Added Command and Message classes, and use new flexibility in
send_pgp_mime.py.

interfaces/email/interactive/send_pgp_mime.py

index 7a41550df2da1669141d1e63f78cf9ffd7ca250f..3a60013f4742849769db3adaa7a0a97c4d9d0caf 100644 (file)
@@ -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"