Bart answered Robert,
| :0 Wf:$HOME/filtmail.lock
| | $HOME/.filtmail/filtmail
|
| :0 a
| {
| :0hf
| * ^^rom( )
| | sed '1s/^/F/'
|
| :0:
| $MAILDIR/copy
| }
Yes, exactly, except that Robert doesn't have to specify "$MAILDIR/"; that's
already the cwd:
:0:
copy
would do the job for the second recipe inside the braces.
| Or like this:
|
| --------------------------
| :0 Wf:$HOME/filtmail.lock
| | $HOME/.filtmail/filtmail
|
| :0 a:$MAILDIR/copy$LOCKEXT
| | sed '1s/^rom/From/' >> $MAILDIR/copy
Not quite so good. It works, but it calls a shell and it runs sed even on
messages that don't need it.
BTW, you don't need to name the local lockfile there; procmail would infer it
by its standard method of appending $LOCKEXT to the first word after ">>" in
the action line.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail