diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-01 05:40:51 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-01 05:40:51 +0800 |
commit | 8d5ca6bb757d2cddb4df2bc1b8993b4d4f4a2288 (patch) | |
tree | a7f186e93dae18e4410d92f901d6cf4ec532a14f /camel | |
parent | 65839ea1ee663580ccea1116b13e176b72cf632b (diff) | |
download | gsoc2013-evolution-8d5ca6bb757d2cddb4df2bc1b8993b4d4f4a2288.tar.gz gsoc2013-evolution-8d5ca6bb757d2cddb4df2bc1b8993b4d4f4a2288.tar.zst gsoc2013-evolution-8d5ca6bb757d2cddb4df2bc1b8993b4d4f4a2288.zip |
A fix for broken mailers that send 2-digit years (ie "Wed, 28 Feb 01
2001-02-28 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (header_decode_date): A fix for broken
mailers that send 2-digit years (ie "Wed, 28 Feb 01
04:59:41"). Fixes bug #1633.
svn path=/trunk/; revision=8432
Diffstat (limited to 'camel')
-rw-r--r-- | camel/camel-mime-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 18bf4cb8d3..b663ffab90 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -2682,7 +2682,7 @@ header_decode_date(const char *in, int *saveoffset) g_free(monthname); } year = header_decode_int(&inptr); - if (year < 69) { + if (year < 69 || (year >= 100 && year < 1900)) { tm.tm_year = 100 + year; } else if (year < 100) { tm.tm_year = year; |