diff --git a/src/config.h b/src/config.h index ae6300fa..23fa5a2f 100644 --- a/src/config.h +++ b/src/config.h @@ -14,7 +14,7 @@ #define VERSION "0.1.25-rc2" -#define BUILD 872 +#define BUILD 873 #define HOSTID "mailarchiver" diff --git a/src/parser_utils.c b/src/parser_utils.c index af63c1f4..caac9dcc 100644 --- a/src/parser_utils.c +++ b/src/parser_utils.c @@ -203,7 +203,7 @@ unsigned long parse_date_header(char *datestr, struct __config *cfg){ if(len == 2){ if(atoi(s) >=90) tm.tm_year = atoi(s); else tm.tm_year = atoi(s) + 100; continue; } - if(len == 4){ tm.tm_year = atoi(s) - 1900; continue; } + if(len == 4 && atoi(s) > 1900){ tm.tm_year = atoi(s) - 1900; continue; } if(len == 3){ if(strcmp(s, "EDT") == 0) offset = -14400;