Skip to content

Commit

Permalink
Allow options object for append() to be completely optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed Feb 1, 2012
1 parent 2b320b1 commit af0ca9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imap.js
Expand Up @@ -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)
Expand Down

0 comments on commit af0ca9b

Please sign in to comment.