Add unicode-header handling to send_pgp_mime.py
authorW. Trevor King <wking@drexel.edu>
Wed, 15 Jul 2009 19:13:39 +0000 (15:13 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 20 Mar 2012 21:18:35 +0000 (17:18 -0400)
commit25e1078d121ec9bfc14c718c7b2da76ca1cc2a44
tree25ddee0bcea60a9a2bb09a3ea63edadb6ea8c8ad
parent660e262e69bf5c9e89c22f14a802218ec5843297
Add unicode-header handling to send_pgp_mime.py

Also:

Switched
 email.message_from_string()
to
 email.parser.Parser().parsestr()
for parsing the header, for access to the headersonly option.

Adjusted module import order to alphebetize non-mime email modules.

Added return_realname to source_email(), which makes it more useful to
be-handle-mail (currently uncommitted).

Added a doctest for the plain() output and removed redundant
Content-Type line from the doctests (which we'd removed from the
output with the last commit).

Note that many doctests _will_fail_ unless me@big.edu and you@big.edu
are in your gpg keyring.  At some point I should make those addresses
options to --test...
interfaces/email/interactive/send_pgp_mime.py