Skip to content

Instantly share code, notes, and snippets.

View zhenpengtang's full-sized avatar

iiNet zhenpengtang

View GitHub Profile
@zhenpengtang
zhenpengtang / autoreplyer.py
Created June 4, 2019 23:30 — forked from BertrandBordage/autoreplyer.py
Automatically reply to unread and unanswered messages in Python
"""
Automatically replies to mails both unread and unanswered.
WARNING: This answers to any both unread and unanswered mail, even if it is years old.
Don’t use on a mailbox with old messages left unread and unanswered.
Simply subclass ``AutoReplyer``, define the undefined class attribute,
and call the ``run`` method on an instance. This loops until you stop the script
(using Ctrl+C, typically) or until an error occurs, like a network failure.