aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-folder.c9
1 files changed, 9 insertions, 0 deletions
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;