2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-22 18:37:10 +00:00

Merge pull request #119 from lgmoneda/patch-1

Update kumar_asshole.py
This commit is contained in:
Nihad Abbasov 2015-12-30 04:07:16 +04:00
commit 533b8b489a

View File

@ -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)