Merge pull request #188 from mikemee/master

fix for append with empty flags array
fork
Brian White 12 years ago
commit acbe2913f3

@ -867,6 +867,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