diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-03-30 07:46:55 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-03-30 07:46:55 +0800 |
commit | 424506262d215dfe306aea0d0fe86833d08b82a4 (patch) | |
tree | eb1a374e5b456d1d546b0c0f4b5a4d0d6280a7de /camel/camel-mime-message.c | |
parent | b912dd5436413b55dc4500dd7d2b8afcdd433727 (diff) | |
download | gsoc2013-evolution-424506262d215dfe306aea0d0fe86833d08b82a4.tar.gz gsoc2013-evolution-424506262d215dfe306aea0d0fe86833d08b82a4.tar.zst gsoc2013-evolution-424506262d215dfe306aea0d0fe86833d08b82a4.zip |
Added #include <libgnome/gnome-paper.h>
2001-03-29 Jon Trowbridge <trow@ximian.com>
* printing/e-contact-print.c: Added #include <libgnome/gnome-paper.h>
* printing/e-contact-print-envelope.c: Added #include <time.h>
and #include <libgnome/gnome-paper.h>
* gui/component/select-names/e-select-names-completion.c
(match_email): Better handle matching of "nameless" contacts.
* backend/ebook/e-destination.c (e_destination_get_string): Better
handle the case of a "nameless" contact.
2001-03-29 Jon Trowbridge <trow@ximian.com>
* camel-filter-driver.c (camel_filter_driver_filter_message): Save
the source URL using camel_mime_message_set_source.
* camel-mime-message.c (camel_mime_message_set_source): Renamed
camel_mime_message_set_identity to this. Sets the X-Evolution-Source
header.
(camel_mime_message_get_source): Returns the X-Evolution-Source
header.
2001-03-29 Jon Trowbridge <trow@ximian.com>
* mail-callbacks.c: Added #include <time.h> to get things
to compile.
* mail-callbacks.c (mail_generate_reply): Look at the
X-Evolution-Source header, and try to find a corresponding
account. If this works, send the mail from this account.
If not, use the default account.
* mail-ops.c (send_queue_send): Strip out the X-Evolution-Source
header before sending.
* mail-config.c (mail_config_get_account_by_source_url): Added.
Look up accounts by source URL.
svn path=/trunk/; revision=9032
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r-- | camel/camel-mime-message.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index 3728921612..1437744260 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -28,6 +28,7 @@ #include <config.h> #endif +#include <ctype.h> #include <stdio.h> #include <string.h> @@ -401,10 +402,23 @@ camel_mime_message_set_recipients(CamelMimeMessage *mime_message, const char *ty } void -camel_mime_message_set_identity(CamelMimeMessage *mime_message, const char *identity) +camel_mime_message_set_source(CamelMimeMessage *mime_message, const char *src) { g_assert (mime_message); - camel_medium_add_header (CAMEL_MEDIUM (mime_message), "X-Evolution-Identity", identity); + camel_medium_add_header (CAMEL_MEDIUM (mime_message), "X-Evolution-Source", src); +} + +const char * +camel_mime_message_get_source(CamelMimeMessage *mime_message) +{ + const char *src; + g_assert(mime_message); + src = camel_medium_get_header (CAMEL_MEDIUM (mime_message), "X-Evolution-Source"); + if (src) { + while (*src && isspace ((gint) *src)) + ++src; + } + return src; } const CamelInternetAddress * |