The previous patch that I submitted made sure that the envelope
recipient address of the message that triggers a vacation response had
the same domain name as the one used by the MTA.  Today's patch
ensures that this same address will be used as the originator of the
response message.  Taking it from the first additional address is not
a good idea, since the additional addresses are supplied by the user,
and may be incorrect.  The result would be that the response message
would be unreplyable.  The one with the domain specified by the
administrator is more likely to be correct.

The patch is for sieve/script.c.

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-
*** script.Oc   Wed Aug  1 12:40:37 2001
--- script.c    Mon Nov 19 21:16:19 2001
***************
*** 524,534 ****
                    }
  
                    /* who do we want the message coming from? */
!                   if (c->u.v.addresses) {
!                       fromaddr = c->u.v.addresses->s;
!                   } else {
!                       fromaddr = myaddr;
!                   }
                
                    res = do_vacation(actions, reply_to, strdup(fromaddr),
                                      strdup(buf),
--- 524,530 ----
                    }
  
                    /* who do we want the message coming from? */
!                   fromaddr = myaddr;
                
                    res = do_vacation(actions, reply_to, strdup(fromaddr),
                                      strdup(buf),

Reply via email to