remove displayName

fork
mscdex 12 years ago
parent 7cf54ed371
commit 4398a801e4

@ -161,7 +161,6 @@ node-imap exposes one object: **ImapConnection**.
* _Box_ is an object representing the currently open mailbox, and has the following properties:
* **name** - < _string_ > - The name of this mailbox.
* **displayName** - < _string_ > - The UTF-7-decoded name of this mailbox.
* **readOnly** - < _boolean_ > - True if this mailbox was opened in read-only mode.
* **uidvalidity** - < _integer_ > - A 32-bit number that can be used to determine if UIDs in this mailbox have changed since the last time this mailbox was opened. It is possible for this to change during a session, in which case a 'uidvalidity' event will be emitted on the ImapConnection instance.
* **uidnext** - < _integer_ > - The uid that will be assigned to the next message that arrives at this mailbox.
@ -384,7 +383,6 @@ ImapConnection Functions
{ INBOX: // mailbox name
{ attribs: [], // mailbox attributes. An attribute of 'NOSELECT' indicates the mailbox cannot
// be opened
displayName: 'INBOX', // UTF-7-decoded version of the mailbox name
delimiter: '/', // hierarchy delimiter for accessing this mailbox's direct children.
children: null, // an object containing another structure similar in format to this top level,
// otherwise null if no children

@ -439,7 +439,6 @@ ImapConnection.prototype.connect = function(loginCb) {
return attr.substr(1);
}),
delimiter: m.delimiter,
displayName: undefined,
children: null,
parent: null
},
@ -460,7 +459,6 @@ ImapConnection.prototype.connect = function(loginCb) {
}
box.parent = parent;
}
box.displayName = utf7.decode(name);
if (!curChildren[name])
curChildren[name] = box;
}
@ -621,7 +619,6 @@ ImapConnection.prototype.connect = function(loginCb) {
if (requests[0].cmd === 'RENAME') {
if (state.box._newName) {
state.box.name = state.box._newName;
state.box.displayName = utf7.decode(state.box.name);
state.box._newName = undefined;
}
sendBox = true;
@ -741,7 +738,6 @@ ImapConnection.prototype.openBox = function(name, readOnly, cb) {
name = ''+name;
this._state.box.name = name;
this._state.box.displayName = utf7.decode(name);
this._send((readOnly ? 'EXAMINE' : 'SELECT') + ' "'
+ utils.escape(utf7.encode(name)) + '"', cb);
@ -1443,7 +1439,6 @@ ImapConnection.prototype._resetBox = function() {
this._state.box.permFlags = [];
this._state.box.keywords = [];
this._state.box.name = undefined;
this._state.box.displayName = undefined;
this._state.box._newName = undefined;
this._state.box.messages.total = 0;
this._state.box.messages.new = 0;

Loading…
Cancel
Save