Allow options object for append() to be completely optional

fork
Brian White 13 years ago
parent 2b320b12b6
commit af0ca9bab4

@ -635,6 +635,10 @@ ImapConnection.prototype._search = function(which, options, cb) {
};
ImapConnection.prototype.append = function(data, options, cb) {
if (typeof options === 'function') {
cb = options;
options = {};
}
options = options || {};
if (!('mailbox' in options)) {
if (this._state.status !== STATES.BOXSELECTED)

Loading…
Cancel
Save