procmail
[Top] [All Lists]

Re: procmail non deterministic?

1999-01-26 03:31:30
On Mon, 25 Jan 1999 07:50:24 +0100 (MET), Clemens Schmuck
<clemens(_at_)DWST22(_dot_)EDVZ(_dot_)SBG(_dot_)AC(_dot_)AT> wrote:

  It looks like you're using the old-fashioned version of
the command syntax.  I'll translate into the new version,
and hopefully get the meaning right.
i got the following filter information in my .procmailrc which
should filter summarys of a mailing list to a seperate folder. 

:2 c
^To.*alpha-osf-managers
^Subject.*SUMMARY
lists/osf-summary

:0 c
* ^To.*alpha-osf-managers
* ^Subject.*SUMMARY
lists/osf-summary

  The "c" flag generates a clone/copy.  One copy of your message
is "delivered" to lists/osf-summary.  The 2nd copy continues
execution...

:1
^To.*alpha-osf-managers
lists/osf

:0
* ^To.*alpha-osf-managers
lists/osf

...and gets "delivered" to lists/osf by the 2nd filter.  The
computer did exactly what you told it to do, not what you
wanted it to do <g>.
  What exactly are you trying to do?  If you want the
messages "^To.*alpha-osf-managers" to go

  => only to one of the lists folders...
     get rid of the "c" flag in the first recipe.

  => to one of the lists folders *AND* have a clone/copy
     continue processing...
     keep the original "c" flag and add an "E" flag to
     2nd recipe.  That's an "Else-if" type logic.  The
     2nd recipe will execute only if the 1st recipe
     does *NOT* match.

Walter Dnes <waltdnes(_at_)interlog(_dot_)com> procmail spamfilter
http://www.interlog.com/~waltdnes/spamdunk/spamdunk.htm
Why a fiscal conservative opposes Toronto 2008 OWE-lympics
http://www.interlog.com/~waltdnes/owe-lympics/owe-lympics.htm

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