diff options
author | Dan Winship <danw@src.gnome.org> | 2001-10-30 08:52:11 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-10-30 08:52:11 +0800 |
commit | 55d0f4b62c24985dc29e0af0b66c7031f738284c (patch) | |
tree | 38e732ff3b9051dace11596728e40b92ce28034a /camel/providers | |
parent | 86f348faf3d8c1ceb2de7941a65ce957ec357375 (diff) | |
download | gsoc2013-evolution-55d0f4b62c24985dc29e0af0b66c7031f738284c.tar gsoc2013-evolution-55d0f4b62c24985dc29e0af0b66c7031f738284c.tar.gz gsoc2013-evolution-55d0f4b62c24985dc29e0af0b66c7031f738284c.tar.bz2 gsoc2013-evolution-55d0f4b62c24985dc29e0af0b66c7031f738284c.tar.lz gsoc2013-evolution-55d0f4b62c24985dc29e0af0b66c7031f738284c.tar.xz 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/providers')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 9 |
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; |