Oops, the header keys in be-handle-mail should all be unicode.
authorW. Trevor King <wking@drexel.edu>
Wed, 15 Jul 2009 19:48:55 +0000 (15:48 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 15 Jul 2009 19:48:55 +0000 (15:48 -0400)
Even though I convert to ascii in send_pgp_mime.Mail.__init__(), it's
still good to be consistent inside each module ;).

interfaces/email/interactive/be-handle-mail

index c92fec4780eb61d5d139d8f83f225f9cd71f94da..8232925bed1f1c27e9f27759e880566b7e1a27eb 100755 (executable)
@@ -139,10 +139,10 @@ def run_message(msg_text):
     author_addr = "wking"
     response_header = [u"From: %s" % HANDLER_ADDRESS,
                        u"To: %s" % author_addr,
-                       "Date: %s" % libbe.utility.time_to_str(time.time()),
-                       "Content-Type: text/plain; charset=%s" % encoding,
-                       "Content-Transfer-Encoding: 8bit",
-                       "In-reply-to: %s" % (id),
+                       u"Date: %s" % libbe.utility.time_to_str(time.time()),
+                       u"Content-Type: text/plain; charset=%s" % encoding,
+                       u"Content-Transfer-Encoding: 8bit",
+                       u"In-reply-to: %s" % (id),
                        u"Subject: %s Re: %s" % (SUBJECT_COMMENT, command),
                        ]
     response_body = [u"Results of running: (exit code %d)" % ret,