When are messages implicitly stored in $DEFAULT?
When they have not been delivered explicitly, in a "delivering"
recipe.
In the below
:0
* ^From.*peter
* ^Subject:.*compilers
{
:0 c
! william(_at_)somewhere(_dot_)edu
:0
petcompil
}
If I remove :0
petcompil
does the message get forwarded _and_ stored in $DEFAULT?
I think you need to read the "procmailrc" man page more carefully.
It answers this question very well. These paragraphs are pasted
directly from the first page of the "procmailrc" (v3.11pre4) man
page:
There are two kinds of recipes: delivering and non-
delivering recipes. If a delivering recipe is found to
match, procmail considers the mail (you guessed it) deliv-
ered and will cease processing the rcfile after having
successfully executed the action line of the recipe. If a
non-delivering recipe is found to match, processing of the
rcfile will continue after the action line of this recipe
has been executed.
Delivering recipes are those that cause header and/or body
of the mail to be: written into a file, absorbed by a pro-
gram or forwarded to a mailaddress.
Non-delivering recipes are: those that cause the output of
a program or filter to be captured back by procmail or
those that start a nesting block.
You can tell procmail to treat a delivering recipe as if
it were a non-delivering recipe by specifying the `c' flag
on such a recipe. This will make procmail generate a car-
bon copy of the mail by delivering it to this recipe, yet
continue processing the rcfile.
If not, how does one set a rule up to forward and store in $DEFAULT?
If you feel uncomfortable with implicit actions, you can always
define an explicit delivery:
:0:
$DEFAULT
do I have to explicitly put it in default with :0 $DEFAULT?
It depends on what you *want* procmail to do. But, generally, no.
See the "procmailrc" man page.
___________________________________________________________
Alan Stebbens <aks(_at_)sgi(_dot_)com> http://reality.sgi.com/aks