From 55d0f4b62c24985dc29e0af0b66c7031f738284c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 30 Oct 2001 00:52:11 +0000 Subject: Set an X-Evolution-Source header on the returned message so replies come * providers/imap/camel-imap-folder.c (get_message_simple, imap_get_message): Set an X-Evolution-Source header on the returned message so replies come from the right identity. svn path=/trunk/; revision=14388 --- camel/providers/imap/camel-imap-folder.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'camel/providers/imap') diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index c353b040a7..c525dedbda 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -1506,6 +1506,8 @@ get_message_simple (CamelImapFolder *imap_folder, const char *uid, CamelStream *stream, CamelException *ex) { CamelMimeMessage *msg; + CamelImapStore *imap_store = + CAMEL_IMAP_STORE (CAMEL_FOLDER (imap_folder)->parent_store); if (!stream) { stream = camel_imap_folder_fetch_data (imap_folder, uid, "", @@ -1518,6 +1520,10 @@ get_message_simple (CamelImapFolder *imap_folder, const char *uid, camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (msg), stream); camel_object_unref (CAMEL_OBJECT (stream)); + + /* FIXME, this shouldn't be done this way. */ + camel_medium_set_header (CAMEL_MEDIUM (msg), "X-Evolution-Source", + imap_store->base_url); return msg; } @@ -1604,6 +1610,9 @@ imap_get_message (CamelFolder *folder, const char *uid, CamelException *ex) } msg = get_message (imap_folder, uid, "", mi->content, ex); + /* FIXME, this shouldn't be done this way. */ + camel_medium_set_header (CAMEL_MEDIUM (msg), "X-Evolution-Source", + store->base_url); camel_folder_summary_info_free (folder->summary, mi); return msg; -- cgit v1.2.3