get text of email, not message object

This commit is contained in:
b3yond 2018-09-25 11:06:08 +02:00
parent 2a4d517f1d
commit 34d43f1911

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, user))
reports.append(make_report(msg.get_payload(), user))
return reports
# post/boost Report object