I have a set of recipes, all of which have the same basic form.
:0 B
* somepattern
{
:0 fhw
|formail -a "X-Header-1: foo" -a "X-Header-2: bar"
:0 c:
$SOMEMAILBOXDIR
:0:somelockfile.lock
|/path/to/my/perlscript somearg1 somearg2 somearg3
}
The intended effect is that if a message matches 'somepattern', the
message will be annotated using 'formail' and then delivered to a
maildir-style directory $SOMEMAILBOXDIR. A copy of the message will be
piped through a script 'perlscript' for further analysis (but not
delivered).
There are multiple recipes of this form; the lockfile name used in the
final action is the same in each one.
In general, this works well. However, in a small number of cases, the
message is not delivered to $SOMEMAILBOXDIR, but rather to the default
delivery directory. In a very few cases, it also looks as if multiple
recipes are applying to a single message (the goal is that only one recipe
should apply to any given message).
Is there an obvious error that I'm overlooking, which could cause the
recipe not to work in the way I expect?
Thanks in advance for any help or suggestions,
Angus
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail