commit f5c1429ae49b97856b69d26e75f042ee063bd091
parent 76749107d9c34aa0ae7d9e8358742565006b21af
Author: Paul <paul@claws-mail.org>
Date: Thu, 21 Jun 2018 10:54:11 +0100
fix bug, 'MDN mail-accountname leak'
always use whatever is in the To header for the From header when sending
Return Receipts
Diffstat:
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/src/messageview.c b/src/messageview.c
@@ -970,19 +970,8 @@ static gint disposition_notification_send(MsgInfo *msginfo)
goto FILE_ERROR;
/* From */
- if (account->name && *account->name) {
- notification_convert_header(&buf, account->name, strlen("From: "));
- if (buf == NULL)
- goto FILE_ERROR;
- if (fprintf(fp, "From: %s <%s>\n", buf, account->address) < 0) {
- g_free(buf);
- goto FILE_ERROR;
- }
- g_free(buf);
- buf = NULL;
- } else
- if (fprintf(fp, "From: %s\n", account->address) < 0)
- goto FILE_ERROR;
+ if (fprintf(fp, "From: %s\n", msginfo->to) < 0)
+ goto FILE_ERROR;
if (fprintf(fp, "To: %s\n", to) < 0)
goto FILE_ERROR;