summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-06-17 00:54:00 -0600
committerEduardo Chappa <chappa@washington.edu>2020-06-17 00:54:00 -0600
commitc7d44422c8b20ff5a2b80b94e22fe5fd92e4c1f0 (patch)
tree231fcba7e4e0f76b18108f6a85d9f0db51a46d4e
parent4fa8e0bba357cfc2810ebe8c2dff79ae1778ada7 (diff)
downloadalpine-c7d44422c8b20ff5a2b80b94e22fe5fd92e4c1f0.tar.xz
* Alpine does not set the return path correctly when using a role while bouncing
a message. Reported by Dr. C. Griewatsch.
-rw-r--r--alpine/send.c4
-rw-r--r--pith/pine.hlp5
2 files changed, 8 insertions, 1 deletions
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 =================
<HTML>
<HEAD>
@@ -208,6 +208,9 @@ Bugs addressed:
<UL>
<LI> Selecting by subject might not copy the subject of the current message
to the selection text correctly. Reported by Iosif Fettich.
+
+ <LI> Alpine does not set the return path correctly when using a role while bouncing
+ a message. Reported by Dr. C. Griewatsch.
</UL>
<P>