diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-03-13 04:36:08 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-03-13 04:36:08 +0800 |
commit | e19514f1319263d57cb9ebf900513518b011c3b3 (patch) | |
tree | 858860a81a0dd69811d310a8a58ee48828db991d /camel/camel-folder-summary.c | |
parent | 64980f67b06ced48f3d661acd90b5522338d5636 (diff) | |
download | gsoc2013-evolution-e19514f1319263d57cb9ebf900513518b011c3b3.tar.gz gsoc2013-evolution-e19514f1319263d57cb9ebf900513518b011c3b3.tar.zst gsoc2013-evolution-e19514f1319263d57cb9ebf900513518b011c3b3.zip |
Now takes a url argument.
2002-03-12 Jeffrey Stedfast <fejj@ximian.com>
* camel-digest-store.c (camel_digest_store_new): Now takes a url
argument.
* camel-digest-folder.c (digest_add_multipart): Fixed some memory
corruption and also modified to use CAMEL_IS_MIME_MESSAGE() rather
than comparing content-type strings.
(digest_get_message): Fixed a logic blooper.
* camel-folder-summary.c (camel_message_info_new_from_header): Set
the date fields of the CamelMessageInfo as well. This may even fix
some filter-related bugs where the user was trying to compare
dates.
svn path=/trunk/; revision=16126
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r-- | camel/camel-folder-summary.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index 89fdc3cb23..44ca09fb80 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -2447,7 +2447,7 @@ CamelMessageInfo * camel_message_info_new_from_header (struct _header_raw *header) { CamelMessageInfo *info; - char *subject, *from, *to, *cc, *mlist; + char *subject, *from, *to, *cc, *date, *mlist; struct _header_content_type *ct = NULL; const char *content, *charset = NULL; @@ -2463,6 +2463,7 @@ camel_message_info_new_from_header (struct _header_raw *header) from = summary_format_address(header, "from"); to = summary_format_address(header, "to"); cc = summary_format_address(header, "cc"); + date = header_raw_find (&header, "Date", NULL); mlist = header_raw_check_mailing_list(&header); if (ct) @@ -2475,7 +2476,10 @@ camel_message_info_new_from_header (struct _header_raw *header) camel_message_info_set_to(info, to); camel_message_info_set_cc(info, cc); camel_message_info_set_mlist(info, mlist); - + + info->date_sent = header_decode_date (date, NULL); + info->date_received = header_decode_date (date, NULL); + return info; } |