diff options
-rwxr-xr-x | push.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -80,8 +80,9 @@ if title is not None and encoding is not None: # Lets at least try to handle mime multipart if mail.is_multipart(): # Try to find something plain text - for payload in mail.walk(): - if payload.get_content_type() == 'text/plain': + for current in mail.walk(): + if current.get_content_type() == 'text/plain': + payload = get_payload(decode=True) break else: # A realy stupid fallback |