procmail
[Top] [All Lists]

Re: Matching Special Characters

2002-02-13 23:30:00
Michael J Wise <mjwise(_at_)kapu(_dot_)net> writes:
I saw something earlier, and have been trying to find a reference to it
in the local copies of the man-pages, without success.

If it's not there, it's not there.


Will this work?

      :0
      * ^From: \"\"=3c=3e$

(to match things like, 'From: ""<>'.

You don't need to escape double-quotes or angle-brackets.  To match that
literal string, just write:

        :0
        * ^From: ""<>

Procmail doesn't support any sort of hex-encoding of characters in
regexps.


And if not, is there a way to do something similar?

To which?  You'll have to clarify what you're asking for.


And will procmail ever support full egrep niceness like:

      * ^Message-ID: =3c0000[0-9]{8}\$
                                 ***

Or some variant thereof...?

Maybe.  For now you'll have to write it the long way

        * ^Message-ID: <0000[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\$


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>