Great Circle Associates Majordomo-Users
(September 2003)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Accuse de reception
From: Daniel Liston <dliston @ sonny . org>
Date: Mon, 15 Sep 2003 10:57:01 -0500
To: Majordomo-users @ greatcircle . com
In-reply-to: <200309151652.34813.mdily.ether@nerim.fr>
References: <200309111605.h8BG5OUH010431@tgoethe.com> <200309122318.40525.owner@writestop.com> <3F639A15.6050606@sonny.org> <200309151652.34813.mdily.ether@nerim.fr>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030906

Mickael wrote:

>  #forward spamtrap mail to spamarchive
> 
>  :0
> 
>  * !^TO_me@my\.domain\.com
>  ! submitautomated@spamarchive.org
> 
> 
> What does this line exactly do ? 
> I believe it looks at the recipient, and if it is different from my email 
> adress, it sends it to spamarchive.org... Am I wrong ? 

Colon (:) is the beginning of each rule, and zero (0) is a remnant
of early days where the intent was to number the rules.  All rules
today are actually numbered zero, and could be followed with other
flags. I did not use any flags in order to keep the example simple.

The condition (*) regex matches recipients that do not (!) begin (^)
with a To: Cc: Bcc: Original-To: Original-Cc: Original-Bcc: Resent-To:
Resent-Cc: Resent-Bcc: X-Envelope-To: Apparently-Resent-To: or
Apparently-To: header, followed by an email address comment or not,
up through the stated email address, and anything following it.  In
procmail, .* at the end of a regular expression is redundant.  Since
dots (.) are wildcard characters, they are escaped with a backslash.

The action (!) forwards to the RFC822 email address, and the dot (.)
is not a wildcard, so it is not escaped.

Long answer short, you are correct.  I just wanted to key in on all
the possible recipient headers that can be matched.  If this were to
be used in a global /etc/procmailrc recipe, the "me" portion of the
address used in the example would also have to be carefully expressed.


Dan Liston

PS. There should not be a blank line between the :0 and the condition
line either.  I think that appeared because of the way mozilla wants
to offer emoticons as a graphic display now.  Please do not mistake




Follow-Ups:
References:
Indexed By Date Previous: Re: Accuse de reception
From: Mickael <mdily.ether@nerim.fr>
Next: Re: Accuse de reception
From: Mickael <mdily.ether@nerim.fr>
Indexed By Thread Previous: Re: Accuse de reception
From: Mickael <mdily.ether@nerim.fr>
Next: Re: Accuse de reception
From: Mickael <mdily.ether@nerim.fr>

Google
 
Search Internet Search www.greatcircle.com