Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imapflow

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imapflow - npm Package Compare versions

Comparing version 1.0.131 to 1.0.132

1

lib/commands/close.js

@@ -17,2 +17,3 @@ 'use strict';

connection.mailbox = false;
connection.mailboxOptions = false;
connection.state = connection.states.AUTHENTICATED;

@@ -19,0 +20,0 @@

@@ -153,3 +153,13 @@ 'use strict';

let idleCheck = async () => {
let response = await connection.exec('NOOP', false, { comment: 'IDLE not supported' });
let response;
switch (connection.missingIdleCommand) {
case 'SELECT':
connection.log.debug({ src: 'c', msg: `Running SELECT to detect changes in folder` });
response = await connection.exec('SELECT', connection.mailbox.path, connection.mailboxOptions);
break;
case 'NOOP':
default:
response = await connection.exec('NOOP', false, { comment: 'IDLE not supported' });
break;
}
response.next();

@@ -156,0 +166,0 @@ };

@@ -186,2 +186,3 @@ 'use strict';

connection.mailbox = map;
connection.mailboxOptions = options;
connection.state = connection.states.SELECTED;

@@ -208,2 +209,3 @@

connection.mailbox = false;
connection.mailboxOptions = false;
connection.state = connection.states.AUTHENTICATED;

@@ -210,0 +212,0 @@

@@ -357,2 +357,10 @@ /* eslint no-control-regex:0 */

processName(name) {
name = (name || '').toString();
if (name.length > 2 && name.at(0) === '"' && name.at(-1) === '"') {
name = name.replace(/^"|"$/g, '');
}
return name;
},
parseEnvelope(entry) {

@@ -374,3 +382,3 @@ let getStrValue = obj => {

return [].concat(list || []).map(addr => ({
name: libmime.decodeWords(getStrValue(addr[0]) || ''),
name: module.exports.processName(libmime.decodeWords(getStrValue(addr[0]))),
address: (getStrValue(addr[2]) || '') + '@' + (getStrValue(addr[3]) || '')

@@ -377,0 +385,0 @@ }));

@@ -32,2 +32,3 @@ /// <reference types="node" />

* @param [options.maxIdleTime] - If set, then breaks and restarts IDLE every maxIdleTime ms
* @param [options.missingIdleCommand = "NOOP"] - Which command to use if server does not support IDLE
* @param [options.disableBinary = false] - If true, then ignores the BINARY extension when making FETCH and APPEND calls

@@ -65,2 +66,3 @@ * @param [options.disableAutoEnable] - Do not enable supported extensions by default

maxIdleTime?: number;
missingIdleCommand?: string;
disableBinary?: boolean;

@@ -67,0 +69,0 @@ disableAutoEnable?: boolean;

2

package.json
{
"name": "imapflow",
"version": "1.0.131",
"version": "1.0.132",
"description": "IMAP Client for Node",

@@ -5,0 +5,0 @@ "main": "./lib/imap-flow.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc