Era Eriksson acknowledged Martin Ramsch's suggestion and revised his
suggestion:
| Good point, thanks!
|
| LOCKFILE=msgid.lock
| :0:
| * ! ^X-Loop:.*qz\.little-neck\.ny\.us
| * ? formail -D 32768 msgid.cache
| duped-mail
|
| LOCKFILE
Another small recommendation, though, Era: since you have a regional
lockfile in effect, you probably don't need a local lockfile on the recipe.
The case of having recipes elsewhere that save to duped-mail would not be
an exception (just use duped-mail.lock as the name of the regional lockfile).
The only exception would be a combination of these two situations: (1) a
recipe elsewhere also saves to duped-mail and (2) a recipe elsewhere also
writes (or could write) to msgid.cache.
| Apparently, the W flag will also be unnecessary when the program is
| invoked via ? instead of on the action line.
That's right: the whole point of an exit code condition is for procmail
to wait to learn the command's exit code. The effect that `W' has on a
command in the action line is implicitly necessary for any command in an
exit code condition, so it goes without saying, much as "work with a copy"
goes without saying for exit code conditions and variable capture actions.