procmail
[Top] [All Lists]

Re: forwarding

2001-04-08 15:57:42
At 22:51 2001-04-08 +0200, Johannes Zellner wrote:

   :0:
    * !^From:(_dot_)*johannes(_at_)zellner(_dot_)org
    * !^To:(_dot_)*joze(_at_)krispc6(_dot_)physik(_dot_)uni-karlsruhe(_dot_)de
    !johannes(_at_)zellner(_dot_)org

why does this not work ?

1. You're forwarding, not putting into a file, so the trailing colon flag (for locking) is unneccessary.

2. You should get in the habit of escaping dots which should be interpreted as DOTS, rather than as single character wildcards. That isn't impacting your match here, but you should make it a force of habit.

3. Do you not get *ANYTHING* forwarded? You don't show headers from an example message that DOESN'T end up matching, but which you believe SHOULD.

4. Have you considered enabling VERBOSE logging, and examining the logfile. This is generally the FIRST thing that should be done when a rule isn't working the way you think it should. See my .sig

   * ^To:(_dot_)*joze(_at_)krispc6(_dot_)physik(_dot_)uni-karlsruhe(_dot_)de
    $LOCALMBOX

but this saves the not-matching mails to 
~/.mail/!johannes(_at_)zellner(_dot_)org,
so the mail forwarding does apparently not work for DEFAULT.

AFAIK, ! must be at the beginning of the action line -- the variable is not expanded first. Lacking the bang, procmail will see the action line as a file and treat it as such.

---
 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(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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