add patch RFE 4244, 'Handle additional Date header formats'
authorPaul <paul@claws-mail.org>
Thu, 19 Sep 2019 11:52:18 +0000 (12:52 +0100)
committerPaul <paul@claws-mail.org>
Thu, 19 Sep 2019 11:52:18 +0000 (12:52 +0100)
patch by Alexander Lyons Harkness <me at bearbin.net>

AUTHORS
src/gtk/authors.h
src/procheader.c

diff --git a/AUTHORS b/AUTHORS
index e31ea46f15568fbcd350d0cfe75678876fec4638..e530d751998a2fe4fc355f0f690ddbfde925433b 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -327,3 +327,4 @@ contributors (in addition to the above; based on Changelog)
        Avinash Sonawane
        Alex Smith
        Florian Weimer
+       Alexander Lyons Harkness
index 2ad414945b60a263e65ba0173e53e0d149b5c7d0..310d9fdf45d01975f41b1e0e6c644ef1b8b2b75a 100644 (file)
@@ -160,6 +160,7 @@ static char *CONTRIBS_LIST[] = {
 "Oliver Haertel",
 "Anders Hammar",
 "Mitko Haralanov",
+"Alexander Lyons Harkness",
 "Hashimoto",
 "Jacob Head",
 "Federico Heinz",
index d384db00ed005b3490a6a6a8738a4363503b9bf6..f5755b6a395694be369d68aa363a4a918629e301 100644 (file)
@@ -938,6 +938,10 @@ static gint procheader_scan_date_string(const gchar *str,
                        weekday, day, month, year, hh, mm, ss, zone);
        if (result == 8) return 0;
 
+       result = sscanf(str, "%3s %3s %d %2d:%2d:%2d %d %6s",
+                       weekday, month, day, hh, mm, ss, year, zone);
+       if (result == 8) return 0;
+
        result = sscanf(str, "%d %9s %d %2d:%2d:%2d %6s",
                        day, month, year, hh, mm, ss, zone);
        if (result == 7) return 0;
@@ -947,6 +951,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, "%3s %3s %d %2d:%2d:%2d %d",
+                       weekday, month, day, hh, mm, ss, year);
+       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;