Re: [kmb.10gb5m@exim-users.org: Re: [Exim] OT - Why you shou…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Nigel Metheringham
Ημερομηνία:  
Προς: David Woodhouse
Υ/ο: Larry Rosenman, exim-users, kmb
Αντικείμενο: Re: [kmb.10gb5m@exim-users.org: Re: [Exim] OT - Why you should not put Exchange on the Internet.]
On Fri, 2004-01-23 at 17:15, David Woodhouse wrote:
> On Fri, 2004-01-23 at 11:01 -0600, Larry Rosenman wrote:
> > Yes, can we PLEASE get it fixed, as it's quite annoying to find mail
> > from this list in my INBOX instead of the box for the list.
>
> It's already fixed; it was discussed on the list this morning.
>
> There must be something wrong with your filters if it landed in your
> inbox -- my filter worked fine...
>
> if "$sender_address" is "exim-users-admin@???" then
>         save Maildir/.lists.exim/
>         finish
> endif


Thats all very well, but I do a more generic thing:-
        # split out the various list forms
        # Mailman & other lists using list-id
        if "${if def:header_list-id:{true}}" is true then
            if $header_list-id: matches "<([a-z0-9-]+)[.@]" then
                save Maildir/.list.${lc:$1}/
            else
                save Maildir/.list.unknown/
            endif
            finish
        # Listar and mailman like
        elif "${if def:header_x-list-id:{true}}" is true then
            if $header_x-list-id: matches "<([a-z0-9-]+)\\\\." then
                save Maildir/.list.${lc:$1}/
            else
                save Maildir/.list.unknown/
            endif
            finish
        # Ezmlm
        elif "${if def:header_mailing-list:{true}}" is true then
            if $header_mailing-list: matches "([a-z0-9-]+)@" then
                save Maildir/.list.${lc:$1}/
            else
                save Maildir/.list.unknown/
            endif
            finish
        fi


Magical pick up of new lists is very nice :-)

    Nigel.


--
[ Nigel Metheringham           Nigel.Metheringham@??? ]
[ - Comments in this message are my own and not ITO opinion/policy - ]