From 2fdec37f1f0c9011451f635c155b6ea802be1a06 Mon Sep 17 00:00:00 2001 From: Igor Rzegocki Date: Tue, 2 Apr 2013 21:30:53 +0200 Subject: [PATCH] Convert multi-part message parts to strings before joining them --- gpg-mailgate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpg-mailgate.py b/gpg-mailgate.py index dad0a36..f3855a4 100755 --- a/gpg-mailgate.py +++ b/gpg-mailgate.py @@ -41,7 +41,7 @@ def send_msg( message, recipients = None ): def get_msg( message ): if not message.is_multipart(): return message.get_payload() - return '\n\n'.join( message.get_payload() ) + return '\n\n'.join( [str(m) for m in message.get_payload()] ) gpg_to = list() ungpg_to = list()