talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3b52684b7ce9a75f2ea84103617b83d554ebbd06
parent 4e8bcb40b71521d2e93c5ce7c14985d445dd53bf
Author: Paweł Pękala <c0rn@gazeta.pl>
Date:   Fri, 14 Jan 2011 20:39:22 +0000

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.

Diffstat:
MChangeLog | 7+++++++
MPATCHSETS | 1+
Mconfigure.ac | 2+-
Msrc/textview.c | 17++++++++++++-----
4 files changed, 21 insertions(+), 6 deletions(-)

diff --git 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 diff --git a/PATCHSETS b/PATCHSETS @@ -4107,3 +4107,4 @@ ( 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 diff --git a/configure.ac b/configure.ac @@ -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= diff --git a/src/textview.c b/src/textview.c @@ -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,