procmail
[Top] [All Lists]

Re: Help with filter-flags

2011-08-04 17:34:19
Arthur Dent <misc(_dot_)lists(_at_)blueyonder(_dot_)co(_dot_)uk> squaked out on 
Thu 04-Aug-2011 09:21
Using Sean's testing sandbox, the recipe below *kind of* works, but

produces "procmail: Extraneous filter-flag ignored" warnings. I can't
work out how to get rid of them.

see below.

Also, I have not yet managed to incorporate the error checking. Can I
have a brace within a brace as in my pseudocode?

I would check if clamd is running first, then proceed only if it is.

CLAMRUN=`ps -Uroot -co command | grep "\bclamd\b"`

:0
* CLAMRUN ?? clamd
{

# Your existing recipes, with some fixes

}

CLAMDSCAN=/usr/bin/clamdscan
CLAMDVERS=`${CLAMDSCAN} -V --stdout`

:0
VIRUS=|${CLAMDSCAN} --no-summary --stdout -

:0fw
  ^ Extraneous filter flag  since the action is not a filter.


 # grab the subject, if any
 :0afw
  ^ Extraneous filter flag  since the action is not a filter.


-- 
Passion is the pill you can swallow forever Taking them one by one One
by One --Agents of Good Roots "Come On"


____________________________________________________________
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>