At 23:15 2001-01-07 -0800, Nilanjan Sircar wrote:
I have written this codes in procmailrc file as
follows
Get in the habit of escaping dots you want to have matched as dots -- "."
is a single-character wildcard by itself.
:0
* ^TOnilanjan(_at_)shrilcal(_dot_)virtualave(_dot_)net
! nilanjan
Is it necessary to give :0c in each blocks
Why ?
'c' is the COPY flag - it makes the rule run on a copy of the
message. You'd use it if you wanted to forward AND then to do something
else with the same message (file it locally, pipe it into a webmail app, or
autoreply, etc). In the above cases, perhaps multiple addresses are all
recipients of the message, in which case, as written, only the first user
in the rules (nilanjan) would receive a copy (or perhaps multiple
copies). In such cases, I believe people usually find that adding a
duplicate messageid filter (check the archives) to eliminate duplicate
incoming messages, then using a 'c' flag on the rules deals with this.
Of course, if you administer the server, you'd be better off simply taking
each of these other users and setting up aliases in the virtusertable or
aliases file. There are limits to what you can do effectively within
procmail if it isn't getting the full envelope info from the MTA.
BTW - one would hope that your mail isn't handled by the SAME account as
this script is running under, otherwise you have a mail loop waiting for
you according to your first rule. Something to mull over (the same can
apply to bounces).
Does the mail become delivered mail if it
test the first block resulting in unmatched
Well, if it isn't matched in the first block, then it is NOT DELIVERED to
the DELIVERY RULE (in your case, a forward), and thus .... is NOT DELIVERED.
, or the mail is left as undelivered mail and pass to the next
block for test in case :0 is defined in each block
without a :0c .
I'm not following. However, if you use a c flag on a recipe, then the
ORIGINAL message is left in the delivery chain and is treated as if
undelivered, because a COPY of it is processed by that rule.
###Assumed each :0c is a block in rcfile
I don't follow what you mean by this.
---
Please DO NOT carbon me on list replies. I'll get my copy from the list.
Sean B. Straw / Professional Software Engineering
Post Box 2395 / San Rafael, CA 94912-2395
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail