aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/em-composer-utils.c4
2 files changed, 11 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index bc8f69138c..8dacba3bff 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,12 @@
+2005-09-22 Carsten Guenther <carsten.guenther@scalix.com>
+
+ Fixes #316983
+
+ * em-composer-utils.c (em_utils_send_receipt):
+ Exchanged the FROM and TO fields so that a read
+ receipt actually goes to the sender of the original
+ message.
+
2005-09-21 Sankar P <psankar@novell.com>
* em-account-editor.c (emae_defaults_page):
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index f994a79a83..452cad9bca 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1238,12 +1238,12 @@ em_utils_send_receipt (CamelFolder *folder, CamelMimeMessage *message)
addr = camel_internet_address_new ();
camel_address_decode (CAMEL_ADDRESS (addr), self_address);
- camel_mime_message_set_recipients (receipt, CAMEL_RECIPIENT_TYPE_TO, addr);
+ camel_mime_message_set_from (receipt, addr);
camel_object_unref (addr);
addr = camel_internet_address_new ();
camel_address_decode (CAMEL_ADDRESS (addr), receipt_address);
- camel_mime_message_set_from (receipt, addr);
+ camel_mime_message_set_recipients (receipt, CAMEL_RECIPIENT_TYPE_TO, addr);
camel_object_unref (addr);
camel_medium_set_header (CAMEL_MEDIUM (receipt), "Return-Path", "<>");