date parser fix

This commit is contained in:
SJ
2014-12-03 14:30:26 +01:00
parent 1c1f691379
commit aba29bff77
3 changed files with 108 additions and 11 deletions

View File

@ -14,7 +14,7 @@
#define VERSION "1.1.1-pre"
#define BUILD 896
#define BUILD 897
#define HOSTID "mailarchiver"

View File

@ -380,6 +380,9 @@ int parse_line(char *buf, struct _state *state, struct session_data *sdata, int
*/
else if(strncasecmp(buf, "Date:", strlen("Date:")) == 0 && state->is_1st_header == 1){
if(strstr(buf, "=?") && strstr(buf, "?=")) fixupEncodedHeaderLine(buf, MAXBUFSIZE);
if(sdata->sent == 0) sdata->sent = parse_date_header(buf, cfg);
else {
sdata->sent = parse_date_header(buf, cfg);