Added "to_unicode" to send_pgp_mime.flatten()
authorW. Trevor King <wking@drexel.edu>
Sat, 18 Jul 2009 13:21:03 +0000 (09:21 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 20 Mar 2012 21:19:16 +0000 (17:19 -0400)
commit241eda92a82b8917e53a4fa568030df268a788f2
tree9378828c7170de3c4ae7b8d38151279b13ad69a9
parent57b256f11548d5bf3f1597f7fac4ab2dc16e04c0
Added "to_unicode" to send_pgp_mime.flatten()

be-handle-mail wants unicode output, since all it's internal
processing is done with unicode.  However, the flatten calls in
send_pgp_mime work with the encoded binary string output, and
execute(sendmail, stdin=flatten(msg, to_unicode=True)) fails
with
  Exception: u
  while executing /usr/sbin/sendmail -t
  sendmail: fatal: wking(1001): No recipient addresses found in message header
interfaces/email/interactive/send_pgp_mime.py