mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-03 11:23:11 +08:00
v1.0.83. Replace node_redis with ioredis
This commit is contained in:
parent
47f8307d9b
commit
a5ddfa0979
3 changed files with 9 additions and 4 deletions
|
@ -203,7 +203,9 @@ class IMAPConnection extends EventEmitter {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._server.notifier.removeListener(this.session, '*', this._accountListener);
|
if (this.user) {
|
||||||
|
this._server.notifier.removeListener({ user: this.user }, '*', this._accountListener);
|
||||||
|
}
|
||||||
|
|
||||||
this._parser = false;
|
this._parser = false;
|
||||||
|
|
||||||
|
@ -745,7 +747,7 @@ class IMAPConnection extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
setUser(user) {
|
setUser(user) {
|
||||||
this.session.user = user;
|
this.user = this.session.user = user;
|
||||||
this._server.notifier.addListener(this.session, '*', this._accountListener);
|
this._server.notifier.addListener(this.session, '*', this._accountListener);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,10 @@ class MemoryNotifier extends EventEmitter {
|
||||||
* @returns {String} md5 hex
|
* @returns {String} md5 hex
|
||||||
*/
|
*/
|
||||||
_eventName(mailbox, username) {
|
_eventName(mailbox, username) {
|
||||||
return crypto.createHash('md5').update(username + ':' + mailbox).digest('hex');
|
return crypto
|
||||||
|
.createHash('md5')
|
||||||
|
.update(username + ':' + mailbox)
|
||||||
|
.digest('hex');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "wildduck",
|
"name": "wildduck",
|
||||||
"version": "1.0.82",
|
"version": "1.0.83",
|
||||||
"description": "IMAP server built with Node.js and MongoDB",
|
"description": "IMAP server built with Node.js and MongoDB",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue