UNPKG

imapflow

Version:

IMAP Client for Node

14 lines (12 loc) 342 B
'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; } };