Mail client send token greater then 8K
Vladimir Tyman
+archiv.internet.info-cyrus at i.cz
Thu Feb 5 11:28:18 EST 2004
Rob Siemborski wrote:
>
> 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.
>
Thank you Rob for explanation. I looked over the code and it seems to me
that memory for buffer is allocated in steps of BUFGROWSIZE (100 in 2.1.16)
up to hardlimit value of MAXWORD.
We would like to change the MAXWORD to say 128k. Will it have negative
impact on imapd? I don't think so, but I don't know if this change should
affect other parts of code. Hence I would like to know your opinion for
such enlargement of MAXWORD.
What is your opinion to make this parameter configurable, at least before
compilation? Something as "--with-token-limit=8192".
BTW - what is the best way to caculate the size of MAXWORD if we limited
the token as operation on set of 10.000 UIDs?
Regards
--
Vladimir Tyman
---
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