[Exim] Small patch: $reply_address empty when empty Reply-To…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Tom Kistner
Data:  
Para: exim-users, ph10
Assunto: [Exim] Small patch: $reply_address empty when empty Reply-To: header set
This is a multi-part message in MIME format.
--
Here's a small patch that fixes (?) the $reply_address expansion
variable setup when a message has an empty Reply-To: header.

The exim manual states:

$reply_address: When a message is being processed, this variable
contains the contents of the Reply-To: header line if one exists, or
otherwise the contents of the From: header line.

This is correct, and reflects the current behaviour. However, when a
"From: foo" header is there, and an empty Reply-To: header is set,
$reply_address is empty, which is (IMHO) not the "correct" functionality
(it does match the docs, but I think the docs need to be changed too :) ).

regards,

/tom
--
--- expand.c.orig    Tue Apr  8 11:44:40 2003
+++ expand.c    Tue Apr  8 11:45:44 2003
@@ -1115,7 +1115,7 @@


     case vtype_reply:                          /* Get reply address */
     s = find_header(US"reply-to:", exists_only, newsize, FALSE);
-    if (s == NULL) s = find_header(US"from:", exists_only, newsize, FALSE);
+    if ((s == NULL) || (*s == '\0')) s = find_header(US"from:", exists_only, newsize, FALSE);
     return (s == NULL)? US"" : s;


     /* A recipients list is available only during system message filtering,
--