From 8ed32d7fa9e85212708b35d68339699e128343e0 Mon Sep 17 00:00:00 2001 From: Dominik Gehl Date: Thu, 17 Oct 2013 15:53:05 -0400 Subject: [PATCH] added support for ENVELOPE fetch --- lib/Connection.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Connection.js b/lib/Connection.js index e765ff5..ebcbc5f 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -20,6 +20,7 @@ var MAX_INT = 9007199254740992, 'RFC822.SIZE': 'size', 'BODY': 'struct', 'BODYSTRUCTURE': 'struct', + 'ENVELOPE': 'envelope', 'INTERNALDATE': 'date' }, CRLF = '\r\n', @@ -714,6 +715,8 @@ Connection.prototype._fetch = function(which, uids, options) { if (options) { modifiers = options.modifiers; + if (options.envelope) + fetching.push('ENVELOPE'); if (options.struct) fetching.push('BODYSTRUCTURE'); if (options.size)