dovecot-1.0: Last name_offset check was broken, fixed..
dovecot at dovecot.org
dovecot at dovecot.org
Thu Nov 8 19:49:33 EET 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/63c10e28a585
changeset: 5452:63c10e28a585
user: Timo Sirainen <tss at iki.fi>
date: Thu Nov 08 19:49:30 2007 +0200
description:
Last name_offset check was broken, fixed..
diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
src/deliver/deliver.c | 7 +++----
diffs (17 lines):
diff -r 96134d6cfc38 -r 63c10e28a585 src/deliver/deliver.c
--- a/src/deliver/deliver.c Thu Nov 08 19:46:20 2007 +0200
+++ b/src/deliver/deliver.c Thu Nov 08 19:49:30 2007 +0200
@@ -433,10 +433,9 @@ static void save_header_callback(struct
static void save_header_callback(struct message_header_line *hdr,
bool *matched, void *context __attr_unused__)
{
- if (hdr->name_offset == 0) {
- if (hdr != NULL && strncmp(hdr->name, "From ", 5) == 0)
- *matched = TRUE;
- }
+ if (hdr != NULL && hdr->name_offset == 0 &&
+ strncmp(hdr->name, "From ", 5) == 0)
+ *matched = TRUE;
}
static struct istream *
More information about the dovecot-cvs
mailing list