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); }