Re: [Exim] rewrites and $0

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: exim-users
CC: Chris Edwards
Sujet: Re: [Exim] rewrites and $0
On Tue, 6 Aug 2002, I wrote:

> On Mon, 5 Aug 2002, Chris Edwards wrote:
>
> > $0 = hearts-queen@???
> >
> > But for me in v4 $0 is just "hearts-queen". In v3 it was indeed the full
> > address.
>
> It's a bug in v4. I'll send you a patch when I've sussed it out.


Here's the patch:


*** exim-4.10/src/match.c   Mon Jul 22 09:59:49 2002
--- match.c    Wed Aug  7 11:30:37 2002
***************
*** 1139,1145 ****


  if (expand_setup == 0)
    {
!   expand_nstring[0] = address;
    expand_nlength[0] = Ustrlen(address);
    expand_setup++;
    }
--- 1139,1145 ----


  if (expand_setup == 0)
    {
!   expand_nstring[0] = string_copy(address);
    expand_nlength[0] = Ustrlen(address);
    expand_setup++;
    }



--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.