At 04:51 PM 3/11/2005, manu@... wrote:
>Matt Kettler <mkettler@...> wrote:
>
> > Question, is there a reason the regcomp calls in acl.c do not use the
> > REG_EXTENDED flag?
>
>No real reason. Would you like to contribute a patch for a reg_extended
>flag in the config file? That's an easy one.
Sure.. it's quite trivial anyway.. See attached diff -u patch.
By the way, if you've got the patch, the following ACL will greylist hosts
which are unresolvable and get sent down by sendmail as a bracketed IP
instead of a hostname.
#greylist unresolvable hosts
acl greylist domain /\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\]/
The same could be done with the non-extended regexes, but the syntax is a
bit different. To start with you'd need \{1,3\} instead of {1,3}.Message
Re: [milter-greylist] Why the use of basic regexes instead of extended?
2005-03-11 by Matt Kettler