Ruud H.G. van Tol schrieb:
w = "[A-Za-z0-9_]" # [[:word:]]
W = "[^A-Za-z0-9_]" # [^[:word:]]
thank you Ruud for the test.pr
i tried it and i got a match
i use for $WS
SPACE = " "
TAB = " " # a literal tab in the quotes
WS = "$SPACE$TAB" # whitespace
and
:0: B
* [^$WS][$WS][^$WS][$WS][^$WS][$WS][^$WS][$WS][^$WS][$WS][^$WS][$WS]
/var/mail/dirt
the verbose log is
procmail: No match on
"[^$WS][$WS][^$WS][$WS][^$WS][$WS][^$WS][$WS][^$WS][$WS][^$WS][$WS][^$WS][$WS]"
there the mistake was the missing leading $
the differents i see to your test.pr is that i am not looking only for
printable literals
w = "[A-Za-z0-9_]" # [[:word:]]
but also for all other non whitespace Characters.
and that you check on a var and not the Mailbody
TEST = 'A B C D E F G'
:0
* $ TEST ?? ^$w$b$w$b$w$b$w$b$w$b$w$b
{ LOG = "TEST matched$n" }
may i should try to do it like that:
SPACE = " "
TAB = " " # a literal tab in the quotes
WS = "$SPACE$TAB" # whitespace
NWS = [^$WS] # not whitespace
with braces
:0: B
* [$NWS$WS$NWS$WS$NWS$WS$NWS$WS$NWS$WS$NWS]
/var/mail/dirt
procmail: Match on "[$NWS$WS$NWS$WS$NWS$WS$NWS$WS$NWS$WS$NWS]"
but always in every mail
with a leading $
:0: B
* $ $NWS$WS$NWS$WS$NWS$WS$NWS$WS$NWS$WS$NWS
/var/mail/dirt
i get
procmail: No match on "[^ ] [^ ] [^ ] [^
] [^ ] [^ ]"
to be honest thats very confusing to me
should be very simple to get a match
can you please give me a example how i get a match
on a paragraph in an emailbody like
something something whatever..... # for that i am not checking
a b c / e f # this i want to find
x / - b c d k X # dito
Matthias
____________________________________________________________
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