Open LanXiaoChr opened 2 years ago
` let imap = new Imap({
user: 'xxxxxx@xxx.com',
password: 'xxxxxxxx',
host: 'imap.xxxx.com',
port: 993,
tls: true,
keepalive: {
interval: 10000,
idleInterval: 0,
forceNoop: true,
},
}) ` / This is the interval (in milliseconds) at which NOOPs are sent and the interval at which idleInterval is checked. Default: 10000 */ interval?: number | undefined; /* This is the interval (in milliseconds) at which an IDLE command (for servers that support IDLE) is re-sent. Default: 300000 (5 mins) / idleInterval?: number | undefined; / Set to true to force use of NOOP keepalive on servers also support IDLE. Default: false */ forceNoop?: boolean | undefined;
When I receive a new email in my work email, the ‘mail’ event doesn't fire. It's the same when I use my private email. Sometimes, when I rerun the program it may work but most of the time it doesn't.
Log: