procmail
[Top] [All Lists]

Re: procmail not matching

2002-06-08 11:44:22
I have corrected a few things. But I noticed it wasn't working, on the
yahoo, but for the linkline account.
Here is the To line from the Actual E-mail.
To: giffordj(_at_)linkline(_dot_)com, gifford_jim(_at_)yahoo(_dot_)com

A brief aside.  This is unrelated to your question.

procmail: No match on "^To: *giffordj(_at_)linkline(_dot_)com"
procmail: Incomplete recipe

'Incomplete recipe' is not a good thing to see.  I'll come back to that.

:0:
* ^To: *gifford_jim(_at_)yahoo(_dot_)com
$MAILDIR.Yahoo/

:0:
* ^To: *giffordj(_at_)linkline(_dot_)com
$MAILDIR.linkLINE/

The condition "^To: *gifford_jim" will match ONLY if you have a To: header
with zero or more spaces after the colon followed immediately by the
text 'gifford_jim'.  It doesn't match because that isn't what your mail
contains.

Probably what you intended was

  * ^To: .*gifford...[etc]

However, as someone has already suggested, what you really want to do is
probably a condition like:

  * ^TO_gifford...[etc]

# Accept all the rest to default mailbox
:0
*

This last recipe has no action, hence the "Incomplete recipe" error
telling you that something is wrong.  You probably meant:

  :0:
  $DEFAULT

although the recipe is unnecessary - if procmail gets to the end of your
rc file without having delivered, it will deliver to your default
mailbox automatically.

Hope that helps,
Martin
-- 
Martin McCarthy                 /</    http://procmail.non-prophet.org
    `Procmail Companion'        \>\
     Addison Wesley             /</                  PGP key available
_______________________________________________
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>