Re: [Exim] Matching the NUL character in PCREs (exiscan 'reg…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: The probably still most prejudicously configured Exim User's Mailing List
Date:  
À: Tor Slettnes
CC: Exim User's Mailing List
Sujet: Re: [Exim] Matching the NUL character in PCREs (exiscan 'regex')
[ On Thursday, March 4, 2004 at 11:20:31 (-0800), Tor Slettnes wrote: ]
> Subject: [Exim] Matching the NUL character in PCREs (exiscan 'regex')
>
> I have a problem I believe must be fairly common, but have not found an
> optimal solution.
>
> I deliver mail to Cyrus via an LMTP socket. Cyrus rejects mail with NUL
> characters. Thus, I want to use a PCRE (specifically, a Exiscan-ACL
> "regex" statement) to reject incoming mails with such characters, as
> follows:
>
>     deny message = Message contains NUL characters.
>         regex = \000


I've never tried the octal version of NUL, but the hexidecimal version
seems to work, at least with PCRE-4.5:

    \x00


--
                        Greg A. Woods


+1 416 218-0098                  VE3TCP            RoboHack <woods@???>
Planix, Inc. <woods@???>          Secrets of the Weird <woods@???>