payload is extracted later, we need the message object here

This commit is contained in:
b3yond 2018-10-05 10:56:34 +02:00
parent 34d43f1911
commit dc8f51c632

View file

@ -23,7 +23,7 @@ class Mailbot(Bot):
for msg in mails:
if get_date_from_header(msg['Date']) > user.get_seen_mail():
if user.get_city().lower() in msg['To'].lower():
reports.append(make_report(msg.get_payload(), user))
reports.append(make_report(msg, user))
return reports
# post/boost Report object