sync with 0.7.5cvs11
authorPaul Mangan <paul@claws-mail.org>
Wed, 8 May 2002 06:31:47 +0000 (06:31 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 8 May 2002 06:31:47 +0000 (06:31 +0000)
ChangeLog
ChangeLog.claws
ChangeLog.jp
configure.in
src/procheader.c

index 7f71c988d97140f6e4296ff7cc05e33251c8aa93..cea870ec3ee2e966d74182b9bcbe0223a7ee88b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,16 @@
+2002-05-08
+
+       * src/procheader.c: procheader_date_parse(): fixed a bug that didn't
+         parse date string like "Mon,6 May 2002 20:31:12 +0800".
+         procheader_scan_date_string(): new. Separated string scanning
+         part from procheader_date_parse().
+
 2002-05-07
 
        * src/summary_search.c: summary_search_execute(): unlock while
          selecting summary row (thanks to Martin Schaaf).
 2002-05-07
 
        * src/summary_search.c: summary_search_execute(): unlock while
          selecting summary row (thanks to Martin Schaaf).
+       * src/summaryview.c: summary_set_column_titles(): reversed the
+         direction of the arrow so that it matches with Win/Mac style.
 
 2002-05-02
 
 
 2002-05-02
 
index 092be1d594a524b3b4173aaa2468e2d8979cd5d4..b08bbad7aa1a241ec595f4a868158974f49cd136 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-08 [paul]      0.7.5claws13
+
+       * sync with 0.7.5cvs11
+               see ChangeLog entry 2002-05-08
+
 2002-05-08 [paul]      0.7.5claws12
 
        * src/mainwindow.c
 2002-05-08 [paul]      0.7.5claws12
 
        * src/mainwindow.c
index 0f8c3459e41aa9f2c2e75f596b76d887336290d5..11096e13e9025869c4e2340738e33fc36a617669 100644 (file)
@@ -1,7 +1,16 @@
+2002-05-08
+
+       * src/procheader.c: procheader_date_parse(): "Mon,6 May 2002 20:31:12
+         +0800" ¤Î¤è¤¦¤ÊÆü»þʸ»úÎó¤ò¥Ñ¡¼¥¹¤Ç¤­¤Ê¤¤¥Ð¥°¤ò½¤Àµ¡£
+         procheader_scan_date_string(): ¿·µ¬¡£ procheader_date_parse() ¤«¤é
+         Ê¸»úÎó¥¹¥­¥ã¥óÉôʬ¤òʬΥ¡£
+
 2002-05-07
 
        * src/summary_search.c: summary_search_execute(): ¥µ¥Þ¥ê¤Î¹Ô¤òÁªÂò
          ¤¹¤ë¤È¤­¤Ë¥í¥Ã¥¯¤ò²ò½ü¤¹¤ë¤è¤¦¤Ë¤·¤¿(Martin Schaaf ¤µ¤ó thanks)¡£
 2002-05-07
 
        * src/summary_search.c: summary_search_execute(): ¥µ¥Þ¥ê¤Î¹Ô¤òÁªÂò
          ¤¹¤ë¤È¤­¤Ë¥í¥Ã¥¯¤ò²ò½ü¤¹¤ë¤è¤¦¤Ë¤·¤¿(Martin Schaaf ¤µ¤ó thanks)¡£
+       * src/summaryview.c: summary_set_column_titles(): Win/Mac ¤Î¥¹¥¿¥¤¥ë
+         ¤Ë¹ç¤¦¤è¤¦¤ËÌð°õ¤ÎÊý¸þ¤òµÕ¤Ë¤·¤¿¡£
 
 2002-05-02
 
 
 2002-05-02
 
index f997941733d7f299626f578ef596f3d40a8b34ad..d2dd06c37e022fe808a8e360de5590842f534070 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws12
+EXTRA_VERSION=claws13
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 4e95ccff5ff368a95632a114a9a17c44584d0331..93fc862c5f5f1806127f43d2daa4d4d7e99ce6c9 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2001 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2002 Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -702,6 +702,38 @@ gchar *procheader_get_fromname(const gchar *str)
        return name;
 }
 
        return name;
 }
 
+static gint procheader_scan_date_string(const gchar *str,
+                                       gchar *weekday, gint *day,
+                                       gchar *month, gint *year,
+                                       gint *hh, gint *mm, gint *ss,
+                                       gchar *zone)
+{
+       gint result;
+
+       result = sscanf(str, "%10s %d %9s %d %2d:%2d:%2d %5s",
+                       weekday, day, month, year, hh, mm, ss, zone);
+       if (result == 8) return 0;
+
+       result = sscanf(str, "%3s,%d %9s %d %2d:%2d:%2d %5s",
+                       weekday, day, month, year, hh, mm, ss, zone);
+       if (result == 8) return 0;
+
+       result = sscanf(str, "%d %9s %d %2d:%2d:%2d %5s",
+                       day, month, year, hh, mm, ss, zone);
+       if (result == 7) return 0;
+
+       *ss = 0;
+       result = sscanf(str, "%10s %d %9s %d %2d:%2d %5s",
+                       weekday, day, month, year, hh, mm, zone);
+       if (result == 7) return 0;
+
+       result = sscanf(str, "%d %9s %d %2d:%2d %5s",
+                       day, month, year, hh, mm, zone);
+       if (result == 6) return 0;
+
+       return -1;
+}
+
 time_t procheader_date_parse(gchar *dest, const gchar *src, gint len)
 {
        static gchar monthstr[] = "JanFebMarAprMayJunJulAugSepOctNovDec";
 time_t procheader_date_parse(gchar *dest, const gchar *src, gint len)
 {
        static gchar monthstr[] = "JanFebMarAprMayJunJulAugSepOctNovDec";
@@ -711,34 +743,17 @@ time_t procheader_date_parse(gchar *dest, const gchar *src, gint len)
        gint year;
        gint hh, mm, ss;
        gchar zone[6];
        gint year;
        gint hh, mm, ss;
        gchar zone[6];
-       gint result;
        GDateMonth dmonth;
        struct tm t;
        gchar *p;
        time_t timer;
 
        GDateMonth dmonth;
        struct tm t;
        gchar *p;
        time_t timer;
 
-       /* parsing date field... */
-       result = sscanf(src, "%10s %d %9s %d %2d:%2d:%2d %5s",
-                       weekday, &day, month, &year, &hh, &mm, &ss, zone);
-       if (result != 8) {
-               result = sscanf(src, "%d %9s %d %2d:%2d:%2d %5s",
-                               &day, month, &year, &hh, &mm, &ss, zone);
-               if (result != 7) {
-                       ss = 0;
-                       result = sscanf(src, "%10s %d %9s %d %2d:%2d %5s",
-                                       weekday, &day, month, &year, &hh, &mm, zone);
-                       if (result != 7) {
-                               result = sscanf(src, "%d %9s %d %2d:%2d %5s",
-                                               &day, month, &year, &hh, &mm,
-                                               zone);
-                               if (result != 6) {
-                                       g_warning("Invalid date: %s\n", src);
-                                       if (dest && len > 0)
-                                               strncpy2(dest, src, len);
-                                       return 0;
-                               }
-                       }
-               }
+       if (procheader_scan_date_string(src, weekday, &day, month, &year,
+                                       &hh, &mm, &ss, zone) < 0) {
+               g_warning("Invalid date: %s\n", src);
+               if (dest && len > 0)
+                       strncpy2(dest, src, len);
+               return 0;
        }
 
        /* Y2K compliant :) */
        }
 
        /* Y2K compliant :) */