Merge pull request #315 from dominikgehl/dgl/envelope

added support for ENVELOPE fetch
fork
Brian White 11 years ago
commit 2ad3a1a2d7

@ -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)

Loading…
Cancel
Save