
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
imap-checker
Advanced tools
Check the IMAP server and return the first matching email.
var imapChecker = require('imap-checker');
const imapConfig = {
user: "user@gmail.com",
password: "password",
host: "imap.gmail.com",
port: 993,
tls: true,
tlsOptions: { rejectUnauthorized: false }
};
imapChecker.checkMail(imapConfig, {
timeout: 30000,
subject: '<subject>',
to: 'john@gmail.com',
from: 'bob@gmail.com',
interval: 2000
})
.then(email => console.log('>>>', email));
Or in ES6:
import imapChecker from 'imap-checker';
const imapConfig = {
user: "user@gmail.com",
password: "password",
host: "imap.gmail.com",
port: 993,
tls: true,
tlsOptions: { rejectUnauthorized: false }
};
const email = await imapChecker.checkMail(imapConfig, {
timeout: 30000,
subject: '<subject>',
to: 'john@gmail.com',
from: 'bob@gmail.com',
interval: 2000,
since: 24 * 3600 * 1000,
debug: true
});
console.log('>>>', email);
Different formats of email addresses are supported. For example, if you are looking for emails with sender's address as Joe Doe <joe@example.com>
, just search it as joe@example.com
.
FAQs
Check the email server and return the matching emails
The npm package imap-checker receives a total of 373 weekly downloads. As such, imap-checker popularity was classified as not popular.
We found that imap-checker 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.