I have no idea what ifile is;
ifile is software for spam filtering. Output of "ifile -q -v 0"
consist of two lines and is in case of:
- spam (e.g.):
spam -5337.99697733
nonspam -7190.42727947
- nonspam (e.g.):
nonspam -1110.66926289
spam -1708.58810854
So I need to compare first word of FIRST line.
:0 flags
* ? ifile -q -v 0 | grep -qs '^spam'
{ your action on success }
Sorry, but both versions (from you and parv) doesn't work. Maybe my
grep is not so good as yours:), so I add "head -1" statement to catch
just first line, but I always get exitcode "1". :(((
When I try "cat spam | ifile -q -v 0 | head -1 | grep '^spam'" on
command line, it works. But using procmail I get this in log:
procmail: Executing " ifile -q -v 0 | head -1 | grep '^spam'"
procmail: Non-zero exitcode (1) from " ifile -q -v 0 | head -1 | grep
'^spam'"
procmail: No match on " ifile -q -v 0 | head -1 | grep '^spam'"
Why? Is line with ":0w" correct?
lk
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail