procmail
[Top] [All Lists]

Re: ASCII 128-255

2005-05-12 17:05:25
On 12 May 2005, at 15:27 , William Park wrote:
    * -1^1 MATCH ?? [a-zA-Z0-9]
    *  1^1 MATCH ?? [^a-zA-Z0-9]

because that will only work if the majority of the characters are spaces, tabs, EOL, or hibit.

I think you need something more like this:

NL="
"
WS="     " (space tab)

* TEMP ?? [^$NL$WS!-~]

(! is ASCII(33) and ~ is ASCII(126). This will only hit if there are characters in the ranges 0-8, 11-31, or 127-255 (or 0-8, 10-12, 14-31, 127-255, depending on what your systems NL is. but it's usually ASCII(10)).



--
The trouble with being a god is that you've got no one to pray to.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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