procmail
[Top] [All Lists]

Re: exit codes, TRAP, etc.

2004-04-14 13:19:55
On Wed, Apr 14, 2004 at 01:00:14PM -0500, David W. Tamkin wrote:

Dallman Ross wrote:

I cannot find a simple way to see if an INCLUDERC didn't execute,
other than testing for something that could only have happened
inside the INCLUDERC.

Here's an approach:

[using "test" in a condition]

Yes, sorry for not mentioning that I don't feel like spawning
a shell.  I could easily do it with

* 1^1 ! ? test -f "$mayberc" -a -r "$mayberc"

so you are right that there is a "simple" way, which is what
I asked for.  But I've limited myself to not doing that.
So I've simply put something unique inside the $mayberc,
that I look for later.

-- 
dman

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