diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-07 06:25:41 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-07 06:25:41 +0000 |
commit | ef870de32eb2c2f94dce2b87fdfabd5d6bb84967 (patch) | |
tree | 829fc36e52a8b98193c3246d6eb54b8fa3449a89 /src/procheader.c | |
parent | 00147be89513db41cdefb984b9d8e5e02e3f8ce6 (diff) |
modified conv_unmime_header() and procheader_scan_date_string().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@148 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/procheader.c')
-rw-r--r-- | src/procheader.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/procheader.c b/src/procheader.c index 99acdd79..f88396cb 100644 --- a/src/procheader.c +++ b/src/procheader.c @@ -688,6 +688,10 @@ static gint procheader_scan_date_string(const gchar *str, weekday, day, month, year, hh, mm, ss); if (result == 7) return 0; + result = sscanf(str, "%d %9s %d %2d:%2d:%2d", + day, month, year, hh, mm, ss); + if (result == 6) return 0; + *ss = 0; result = sscanf(str, "%10s %d %9s %d %2d:%2d %5s", weekday, day, month, year, hh, mm, zone); @@ -697,6 +701,15 @@ static gint procheader_scan_date_string(const gchar *str, day, month, year, hh, mm, zone); if (result == 6) return 0; + *zone = '\0'; + result = sscanf(str, "%10s %d %9s %d %2d:%2d", + weekday, day, month, year, hh, mm); + if (result == 6) return 0; + + result = sscanf(str, "%d %9s %d %2d:%2d", + day, month, year, hh, mm); + if (result == 5) return 0; + return -1; } |