removed the trailing space from the Subject line

This commit is contained in:
SJ 2012-12-17 11:43:10 +01:00
parent e371f5ebfa
commit cbe21312d2
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@
#define VERSION "0.1.23-master-branch"
#define BUILD 743
#define BUILD 744
#define HOSTID "mailarchiver"

View File

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