reset payload

This commit is contained in:
Andris Reinman 2017-03-12 00:31:56 +02:00
parent ae4a8fe800
commit afd85baa28

View file

@ -88,6 +88,8 @@ class IMAPCommand {
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.payload = ''; // reset payload
this.connection.send(this.tag + ' NO Literal too big');
return callback(new Error('Literal too big'));
}