payload is extracted later, we need the message object here
This commit is contained in:
parent
34d43f1911
commit
dc8f51c632
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue