Mail client send token greater then 8K
Rob Siemborski
rjs3 at andrew.cmu.edu
Thu Feb 5 09:24:49 EST 2004
On Thu, 5 Feb 2004, Vladimir Tyman wrote:
> the same) moved cca. 3000 messages to Trash folder and when he tried
> to empty trash folder client does not display any new/recent message.
>
> In imapd log are these errors:
> ...
> Jan 29 11:56:14 ns imapd[48153]: Fatal error: word too long
> ...
>
> Then we logged the next session of the user and relevant parts follow:
[snip]
You can adjust the value of MAXWORD in imap/imapparse.c upwards to allow
larger transmissions. Admittedly, 8k is too small -- we have increased
this to 16k in current CVS, but I'm unsure this will be enough.
> Is somewhere (in IMAP's RFC) documented expected response or reaction
> of the client to this situation (fatal error for token oversize)?
Really, what would be nicer is if they documented an actual limit.
Unfortuinately, they do not.
This limit was implemented in the wake of the discovery of a buffer
overflow (a year or two back) with regards to literal parsing. Increasing
it to the maximum size of a literal is probably not completely insane.
-Rob
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list