Fix append with empty flags array

fork
Mike Mee 12 years ago
parent b974f4da64
commit 9950b29876

@ -845,6 +845,7 @@ ImapConnection.prototype.append = function(data, options, cb) {
if (options.flags) { if (options.flags) {
if (!Array.isArray(options.flags)) if (!Array.isArray(options.flags))
options.flags = [options.flags]; options.flags = [options.flags];
if (options.flags.length > 0)
cmd += " (\\" + options.flags.join(' \\') + ")"; cmd += " (\\" + options.flags.join(' \\') + ")";
} }
if (options.date) { if (options.date) {

Loading…
Cancel
Save