Re: [Exim] Exim 4 - regexp rewriting problem

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: John Horne
CC: exim-users
Subject: Re: [Exim] Exim 4 - regexp rewriting problem
On Thu, 28 Feb 2002, John Horne wrote:

> Many thanks. I've commented the rule out for now so that I can run Exim 4
> again :-)


Here's the fix. SMTP rewrites were broken.

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




*** exim-4.00/src/rewrite.c Mon Feb 25 10:47:08 2002
--- rewrite.c    Thu Feb 28 15:50:35 2002
***************
*** 115,122 ****


    if ((flag & rewrite_smtp) != 0)
      {
!     if (!match_check_string(subject, rule->key, 0, TRUE, FALSE, FALSE, NULL))
!       continue;
      new = expand_string(rule->replacement);
      }


--- 115,122 ----

    if ((flag & rewrite_smtp) != 0)
      {
!     if (match_check_string(subject, rule->key, 0, TRUE, FALSE, FALSE, NULL)
!         != OK) continue;
      new = expand_string(rule->replacement);
      }