NeahNew/node_modules/imapflow/lib/commands/noop.js
2025-05-03 14:17:46 +02:00

14 lines
342 B
JavaScript

'use strict';
// Sends a NO-OP command
module.exports = async connection => {
try {
let response = await connection.exec('NOOP', false, { comment: 'Requested by command' });
response.next();
return true;
} catch (err) {
connection.log.warn({ err, cid: connection.id });
return false;
}
};