|
|
|
@ -81,7 +81,7 @@ Connection.prototype.connect = function() {
|
|
|
|
|
socket = new Socket();
|
|
|
|
|
socket.setKeepAlive(true);
|
|
|
|
|
socket.setTimeout(0);
|
|
|
|
|
this._state = 'disconnected';
|
|
|
|
|
this.state = 'disconnected';
|
|
|
|
|
|
|
|
|
|
if (config.secure) {
|
|
|
|
|
tlsOptions = {};
|
|
|
|
@ -445,7 +445,7 @@ Connection.prototype._store = function(which, uids, flags, isAdding, cb) {
|
|
|
|
|
if (!isKeywords) {
|
|
|
|
|
if (flags[i][0] === '\\')
|
|
|
|
|
flags[i] = flags[i].substr(1);
|
|
|
|
|
if (this._state.box.permFlags.indexOf(flags[i].toLowerCase()) === -1
|
|
|
|
|
if (this._box.permFlags.indexOf(flags[i].toLowerCase()) === -1
|
|
|
|
|
|| flags[i] === '*')
|
|
|
|
|
throw new Error('The flag "' + flags[i]
|
|
|
|
|
+ '" is not allowed by the server for this mailbox');
|
|
|
|
|