On Thu, 2010-03-04 at 15:41 +0000, Stephen Jolly wrote:

> if $h_Sender: matches "owner-([a-zA-Z-.]*)@" and not delivered
> then
>  save $home/mail/lists/$1
> endif
> 
> Exim filter files are great.

I similarly filter all mailing lists into different folders using a
meta-mailing-list filter; mine's a little more complicated:

> if      not delivered
> and     (       $h_List-Id: matches "<([^>]+)>"                 # Mailman
>         or      $h_X-Mailing-List: matches "([...@]+)@"           # Majordomo 
> -- handles Kernel.org
>         or      $sender_address: matches "owner-([...@]+)@"       # Listserv
>         or      $sender_address: matches "(.*)-request@"        # (Old 
> majordomo listservs?)
>         )
> then    save mail/lists/$1
>         if      "$1:$tod_log" matches "([^:]+):(\d+-\d+)"
>         then    save mail/archive/lists/$1/$2                 # Save a second 
> copy in 
>                                                               # 
> mail/archive/lists/<list-name>/<year>-<month>
>         endif
> endif

This means that when I get added to new mailing-lists, the new emails
get filed away automatically rather than cluttering up my in-tray..

(Sadly, we're being migrated to a central Exchange service which isn't
nearly so powerful.  So far I've resisted by having a mail spool that's
bigger than Exchange can handle...)

Cheers,
David
-- 
David McBride <[email protected]>
Department of Computing, Imperial College, London

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to