From cbe21312d21320e6773915314c494b70dadf86fa Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 17 Dec 2012 11:43:10 +0100 Subject: [PATCH] removed the trailing space from the Subject line --- src/config.h | 2 +- src/parser.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.h b/src/config.h index 46175c87..cd6b00da 100644 --- a/src/config.h +++ b/src/config.h @@ -13,7 +13,7 @@ #define VERSION "0.1.23-master-branch" -#define BUILD 743 +#define BUILD 744 #define HOSTID "mailarchiver" diff --git a/src/parser.c b/src/parser.c index d50e1ae1..5ebafb3f 100644 --- a/src/parser.c +++ b/src/parser.c @@ -413,6 +413,7 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, int if(state->b_subject[0] == '\0'){ p = &buf[0]; if(strncmp(buf, "Subject:", strlen("Subject:")) == 0) p += strlen("Subject:"); + if(*p == ' ') p++; strncat(state->b_subject, p, MAXBUFSIZE-1); }