aboutsummaryrefslogtreecommitdiffstats
path: root/push.py
diff options
context:
space:
mode:
Diffstat (limited to 'push.py')
-rwxr-xr-xpush.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/push.py b/push.py
index 1a12f27..27e44a6 100755
--- a/push.py
+++ b/push.py
@@ -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