[dovecot-cvs]
dovecot/src/lib-storage/index/mbox istream-raw-mbox.c, 1.21, 1.22
cras at dovecot.org
cras at dovecot.org
Mon Aug 23 07:04:26 EEST 2004
Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv1135/lib-storage/index/mbox
Modified Files:
istream-raw-mbox.c
Log Message:
Fixed handling messages with empty body.
Index: istream-raw-mbox.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/istream-raw-mbox.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- istream-raw-mbox.c 22 Aug 2004 12:28:57 -0000 1.21
+++ istream-raw-mbox.c 23 Aug 2004 04:04:24 -0000 1.22
@@ -249,7 +249,7 @@
}
if (new_pos == stream->pos)
- ret = -2;
+ ret = stream->istream.eof ? -1 : -2;
else {
i_assert(new_pos > stream->pos);
ret = new_pos - stream->pos;
More information about the dovecot-cvs
mailing list