procmail
[Top] [All Lists]

Re: Moved to 3.14 and now have problems with redirects

2000-03-17 10:22:44

The 'f' flag is not necessary. The 'f' means use
the '|' as a filter, not as a way to invoke shell
commands.

example:
# to filter an email
:0 f
* ^TO_eng
| formail -I"Subject: [eng]$MATCH"

# to invoke shell commands
:0
* ^From: important(_at_)person(_dot_)com
| echo "check your email!" | perl pageme.pl

A rewrite of your recipe would be:

:0 c
* ^TO_info(_at_)mgroup(_dot_)org
! jtate(_at_)cgocable(_dot_)net

This would forward all messages to info(_at_)mgroup(_dot_)org to
the jtate address and continue (that's what the 'c' is for)
processing the email.

If you want procmail to *just* forward the email and do
nothing else, get rid of the 'c' flag.

On Thu, 16 Mar 2000, Michael DeMutis wrote:
: 
: I have some simple redirects setup like:
:  
: :0 f
: * ^TOinfo(_at_)mgroup(_dot_)org
: {
:   :0 c
:   ! jtate(_at_)cgocable(_dot_)net
: }
: 
: When it runs I get this error:
: procmail: Extraneous filter-flag ignored
: procmail: No match on
: 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)info(_at_)mgroup(_dot_)o
: rg"
: 
: What's wrong with that recipe?  I've been using it for 2 years now.
: 
: I understand the No match on --that meant the email coming through didn't
: match that recipe.  Whats the Extraneous filter-flag?

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