From: W. Trevor King Date: Wed, 15 Jul 2009 19:48:55 +0000 (-0400) Subject: Oops, the header keys in be-handle-mail should all be unicode. X-Git-Tag: 1.0.0~62^2~46^2~66 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c3bb31ecee8f3736cb98f9f99b788639ec1c591b;p=be.git Oops, the header keys in be-handle-mail should all be unicode. Even though I convert to ascii in send_pgp_mime.Mail.__init__(), it's still good to be consistent inside each module ;). --- diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail index c92fec4..8232925 100755 --- a/interfaces/email/interactive/be-handle-mail +++ b/interfaces/email/interactive/be-handle-mail @@ -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,