Re: [Exim] rewrites and $0

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: exim-users
Cc: Chris Edwards
Asunto: 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.