1.1.0 • Published 9 years ago
hubot-mail-listener v1.1.0
hubot-mail-listener
hubot-mail-listener adds an IMAP listener plugin to hubot that reports unread or incoming new emails (sender, subject, date, text message).
Message is put in as a slack message attachment

Installation
Edit the package.json for your hubot and add the hubot-mail-listener
dependency.
"dependencies": {
"hubot-mail-listener": ">= 0.0.1",
...
}Configuration
The following variables are required to let the script work:
HUBOT_MAIL_LISTENER_ROOMS, comma separated list of rooms where incoming emails should be postedHUBOT_MAIL_LISTENER_USERNAME, usernameHUBOT_MAIL_LISTENER_PASSWORD, passwordHUBOT_MAIL_LISTENER_HOST, mail host
The following variables are optional:
HUBOT_MAIL_LISTENER_PORT, mail host port, default to993HUBOT_MAIL_LISTENER_SECURE, whether to use secure connection, default totrueHUBOT_MAIL_LISTENER_MAILBOX, mail box to monitor, default toINBOXHUBOT_MAIL_LISTENER_MARK_SEEN, whether to mark seen email as read, default totrueHUBOT_MAIL_LISTENER_FETCH_UNREAD, whether to fetch unread emails on start, default totrue
See Also
This work is an updated and coffeescript free version of: https://github.com/matteoagosti/hubot-mail-notifier