]> Sergey Matveev's repositories - public-inbox.git/commit
imap: support 8000 octet lines
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:05:06 +0000 (07:05 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commit7240a93c7dac9e1e73c7792e48a80df9ddf1eae0
tree31d3a264a7319a700e1ae15ca9ffd63978a807c9
parent8af34015e9aa94e5ae4ae9e9fd2c4d155453ac94
imap: support 8000 octet lines

RFC 2683 section 3.2.1.5 recommends it:

> For its part, a server should allow for a command line of at least
> 8000 octets.  This provides plenty of leeway for accepting reasonable
> length commands from clients.  The server should send a BAD response
> to a command that does not end within the server's maximum accepted
> command length.

To conserve memory, we won't bother reading the entire line
before sending the BAD response and disconnecting them.
Documentation/standards.perl
lib/PublicInbox/IMAP.pm