dovecot-2.2: lib-storage: mail_get_*header*() still didn't handl...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 20 14:52:07 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/4ef184875799
changeset: 16992:4ef184875799
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 20 14:50:53 2013 +0200
description:
lib-storage: mail_get_*header*() still didn't handle cached values correctly.
If header ends with ":", the ":" shouldn't be returned as part of the value.
diffstat:
src/lib-storage/index/index-mail-headers.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r a91437fe94b6 -r 4ef184875799 src/lib-storage/index/index-mail-headers.c
--- a/src/lib-storage/index/index-mail-headers.c Wed Nov 20 14:38:55 2013 +0200
+++ b/src/lib-storage/index/index-mail-headers.c Wed Nov 20 14:50:53 2013 +0200
@@ -653,8 +653,8 @@
/* cached. skip "header name: " parts in dest. */
for (i = 0; i < len; i++) {
if (data[i] == ':') {
- while (IS_LWSP(data[i+1])) i++;
- if (i+1 != len) i++;
+ i++;
+ while (i < len && IS_LWSP(data[i])) i++;
/* @UNSAFE */
len = get_header_size(dest, i);
More information about the dovecot-cvs
mailing list