From c7d44422c8b20ff5a2b80b94e22fe5fd92e4c1f0 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Wed, 17 Jun 2020 00:54:00 -0600 Subject: * Alpine does not set the return path correctly when using a role while bouncing a message. Reported by Dr. C. Griewatsch. --- alpine/send.c | 4 ++++ pith/pine.hlp | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/alpine/send.c b/alpine/send.c index e21d8009..b4e2322f 100644 --- a/alpine/send.c +++ b/alpine/send.c @@ -1221,6 +1221,10 @@ pine_simple_send(ENVELOPE *outgoing, /* envelope for outgoing message */ if(role && role->from && !ps_global->never_allow_changing_from){ mail_free_address (&outgoing->from); outgoing->from = copyaddrlist(role->from); + if(!(flagsarg & SS_NULLRP)){ + fs_give((void **) &outgoing->return_path); + outgoing->return_path = rfc822_cpy_adr(outgoing->from); + } } if(rolep) *rolep = role; } diff --git a/pith/pine.hlp b/pith/pine.hlp index 58669056..76c8d8eb 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 448 2020-06-14 15:53:58 +Alpine Commit 449 2020-06-17 00:53:57 ============= h_news ================= @@ -208,6 +208,9 @@ Bugs addressed:

-- cgit v1.2.3-70-g09d2