[Commits] [SCM] claws branch, master, updated. 3.13.1-6-g6eb02a5
claws at claws-mail.org
claws at claws-mail.org
Mon Dec 28 20:12:40 CET 2015
The branch, master has been updated
via 6eb02a559886a1c193524fa4f641bd2e4a799193 (commit)
from 10325e955f8b5a8239fe85a97135800876b1c242 (commit)
Summary of changes:
src/compose.c | 30 +++++++++++++-----------------
1 file changed, 13 insertions(+), 17 deletions(-)
- Log -----------------------------------------------------------------
commit 6eb02a559886a1c193524fa4f641bd2e4a799193
Author: Paul <paul at claws-mail.org>
Date: Mon Dec 28 19:12:33 2015 +0000
fix bug 2358, '"Disposition-Notification-To:" should default to same value as "From:'
diff --git a/src/compose.c b/src/compose.c
index 8b4e16a..81947e7 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -6494,11 +6494,22 @@ static gchar *compose_get_header(Compose *compose)
g_string_append_printf(header, "From: %s <%s>\n",
qname, from_address);
+ if (!IS_IN_CUSTOM_HEADER("Disposition-Notification-To") &&
+ compose->return_receipt) {
+ compose_convert_header(compose, buf, sizeof(buf), from_name,
+ strlen("Disposition-Notification-To: "),
+ TRUE);
+ g_string_append_printf(header, "Disposition-Notification-To: %s <%s>\n", buf, from_address);
+ }
if (qname != name)
g_free(qname);
- } else
+ } else {
g_string_append_printf(header, "From: %s\n", from_address);
-
+ if (!IS_IN_CUSTOM_HEADER("Disposition-Notification-To") &&
+ compose->return_receipt)
+ g_string_append_printf(header, "Disposition-Notification-To: %s\n", from_address);
+
+ }
g_free(from_name);
g_free(from_address);
@@ -6654,21 +6665,6 @@ static gchar *compose_get_header(Compose *compose)
compose->priority);
}
- /* Request Return Receipt */
- if (!IS_IN_CUSTOM_HEADER("Disposition-Notification-To")) {
- if (compose->return_receipt) {
- if (compose->account->name
- && *compose->account->name) {
- compose_convert_header(compose, buf, sizeof(buf),
- compose->account->name,
- strlen("Disposition-Notification-To: "),
- TRUE);
- g_string_append_printf(header, "Disposition-Notification-To: %s <%s>\n", buf, compose->account->address);
- } else
- g_string_append_printf(header, "Disposition-Notification-To: %s\n", compose->account->address);
- }
- }
-
/* get special headers */
for (list = compose->header_list; list; list = list->next) {
ComposeHeaderEntry *headerentry;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list