(sorry if send twice, but got pb with my email)
I am using TRAP to run a script that refresh my mail reader (gnus)
each time a mail arrives. Sometimes I don't want to refresh gnus.
Is there a way to disable the TRAP in some cases ?
Julien.
P.S. : Of course, I can do
:0 c
* ...
| run_script
but the script don't need the mail to run, so IHMO it is not a good
use of procmail.
And this solution implies to have each statement written twice :
one for processing the mail :
:0 c
* ^SUBJECT.*log
$HOME/incoming/logs
and one for running the script :
:0:
* ^SUBJECT.*log
| run_script
Or perhaps, something like :
:0:
* ^SUBJECT.*log
{
:0 c
$HOME/incoming/logs
:0:
| run_script
}
but anyway, it is not very easy to use.