get text of email, not message object
This commit is contained in:
parent
2a4d517f1d
commit
34d43f1911
|
@ -23,7 +23,7 @@ class Mailbot(Bot):
|
||||||
for msg in mails:
|
for msg in mails:
|
||||||
if get_date_from_header(msg['Date']) > user.get_seen_mail():
|
if get_date_from_header(msg['Date']) > user.get_seen_mail():
|
||||||
if user.get_city().lower() in msg['To'].lower():
|
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
|
return reports
|
||||||
|
|
||||||
# post/boost Report object
|
# post/boost Report object
|
||||||
|
|
Loading…
Reference in a new issue