aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-message.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-09-07 11:47:45 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-09-07 11:47:45 +0800
commite35881116fa1c8f94319cae32fdff3cae634b7a4 (patch)
tree9fb6eb9262b40acc0eb4df1d1e8bde7e2e27f010 /camel/camel-mime-message.c
parenteec65a9ce0b99846ada81959bb5136074703ffd2 (diff)
downloadgsoc2013-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
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r--camel/camel-mime-message.c24
1 files changed, 21 insertions, 3 deletions
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);
}
-