dovecot-2.1-pigeonhole: Sieve: editheader: fixed bug in full hea...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Fri Mar 1 00:37:44 EET 2013
details: http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/13d41cc284fc
changeset: 1673:13d41cc284fc
user: Stephan Bosch <stephan at rename-it.nl>
date: Thu Feb 28 23:06:47 2013 +0100
description:
Sieve: editheader: fixed bug in full header parsing when addheader :last is used.
diffstat:
src/lib-sieve/edit-mail.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 32d178f5e1a2 -r 13d41cc284fc src/lib-sieve/edit-mail.c
--- a/src/lib-sieve/edit-mail.c Wed Feb 06 21:24:30 2013 +0100
+++ b/src/lib-sieve/edit-mail.c Thu Feb 28 23:06:47 2013 +0100
@@ -659,9 +659,11 @@
/* Insert header field index items in main list */
if ( head != NULL && tail != NULL ) {
if ( edmail->header_fields_appended != NULL ) {
- if ( edmail->header_fields_appended->prev != NULL ) {
+ if ( edmail->header_fields_head != edmail->header_fields_appended ) {
edmail->header_fields_appended->prev->next = head;
head->prev = edmail->header_fields_appended->prev;
+ } else {
+ edmail->header_fields_head = head;
}
tail->next = edmail->header_fields_appended;
More information about the dovecot-cvs
mailing list