Displaying 3 results from an estimated 3 matches for "istream_raw_mbox_set_next_offset".
2008 Nov 23
3
dovecot >1.1.3 + antispam plugin issues
...ommenting out following code in mbox_read_from_line function (in
src/lib-storage/index/mbox/istream-raw-mbox.c) helped and plugin was
working correctly, but only with Dovecot <=1.1.3.
if (stream->istream.v_offset -
rstream->hdr_offset + new_pos > rstream->mail_size) {
/* istream_raw_mbox_set_next_offset() used invalid
cached next_offset? */
i_error("Next message unexpectedly lost from %"PRIuUOFF_T,
rstream->hdr_offset + rstream->mail_size);
rstream->eof = TRUE;
rstream->corrupted = TRUE;
rstream->istream.istream.st...
2008 Aug 07
2
dovecot-antispam: Failed to read mail beginning, Next message unexpectedly lost
...Server release 5.2, x86_64,
filesystem is ext3 (on lvm).
Attached is the strace -p of the session.
The code seems to be this in i_stream_raw_mbox_read:
if (stream->istream.v_offset -
rstream->hdr_offset + new_pos > rstream->mail_size) {
/* istream_raw_mbox_set_next_offset() used invalid
cached next_offset? */
i_error("Next message unexpectedly lost from
%"PRIuUOFF_T,
rstream->hdr_offset + rstream->mail_size);
rstream->eof = TRUE;
rstream->...
2008 Aug 07
0
Next message unexpectedly lost
...problem, presumably because it's sending
a different command sequence that doesn't stroke this.
Here's the failing code, in i_stream_raw_mbox_read :
if (stream->istream.v_offset -
rstream->hdr_offset + new_pos > rstream->mail_size) {
/* istream_raw_mbox_set_next_offset() used invalid
cached next_offset? */
i_error("Next message unexpectedly lost from %"PRIuUOFF_T,
rstream->hdr_offset + rstream->mail_size);
rstream->eof = TRUE;
rstream->corrupted = TRUE...