dovecot-2.2: imap: Another fix for handling partial FETCHes.

dovecot at dovecot.org dovecot at dovecot.org
Tue Oct 23 20:30:47 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/e9cdf435fde2
changeset: 15238:e9cdf435fde2
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Oct 23 20:30:41 2012 +0300
description:
imap: Another fix for handling partial FETCHes.

diffstat:

 src/lib-imap-storage/imap-msgpart.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3484591230ac -r e9cdf435fde2 src/lib-imap-storage/imap-msgpart.c
--- a/src/lib-imap-storage/imap-msgpart.c	Tue Oct 23 20:15:36 2012 +0300
+++ b/src/lib-imap-storage/imap-msgpart.c	Tue Oct 23 20:30:41 2012 +0300
@@ -440,7 +440,7 @@
 		/* update cache */
 		cache->uid = mail->uid;
 		cache->physical_start = physical_start;
-		cache->physical_pos = input->v_offset;
+		cache->physical_pos = input->v_offset - physical_start;
 		cache->virtual_pos = msgpart->partial_offset;
 		if (cr_skipped) {
 			/* the physical_pos points to virtual CRLF, but


More information about the dovecot-cvs mailing list