procmail
[Top] [All Lists]

Re: procmail non deterministic?

1999-01-25 07:34:38
Clemens Schmuck <clemens(_at_)DWST22(_dot_)EDVZ(_dot_)SBG(_dot_)AC(_dot_)AT> 
writes:
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

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

although i didn't
change my config file the in last days some messages with SUMMARY in their
Subjet line went into lists/osf-summary others to lists/osf

I would suggest turning on VERBOSE logging around those recipes.  Just
place VERBOSE=on before it and VERBOSE=off after it.

Other changes you might want to make include switching to the newer :0
format, using the ^TO_ token instead of matching against the To:
header, using a nested block to factor out the common condition, and
adding a colon to the condition that matches against the Subject:
header:

        :0
        * ^TO_alpha-osf-managers
        {
            VERBOSE=on

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

            VERBOSE=off

            :0
            lists/osf
        }


Philip Guenther

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