
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mail-notifier2
Advanced tools
Notify your nodejs scripts of incoming imap mail.
Send mail event for each new email in IMAP INBOX.
Start listening new mails :
var notifier = require('mail-notifier');
var imap = {
username: "yourimapuser",
password: "yourimappassword",
host: "imap.host.com",
port: 993, // imap port
secure: true // use secure connection
};
notifier(imap).on('mail',function(mail){console.log(mail);}).start();
$ npm install mail-notifier
The constructor function creates a new notifier. Parameter provide options needed for imap connection.
config :
host : imap server hostport : imap server port numberusername : imap user namepassword : imap passwordsecure : need secure connection to serverStart listening for incomming emails.
Stop listening and close IMAP connection.
Sent on incoming new unread email. The parsed Mail is given as first parameter to the event listener.
Sent when an error occurs with the IMAP connection. The first parameter is the err object.
Sent when the IMAP connection is closed. This usually happens after a stop method call.
This module relies heavily on node-imap.
FAQs
Nodejs library to get notified on new incoming email.
We found that mail-notifier2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.