[exim-cvs] cvs commit: exim/exim-src/src expand.c

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tom Kistner
Datum:  
To: exim-cvs
Betreff: [exim-cvs] cvs commit: exim/exim-src/src expand.c
tom 2007/05/11 09:48:32 BST

  Modified files:
    exim-src/src         expand.c 
  Log:
  Adapt PRVS BATV scheme address format to latest draft version


  Revision  Changes    Path
  1.85      +7 -7      exim/exim-src/src/expand.c


  Index: expand.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/expand.c,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- expand.c    26 Feb 2007 12:25:10 -0000    1.84
  +++ expand.c    11 May 2007 08:48:31 -0000    1.85
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/expand.c,v 1.84 2007/02/26 12:25:10 ph10 Exp $ */
  +/* $Cambridge: exim/exim-src/src/expand.c,v 1.85 2007/05/11 08:48:31 tom Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -3699,11 +3699,11 @@
         *domain++ = '\0';


         yield = string_cat(yield,&size,&ptr,US"prvs=",5);
  -      string_cat(yield,&size,&ptr,sub_arg[0],Ustrlen(sub_arg[0]));
  -      string_cat(yield,&size,&ptr,US"/",1);
         string_cat(yield,&size,&ptr,(sub_arg[2] != NULL) ? sub_arg[2] : US"0", 1);
         string_cat(yield,&size,&ptr,prvs_daystamp(7),3);
         string_cat(yield,&size,&ptr,p,6);
  +      string_cat(yield,&size,&ptr,US"=",1);
  +      string_cat(yield,&size,&ptr,sub_arg[0],Ustrlen(sub_arg[0]));
         string_cat(yield,&size,&ptr,US"@",1);
         string_cat(yield,&size,&ptr,domain,Ustrlen(domain));


  @@ -3741,15 +3741,15 @@
           case 3: goto EXPAND_FAILED;
           }


  -      re = regex_must_compile(US"^prvs\\=(.+)\\/([0-9])([0-9]{3})([A-F0-9]{6})\\@(.+)$",
  +      re = regex_must_compile(US"^prvs\\=([0-9])([0-9]{3})([A-F0-9]{6})\\=(.+)\\@(.+)$",
                                 TRUE,FALSE);


         if (regex_match_and_setup(re,sub_arg[0],0,-1))
           {
  -        uschar *local_part = string_copyn(expand_nstring[1],expand_nlength[1]);
  -        uschar *key_num = string_copyn(expand_nstring[2],expand_nlength[2]);
  -        uschar *daystamp = string_copyn(expand_nstring[3],expand_nlength[3]);
  -        uschar *hash = string_copyn(expand_nstring[4],expand_nlength[4]);
  +        uschar *local_part = string_copyn(expand_nstring[4],expand_nlength[4]);
  +        uschar *key_num = string_copyn(expand_nstring[1],expand_nlength[1]);
  +        uschar *daystamp = string_copyn(expand_nstring[2],expand_nlength[2]);
  +        uschar *hash = string_copyn(expand_nstring[3],expand_nlength[3]);
           uschar *domain = string_copyn(expand_nstring[5],expand_nlength[5]);


           DEBUG(D_expand) debug_printf("prvscheck localpart: %s\n", local_part);