procmail
[Top] [All Lists]

Re: undepanded chain actions.

2002-08-30 02:19:34
      I try to remove temporary file after recipe was finished with
      success or not:


How about:

        NOTHING=
        :0 Bw
        * 1^0 $ ? antivirus $FILE
        * 0^0 $ NOTHING ?? ? /bin/rm $FILE
        /dev/null

The result of the rm will have no effect on the result, but it should
always be executed.

The use of 'NOTHING' is to avoid wasting time passing any mail through
to the rm command.

Totally untested, naturally, so check it before you try it :-)

Hope that helps,
Martin
-- 
Martin McCarthy                 /</    http://procmail.non-prophet.org
    `Procmail Companion'        \>\
     Addison Wesley             /</                  PGP key available
_______________________________________________
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>