mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 07:10:12 +01:00
removed the trailing space from the Subject line
This commit is contained in:
parent
e371f5ebfa
commit
cbe21312d2
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#define VERSION "0.1.23-master-branch"
|
#define VERSION "0.1.23-master-branch"
|
||||||
|
|
||||||
#define BUILD 743
|
#define BUILD 744
|
||||||
|
|
||||||
#define HOSTID "mailarchiver"
|
#define HOSTID "mailarchiver"
|
||||||
|
|
||||||
|
@ -413,6 +413,7 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, int
|
|||||||
if(state->b_subject[0] == '\0'){
|
if(state->b_subject[0] == '\0'){
|
||||||
p = &buf[0];
|
p = &buf[0];
|
||||||
if(strncmp(buf, "Subject:", strlen("Subject:")) == 0) p += strlen("Subject:");
|
if(strncmp(buf, "Subject:", strlen("Subject:")) == 0) p += strlen("Subject:");
|
||||||
|
if(*p == ' ') p++;
|
||||||
|
|
||||||
strncat(state->b_subject, p, MAXBUFSIZE-1);
|
strncat(state->b_subject, p, MAXBUFSIZE-1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user