Convert multi-part message parts to strings before joining them

This commit is contained in:
Igor Rzegocki 2013-04-02 21:30:53 +02:00
parent 496202505b
commit 2fdec37f1f
1 changed files with 1 additions and 1 deletions

View File

@ -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()