added support for ENVELOPE fetch

fork
Dominik Gehl 11 years ago
parent 32445a188b
commit 8ed32d7fa9

@ -20,6 +20,7 @@ var MAX_INT = 9007199254740992,
'RFC822.SIZE': 'size', 'RFC822.SIZE': 'size',
'BODY': 'struct', 'BODY': 'struct',
'BODYSTRUCTURE': 'struct', 'BODYSTRUCTURE': 'struct',
'ENVELOPE': 'envelope',
'INTERNALDATE': 'date' 'INTERNALDATE': 'date'
}, },
CRLF = '\r\n', CRLF = '\r\n',
@ -714,6 +715,8 @@ Connection.prototype._fetch = function(which, uids, options) {
if (options) { if (options) {
modifiers = options.modifiers; modifiers = options.modifiers;
if (options.envelope)
fetching.push('ENVELOPE');
if (options.struct) if (options.struct)
fetching.push('BODYSTRUCTURE'); fetching.push('BODYSTRUCTURE');
if (options.size) if (options.size)

Loading…
Cancel
Save