diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-09-07 11:47:45 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-09-07 11:47:45 +0800 |
commit | e35881116fa1c8f94319cae32fdff3cae634b7a4 (patch) | |
tree | 9fb6eb9262b40acc0eb4df1d1e8bde7e2e27f010 | |
parent | eec65a9ce0b99846ada81959bb5136074703ffd2 (diff) | |
download | gsoc2013-evolution-e35881116fa1c8f94319cae32fdff3cae634b7a4.tar gsoc2013-evolution-e35881116fa1c8f94319cae32fdff3cae634b7a4.tar.gz gsoc2013-evolution-e35881116fa1c8f94319cae32fdff3cae634b7a4.tar.bz2 gsoc2013-evolution-e35881116fa1c8f94319cae32fdff3cae634b7a4.tar.lz gsoc2013-evolution-e35881116fa1c8f94319cae32fdff3cae634b7a4.tar.xz gsoc2013-evolution-e35881116fa1c8f94319cae32fdff3cae634b7a4.tar.zst gsoc2013-evolution-e35881116fa1c8f94319cae32fdff3cae634b7a4.zip |
Implemented (someone added these to camel-mime-message.h but never
2000-09-06 Jeffrey Stedfast <fejj@helixcode.com>
* camel-mime-message.c (camel_mime_message_get_received_date):
Implemented (someone added these to camel-mime-message.h but never
implemented them!!) - though it may not be right.
(camel_mime_message_get_sent_date): Same.
svn path=/trunk/; revision=5226
-rw-r--r-- | camel/ChangeLog | 7 | ||||
-rw-r--r-- | camel/camel-mime-message.c | 24 |
2 files changed, 28 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index e5ee3794f9..4a0eaff527 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2000-09-06 Jeffrey Stedfast <fejj@helixcode.com> + + * camel-mime-message.c (camel_mime_message_get_received_date): + Implemented (someone added these to camel-mime-message.h but never + implemented them!!) - though it may not be right. + (camel_mime_message_get_sent_date): Same. + 2000-09-05 Dan Winship <danw@helixcode.com> * camel-mime-part.c (camel_mime_part_get_filename): If a MIME part diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index d8f61facc4..2d36ca184e 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -4,6 +4,7 @@ /* * Authors: Bertrand Guiheneuf <bertrand@helixcode.com> * Michael Zucchi <notzed@helixcode.com> + * Jeffrey Stedfast <fejj@helixcode.com> * * Copyright 1999, 2000 Helix Code, Inc. (http://www.helixcode.com) * @@ -210,10 +211,28 @@ camel_mime_message_get_date(CamelMimeMessage *message, time_t *date, int *offse } char * -camel_mime_message_get_date_string(CamelMimeMessage *message) +camel_mime_message_get_date_string (CamelMimeMessage *message) { if (message->date == CAMEL_MESSAGE_DATE_CURRENT) - camel_mime_message_set_date(message, CAMEL_MESSAGE_DATE_CURRENT, 0); + camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0); + return message->date_str; +} + +const gchar * +camel_mime_message_get_received_date (CamelMimeMessage *mime_message) +{ + /* FIXME: is this the received date? and if so then get_sent_date must be wrong */ + if (message->date == CAMEL_MESSAGE_DATE_CURRENT) + camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0); + return message->date_str; +} + +const gchar * +camel_mime_message_get_sent_date (CamelMimeMessage *mime_message) +{ + /* FIXME: is this the sent date? and if so then get_received_date must be wrong */ + if (message->date == CAMEL_MESSAGE_DATE_CURRENT) + camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0); return message->date_str; } @@ -529,4 +548,3 @@ remove_header(CamelMedium *medium, const char *header_name) process_header(medium, header_name, NULL); parent_class->parent_class.remove_header (medium, header_name); } - |