diff options
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 660cc3575d..257c0e323e 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -3357,10 +3357,12 @@ header_decode_date(const char *in, int *saveoffset) g_free(monthname); } year = header_decode_int(&inptr); - if (year < 69 || (year >= 100 && year < 1900)) { + if (year < 69) { tm.tm_year = 100 + year; } else if (year < 100) { tm.tm_year = year; + } else if (year >= 100 && year < 1900) { + tm.tm_year = year; } else { tm.tm_year = year - 1900; } |