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>
Sat, 18 Jul 2009 13:21:03 +0000 (09:21 -0400)
commitc1a84ab2e9fbdc28fde4ba377e65e9c8e53ee64f
tree3e0f21bcdc5fd928fe64e6c0565c3613864a8ae6
parent6c0b67973dd95dfdc0ddfb29edfb793773f7115c
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/be-handle-mail
interfaces/email/interactive/send_pgp_mime.py