Re: [exim] Philisophical question: procmail vs sieve/exim fi…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Sherman
Dátum:  
Címzett: Nigel Metheringham
CC: exim-users
Tárgy: Re: [exim] Philisophical question: procmail vs sieve/exim filters
Nigel Metheringham wrote:
> While in general I'd say stay with what you are comfortable with, I have
> finally put onto the wiki the Exim filtering set I use to split out
> mailing lists.
>
> This is quite nice as its all regexp based - if I join a new list, it
> just picks it up automatically (this would not work as well if you used
> a mail client/IMAP server that needs you to subscribe to folders as then
> the magically appearing new folder might not be noticed. With my
> configuration using dovecot IMAP and evolution the folders just appear
> in the list of folders, and the global vfolder for new mail picks it up
> too).
>
> The filter sample is at
> http://www.exim.org/eximwiki/MailFilteringTips


I've got something similar in my setup, only with a lookup so that I can
specify the folder names. This is important because one batch of
mailing lists I'm on (Slim Devices) doesn't follow the usual "app-forum"
naming pattern, and simply names their lists "discuss", "development",
and "unix". So I'm using:

if ${lookup{${address:$h_List-Id:}}lsearch{$home/.forward.lists}{$value}}
         matches "(.+)" then
    save "$home/Maildir/.Lists.$1/"
endif


I used to do the automatic folder creation you were doing, but turned it
off (by adding the if and the matches) and limited it to only create
folders it found in the .forward.lists lookup, because I found it
annoying to have new folders created for very sparse announce-type lists
like Cryptogram or putty-announce.

- Marc