On Thu, 2009-07-09 at 19:34 +1000, John Marshall wrote:
I was hoping that this uninformative error was now spurious, meaning that my 'fix' indeed only got rid of the error message. However, as it seems, the stream is still truncated. I rebuilt the truncation check, now with a proper error and disconnect (because the protocol state is invalid then).
However, regarding the core of this problem, I am unable to reproduce this at my end without access to a FreeBSD system. Could you (or some other FreeBSD user) try to dig a little deeper to find out exactly why the stream ends prematurely? Alternatively, I would have to install FreeBSD somewhere, which will take more time.
I happy to help but I don't know where/how to start. Are you able to provide me with some digging hints?
With the latest changes from dovecot-1.1-managesieve hg I can't reproduce this anymore. I guess one of those Stephan's "error handling" changes fixed the bug? :)