procmail
[Top] [All Lists]

Re: Filtering Forwarded Email.

2005-03-09 14:20:45
At 12:00 2005-03-09 -0800, multimedia-fan(_at_)myrealbox(_dot_)com wrote:
Thank you for  the advice.

One thing that I am not sure, shall I avoid any ${DEFAULT} in the rcfile
since it is not a local delivery?

Well, what I do is specify the delivery action as the argument to the rcfile, and I don't happen to be invoking the /etc/procmailrc, but some other purpose-specific rcfile (within /etc/procmailrcs/). Invocation would be more like so:

jsmtih: "|/usr/bin/procmail -m /etc/procmailrcs/forward.rc jsmith(_at_)newaddress(_dot_)tld"


At the bottom of my seneschal filterset, I have:

# Default rule - pass off to majordomo (using config we were passed).
# Passing the message through formail to strip the X-Envelope-From: header
# we added isn't strictly necessary, but this restores the message to
# the condition it was originally received in.
:0
| formail -I "X-Envelope-From:" | $DELIVERY

Delivery was set to $1 in a settings file, and this handles further piped delivery just fine. You could just use $1, but this variable assignment makes it easier to follow in the rcfile.

I will do that.

Er, I failed to post the url:  <http://www.knoppix.de/>

It's a free download. Quite a handy tool to have in the computer toolbox, even if you normally use windoz.


---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>