mirror of
https://github.com/narkoz/hacker-scripts
synced 2025-08-22 10:27:11 +00:00
Update kumar_asshole.py
prefetch=True prevents getting None for msg.body
This commit is contained in:
parent
c92451eaee
commit
3eeb95f0ea
@ -12,7 +12,7 @@ g = gmail.login(GMAIL_USERNAME, GMAIL_PASSWORD)
|
||||
if not g.logged_in:
|
||||
sys.exit()
|
||||
|
||||
msgs = g.inbox().mail(sender="kumar.a@example.com", unread=True)
|
||||
msgs = g.inbox().mail(sender="kumar.a@example.com", unread=True, prefetch=True)
|
||||
|
||||
pattern = re.compile("\bsorry\b | \bhelp\b | \bwrong\b ", flags=re.I)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user