Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Posts: 19,118
Thanks Given: 2,351
Thanked 3,359 Times in 1,878 Posts
One more example. Note the order of the example recipes in the braces:
* Notice how the "action" of the top-level condition is a set of curly braces containing more recipes.
* Notice also how there is no lock on the top-level recipe.
* And no :c flag either (in the general case. Of course you should have a :c if you want Procmail to branch, and do the braces in one branch, and continue basically as if this recipe hadn't matched in another).
* Every recipe in the braces can have any additional flags and conditions, and even another set of braces as their action, recursively recursively. In other words, they're exactly the same as a recipe in the top level .procmailrc.
Yes, I removed the c in the test case and commented out the recipe that calls my php script. That worked as expected. When I restored it to the original, the strange behavior began again.
I got it to work right by using the following hack:
When I do "set -n" or "set -o noexec" the shell doesn't do what it sould.
Infact if I check:
$: set -o
....
noexec off
....
f
...instead I can set normally the other option.
Who Knows what could be up? (2 Replies)
Suppose executable X produces files A and B from nothing, Y produces C from A, Z produces D from B, and my final goal is to produce C and D. I wrote the following makefile:
.PHONY: all
all: C D
C: A
Y A
D: B
Z B
A B:
X
This makefile seems to reflect all dependencies, as it should... (2 Replies)
Hi all,
I got a script that runs automatically using the cron file.
The script starts running at midnight and suppose to delete image files from folders and sub-folders. The script ends when he finishes deleting or after 5 hours. My problem is that the script doesn't stop running even after 5... (3 Replies)
This procmail recipe catches a lot of spam, but might accidently catch a friendly email occasionally:
:0
* ^From:.*()+.*@
number_spam
... trapping user names in the From header field that have 3 or more numbers. (0 Replies)
Here is a crude procmail recipe that I quickly created (NOT a procmail recipe expert, btw) that has been catching lots of spam (current second after the charset_spam recipe posted earlier):
:0B
* .*If.you.do.not.wish.to.receive...*
more_spam
:0B
* You.requested.to.receive.this.mailing... (0 Replies)