mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-04 07:02:45 +08:00
reset payload
This commit is contained in:
parent
ae4a8fe800
commit
afd85baa28
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,8 @@ class IMAPCommand {
|
||||||
command.expecting > Math.max(Number(this.connection._server.options.maxMessage) || 0, MAX_MESSAGE_SIZE)) {
|
command.expecting > Math.max(Number(this.connection._server.options.maxMessage) || 0, MAX_MESSAGE_SIZE)) {
|
||||||
|
|
||||||
this.connection._server.logger.debug('[%s] C:', this.connection.id, this.payload);
|
this.connection._server.logger.debug('[%s] C:', this.connection.id, this.payload);
|
||||||
|
|
||||||
|
this.payload = ''; // reset payload
|
||||||
this.connection.send(this.tag + ' NO Literal too big');
|
this.connection.send(this.tag + ' NO Literal too big');
|
||||||
return callback(new Error('Literal too big'));
|
return callback(new Error('Literal too big'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue