On Tue, 24 Aug 2004, Darragh Bailey wrote:
> Having problems getting a procmail receipe right
>> :0 wc
> * ^X-Spam-Level: (\*){1,4}$
> spam/ham-check
Does procmail support ranges in bounds?
> assumption that for the likes of ( ,) ,{ & } to be recognised as
> meta characters by procmail that you didn't escape them unless you
> wanted the literal versions, which is why I assumed that the
> version that I've given first is the correct method.
Right. Above should be good, unless procmail doesnt support range
bounds, which it mightnt (that might be a gnu egrep extension ;) -
original egrep mightnt support POSIX bounds - not many things do
actually.).
> Is the problem the {1,4} part? if so is there another way to get the same
> result or do I need to write it out the long way such as
> \*|\*\*|\*\*\*|\*\*\*\* in order to have the receipe work as desired?
one answer, or even (\*(\*(\*(\*)?)?)?), maybe.
regards,
--
Paul Jakma paul at clubi.iepaul at jakma.org Key ID: 64A2FF6A
Fortune:
The distinction between true and false appears to become increasingly
blurred by... the pollution of the language.
-- Arne Tiselius
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!