diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-20 07:08:19 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-20 07:08:19 +0800 |
commit | b99b5b8d3800cab2d2580401a3f131db342e0c83 (patch) | |
tree | 0bcff9a29fadec031e5b4bc2bf1f6a667e6be8c0 /mail | |
parent | db0bdf0538baabf0d2049e846252cf90b6cf7b02 (diff) | |
download | gsoc2013-evolution-b99b5b8d3800cab2d2580401a3f131db342e0c83.tar gsoc2013-evolution-b99b5b8d3800cab2d2580401a3f131db342e0c83.tar.gz gsoc2013-evolution-b99b5b8d3800cab2d2580401a3f131db342e0c83.tar.bz2 gsoc2013-evolution-b99b5b8d3800cab2d2580401a3f131db342e0c83.tar.lz gsoc2013-evolution-b99b5b8d3800cab2d2580401a3f131db342e0c83.tar.xz gsoc2013-evolution-b99b5b8d3800cab2d2580401a3f131db342e0c83.tar.zst gsoc2013-evolution-b99b5b8d3800cab2d2580401a3f131db342e0c83.zip |
Removed gnome.h and ctype.h (send_queue_send): Don't remove the
2001-03-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c: Removed gnome.h and ctype.h
(send_queue_send): Don't remove the X-Evolution header here.
(mail_send_message): Remove it here instead (so we only have to
remove it in one place - no matter if you send a single message or
send_queue.
svn path=/trunk/; revision=8832
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/mail-ops.c | 37 |
2 files changed, 26 insertions, 19 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index e20a163713..9c75b357ae 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,13 @@ 2001-03-19 Jeffrey Stedfast <fejj@ximian.com> + * mail-ops.c: Removed gnome.h and ctype.h + (send_queue_send): Don't remove the X-Evolution header here. + (mail_send_message): Remove it here instead (so we only have to + remove it in one place - no matter if you send a single message or + send_queue. + +2001-03-19 Jeffrey Stedfast <fejj@ximian.com> + * mail-format.c (write_headers): Write the date header. * component-factory.c (owner_unset_cb): Call diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 11ec9d3ab9..17314ceee8 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -26,8 +26,7 @@ */ #include <config.h> -#include <gnome.h> -#include <ctype.h> + #include <errno.h> #include <camel/camel-mime-filter-from.h> #include <camel/camel-operation.h> @@ -462,35 +461,38 @@ mail_send_message(CamelMimeMessage *message, const char *destination, CamelFilte CamelMessageInfo *info; CamelTransport *xport; const char *version; - + if (SUB_VERSION[0] == '\0') version = "Evolution/" VERSION " (Preview Release)"; else version = "Evolution/" VERSION SUB_VERSION " (Preview Release)"; - camel_medium_add_header(CAMEL_MEDIUM (message), "X-Mailer", version); - camel_mime_message_set_date(message, CAMEL_MESSAGE_DATE_CURRENT, 0); - - xport = camel_session_get_transport(session, destination, ex); - if (camel_exception_is_set(ex)) + camel_medium_add_header (CAMEL_MEDIUM (message), "X-Mailer", version); + camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0); + + /* Remove the X-Evolution header so we don't send our flags too ;-) */ + camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution"); + + xport = camel_session_get_transport (session, destination, ex); + if (camel_exception_is_set (ex)) return; - camel_transport_send(xport, (CamelMedium *)message, ex); - camel_object_unref((CamelObject *)xport); - if (camel_exception_is_set(ex)) + camel_transport_send (xport, (CamelMedium *)message, ex); + camel_object_unref (CAMEL_OBJECT (xport)); + if (camel_exception_is_set (ex)) return; /* post-process */ - info = camel_message_info_new(); + info = camel_message_info_new (); info->flags = CAMEL_MESSAGE_SEEN; - + if (driver) camel_filter_driver_filter_message (driver, message, info, NULL, NULL, "", ex); if (sent_folder) - camel_folder_append_message(sent_folder, message, info, ex); + camel_folder_append_message (sent_folder, message, info, ex); - camel_message_info_free(info); + camel_message_info_free (info); } /* ********************************************************************** */ @@ -616,7 +618,7 @@ send_queue_send(struct _mail_msg *mm) GPtrArray *uids; int i; - printf("sending queue\n"); + d(printf("sending queue\n")); uids = camel_folder_get_uids (m->queue); if (uids == NULL || uids->len == 0) @@ -641,9 +643,6 @@ send_queue_send(struct _mail_msg *mm) if (camel_exception_is_set (&mm->ex)) break; - /* Remove the X-Evolution header so we don't send our flags too ;-) */ - camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution"); - /* Get the preferred transport URI */ destination = (char *)camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Transport"); if (destination) { |