[Dovecot] Bug with partial IMAP fetches

Matthew Reimer mreimer at vpop.net
Tue Nov 4 13:10:56 EET 2003


An HTML attachment was scrubbed...
URL: http://procontrol.fi/pipermail/dovecot/attachments/20031104/f95e7952/attachment.htm
-------------- next part --------------
--- message-send.c.orig	Sun Jun 22 18:09:48 2003
+++ message-send.c	Tue Nov  4 12:53:04 2003
@@ -31,12 +31,11 @@
 
 	if (msg_size->physical_size == msg_size->virtual_size && !fix_nuls) {
 		/* no need to kludge with CRs, we can use sendfile() */
-		i_stream_skip(input, virtual_skip);
 
 		old_limit = input->v_limit;
 		limit = input->v_offset + max_virtual_size;
 		i_stream_set_read_limit(input, I_MIN(limit, old_limit));
-		ret = o_stream_send_istream(output, input) > 0;
+		ret = o_stream_send_istream(output, input);
 		i_stream_set_read_limit(input, old_limit);
 
 		return ret;


More information about the dovecot mailing list