aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-mime-message.c16
2 files changed, 12 insertions, 10 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index d12d7f9971..9c3ad0cddb 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-26 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-mime-message.c (write_to_stream): Don't spew a warning if
+ the message-id wasn't set by the application, not a big deal since
+ we create one right here.
+
2001-03-26 Dan Winship <danw@ximian.com>
* providers/imap/camel-imap-command.c (camel_imap_command): keep a
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index 4799627fd5..e33f793dab 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -463,19 +463,15 @@ write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
g_warning("No from set for message");
camel_medium_set_header((CamelMedium *)mm, "From", "");
}
- if (!camel_medium_get_header((CamelMedium *)mm, "Date")) {
- g_warning("Application did not set date, using 'now'");
+ if (!camel_medium_get_header((CamelMedium *)mm, "Date"))
camel_mime_message_set_date(mm, CAMEL_MESSAGE_DATE_CURRENT, 0);
- }
- if (mm->subject == NULL) {
- g_warning("Application did not set subject, creating one");
+
+ if (mm->subject == NULL)
camel_mime_message_set_subject(mm, "No Subject");
- }
- if (mm->message_id == NULL) {
- g_warning ("Application did not set message-id, creating one");
+
+ if (mm->message_id == NULL)
camel_mime_message_set_message_id (mm, NULL);
- }
-
+
/* FIXME: "To" header needs to be set explicitly as well ... */
if (!camel_medium_get_header ((CamelMedium *)mm, "Mime-Version"))