hubot-mail-notifier adds an IMAP notifier plugin to hubot that reports unread or incoming new emails (sender, subject, date, text message).
Edit the package.json
for your hubot and add the hubot-mail-notifier
dependency.
"dependencies": {
"hubot-mail-notifier": ">= 0.0.1",
...
}
The following variables are required to let the script work:
HUBOT_MAIL_NOTIFIER_ROOMS
, comma separated list of rooms where incoming emails should be postedHUBOT_MAIL_NOTIFIER_USERNAME
, usernameHUBOT_MAIL_NOTIFIER_PASSWORD
, passwordHUBOT_MAIL_NOTIFIER_HOST
, mail host
The following variables are optional:
HUBOT_MAIL_NOTIFIER_PORT
, mail host port, default to993
HUBOT_MAIL_NOTIFIER_SECURE
, whether to use secure connection, default totrue
HUBOT_MAIL_NOTIFIER_MAILBOX
, mail box to monitor, default toINBOX
HUBOT_MAIL_NOTIFIER_MARK_SEEN
, whether to mark seen email as read, default totrue
HUBOT_MAIL_NOTIFIER_FETCH_UNREAD
, whether to fetch unread emails on start, default totrue
- Support for POP3
- Reporting of HTML content
- Reporting of attachments
This work is heavily inspired by the mail-listener node module.