diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-17 18:31:09 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-17 18:31:09 +0300 |
commit | 8227c09f9486642cd2792e760fe4659e25e05876 (patch) | |
tree | 8c4b27b76d27ae24830d3692314a0ec01171bb04 /src/message.c | |
parent | 7f54e7ec7e7fb50b856a31cb32b8f5b2b210e6ef (diff) | |
download | rspamd-8227c09f9486642cd2792e760fe4659e25e05876.tar.gz rspamd-8227c09f9486642cd2792e760fe4659e25e05876.zip |
Fix received headers parser state machine to parse headers with only 'by' component.
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c index 323dd33a0..553ecca51 100644 --- a/src/message.c +++ b/src/message.c @@ -309,6 +309,9 @@ parse_recv_header (memory_pool_t * pool, gchar *line, struct received_header *r) next_state = 1; } } + else if (g_ascii_tolower (*p) == 'b' && g_ascii_tolower (*(p + 1)) == 'y') { + state = 3; + } else { /* This can be qmail header, parse it separately */ parse_qmail_recv (pool, line, r); |