aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-10-30 08:52:11 +0800
committerDan Winship <danw@src.gnome.org>2001-10-30 08:52:11 +0800
commit55d0f4b62c24985dc29e0af0b66c7031f738284c (patch)
tree38e732ff3b9051dace11596728e40b92ce28034a /camel
parent86f348faf3d8c1ceb2de7941a65ce957ec357375 (diff)
downloadgsoc2013-evolution-55d0f4b62c24985dc29e0af0b66c7031f738284c.tar.gz
gsoc2013-evolution-55d0f4b62c24985dc29e0af0b66c7031f738284c.tar.zst
gsoc2013-evolution-55d0f4b62c24985dc29e0af0b66c7031f738284c.zip
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
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/imap/camel-imap-folder.c9
2 files changed, 15 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index f50711be42..7e9eb71f7a 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-29 Dan Winship <danw@ximian.com>
+
+ * 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.
+
2001-10-29 <NotZed@Ximian.com>
* camel-vee-folder.c (folder_changed_change): If we're not going
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;