imapnotify

Execute scripts on new messages using IDLE imap command

npm install imapnotify
1 downloads in the last week
6 downloads in the last month

imapnotify

Execute scripts on new messages using IDLE imap command

config

{
  "host": "",
  "port": ,
  "tls": true,
  "tlsOptions": { "rejectUnauthorized": false },
  "username": "",
  "password": "",
  "onNewMail": "/usr/bin/mbsync test-%s",
  "onNewMailPost": "/usr/bin/notmuch new",
  "boxes":
    [
      "box1",
      "box2/box3"
    ]
}

install

npm: npm install -g imapnotify

usage

imapnotify -c /path/to/config

npm loves you