* Ralf Hildebrandt <[email protected]>:
> * [email protected] <[email protected]>:
> > Hello,
> > 
> >  
> > 
> > we are using the postmaster filter very excessively (having more than 100).
> > Some regexp are really not failure-proof.
> > 
> >  
> > 
> > But I thought this one (looking at subject line) is:
> > 
> > ---8< ---
> > 
> > (\D|^)123_Cust(\D|$)|(\D|^)123(\D).*(\D)Cust(\D|$)

Damn, didn't see the other |

So it's either:
(\D|^)123_Cust(\D|$)
or
(\D|^)123(\D).*(\D)Cust(\D|$)

The second part of the regexp should match!

# echo "Subject: 123: GPW Cust Lieferung /UPS hat Pal. gezogen **CUT OFF 
RELEVANT**" | pcregrep "(\D|^)123(\D).*(\D)Cust(\D|$)"
Subject: 123: GPW Cust Lieferung /UPS hat Pal. gezogen **CUT OFF RELEVANT**

yup, it's matching!

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  [email protected] | http://www.charite.de
            
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to