2011-01-14 [pawel] 3.7.8cvs34
authorPaweł Pękala <c0rn@gazeta.pl>
Fri, 14 Jan 2011 20:39:22 +0000 (20:39 +0000)
committerPaweł Pękala <c0rn@gazeta.pl>
Fri, 14 Jan 2011 20:39:22 +0000 (20:39 +0000)
* src/textview.c
Fix Bug #2165 'The date not localized in the message view'
Display Date header in messageview in the same way as in
summaryview by respecting date format set in preferences.

ChangeLog
PATCHSETS
configure.ac
src/textview.c

index e461132..b8e2cd1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-14 [pawel]     3.7.8cvs34
+
+       * src/textview.c
+               Fix Bug #2165 'The date not localized in the message view'
+               Display Date header in messageview in the same way as in
+               summaryview by respecting date format set in preferences.
+
 2011-01-06 [pawel]     3.7.8cvs33
 
        * src/prefs_account.c
index 744baa0..0c2f46a 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.6.10.23 -r 1.6.10.24 src/addrharvest.c;  cvs diff -u -r 1.65.2.70 -r 1.65.2.71 src/codeconv.c;  cvs diff -u -r 1.15.2.24 -r 1.15.2.25 src/codeconv.h;  cvs diff -u -r 1.382.2.565 -r 1.382.2.566 src/compose.c;  cvs diff -u -r 1.101.2.62 -r 1.101.2.63 src/news.c;  cvs diff -u -r 1.47.2.52 -r 1.47.2.53 src/procheader.c;  cvs diff -u -r 1.49.2.135 -r 1.49.2.136 src/procmime.c;  cvs diff -u -r 1.8.2.16 -r 1.8.2.17 src/unmime.c;  cvs diff -u -r 1.2.10.7 -r 1.2.10.8 src/unmime.h;  ) > 3.7.8cvs31.patchset
 ( cvs diff -u -r 1.14.2.74 -r 1.14.2.75 src/plugins/trayicon/trayicon.c;  ) > 3.7.8cvs32.patchset
 ( cvs diff -u -r 1.105.2.161 -r 1.105.2.162 src/prefs_account.c;  cvs diff -u -r 1.52.2.79 -r 1.52.2.80 src/prefs_folder_item.c;  cvs diff -u -r 1.1.2.32 -r 1.1.2.33 src/prefs_quote.c;  cvs diff -u -r 1.8.2.42 -r 1.8.2.43 src/quote_fmt.c;  ) > 3.7.8cvs33.patchset
+( cvs diff -u -r 1.96.2.227 -r 1.96.2.228 src/textview.c;  ) > 3.7.8cvs34.patchset
index bb96dda..25991a9 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=7
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=33
+EXTRA_VERSION=34
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 7e4c211..5419874 100644 (file)
@@ -2177,12 +2177,19 @@ static void textview_show_header(TextView *textview, GPtrArray *headers)
                    procheader_headername_equal(header->name, "To")      ||
                    procheader_headername_equal(header->name, "Cc"))
                        unfold_line(header->body);
-
-               if ((procheader_headername_equal(header->name, "X-Mailer") ||
-                    procheader_headername_equal(header->name,
+               
+               if (procheader_headername_equal(header->name, "Date")) {
+                       gchar hbody[81];
+                       
+                       procheader_date_parse(hbody, header->body, sizeof(hbody)-1);
+                       gtk_text_buffer_get_end_iter (buffer, &iter);
+                       gtk_text_buffer_insert_with_tags_by_name
+                               (buffer, &iter, hbody, -1, "header", NULL);
+               } else if ((procheader_headername_equal(header->name, "X-Mailer") ||
+                               procheader_headername_equal(header->name,
                                                 "X-Newsreader")) &&
-                   (strstr(header->body, "Claws Mail") != NULL ||
-                    strstr(header->body, "Sylpheed-Claws") != NULL)) {
+                               (strstr(header->body, "Claws Mail") != NULL ||
+                               strstr(header->body, "Sylpheed-Claws") != NULL)) {
                        gtk_text_buffer_get_end_iter (buffer, &iter);
                        gtk_text_buffer_insert_with_tags_by_name
                                (buffer, &iter, header->body, -1,