aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-27 03:28:52 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-27 03:28:52 +0800
commitb86d822ec15050722006dacc84f535cb9dcf18b2 (patch)
treebc4f0d22217b82411d8affe20d23a9ab8cff90f4 /camel
parent8019a39963c9f1997983157d3fe4c0187cd55967 (diff)
downloadgsoc2013-evolution-b86d822ec15050722006dacc84f535cb9dcf18b2.tar
gsoc2013-evolution-b86d822ec15050722006dacc84f535cb9dcf18b2.tar.gz
gsoc2013-evolution-b86d822ec15050722006dacc84f535cb9dcf18b2.tar.bz2
gsoc2013-evolution-b86d822ec15050722006dacc84f535cb9dcf18b2.tar.lz
gsoc2013-evolution-b86d822ec15050722006dacc84f535cb9dcf18b2.tar.xz
gsoc2013-evolution-b86d822ec15050722006dacc84f535cb9dcf18b2.tar.zst
gsoc2013-evolution-b86d822ec15050722006dacc84f535cb9dcf18b2.zip
Don't spew a warning if the message-id wasn't set by the application, not
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. svn path=/trunk/; revision=8952
Diffstat (limited to 'camel')
-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"))