commit 22f7e8c1911cbdb0debb7e869ef859b5c09e8961
parent 23218372fb31b93cc3bef4474e928fe25df387e2
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date: Wed, 18 Aug 2021 09:48:37 -0700
Fix return receipts from accounts without a name
Use the chosen account's address for the return receipt if the account
name isn't set
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/messageview.c b/src/messageview.c
@@ -962,8 +962,10 @@ static gint disposition_notification_send(MsgInfo *msginfo)
}
g_free(buf);
buf = NULL;
- } else
- goto FILE_ERROR;
+ } else {
+ if (fprintf(fp, "From: %s\n", account->address) < 0)
+ goto FILE_ERROR;
+ }
if (fprintf(fp, "To: %s\n", to) < 0)
goto FILE_ERROR;