commit 45c006c4c5b21c05426ad76f5474a338b717beb7
parent 7d32a0740130b774e2cce129ca36c63c2f99a3ec
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
@@ -964,8 +964,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;