()
| 32 | |
| 33 | |
| 34 | def main(): |
| 35 | g = gmail.login(GMAIL_USERNAME, GMAIL_PASSWORD) |
| 36 | for mail in g.inbox().mail(unread=True, sender=KUMAR_EMAIL, prefetch=True): |
| 37 | if KEYWORDS_REGEX.search(mail.body): |
| 38 | # Restore DB and send a reply. |
| 39 | mail.add_label('Database fixes') |
| 40 | send_reply(mail.subject) |
| 41 | |
| 42 | |
| 43 | if __name__ == '__main__': |
no test coverage detected