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>
Wed, 15 Jul 2009 19:13:39 +0000 (15:13 -0400)
commit6be75eed079b67cadf5a2566c1bf86d1df258580
treefa5c6a4b8efc0c592cfcc097f0681c893c7f8533
parente40048f10311f01a25cdd1872ac1dc014b9eef20
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