aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-mime-message.c24
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);
}
-