Skip to content

Commit

Permalink
Changed TOOBIG error message
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 10, 2024
1 parent 1b700fd commit 6f03e89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imap-core/lib/imap-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ class IMAPCommand {
}

this.connection?.loggelf({
short_message: `[TOOBIG] ${errorMessage}`,
short_message: `[TOOBIG] Literal too large`,
_error: 'toobig',
_error_response: `${this.tag} NO [TOOBIG] ${errorMessage}`,
_service: 'imap',
_command: this.command,
_payload: this.payload ? (this.payload.length < 256 ? this.payload : this.payload.toString().substring(0, 256) + '...') : command.value,
Expand Down

0 comments on commit 6f03e89

Please sign in to comment.