procmail
[Top] [All Lists]

undepanded chain actions.

2002-08-26 03:03:18

        I try to remove temporary file after recipe was finished with
        success or not:

:0
{
        :0 Bw
        * $ ? antivirus $FILE
        /dev/null

        :0
        /bin/rm $FILE
}


        The problem:  If I want to remove $FILE I must use [aAeE] flags
        and I want to remove it on ANY case.

        I don't like this long way:

:0
        :0 Bw
        * $ ? antivirus $FILE
        {
                :0
                /bin/rm $FILE

                :0
                /dev/null
        }

        :0 E
        /bin/rm $FILE
}


        Any idea? How to make it more elegant?


Thanks,
 Udi

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