[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: maildrop config



On Sun, 2004-11-28 at 21:45 -0500, Nick Smith wrote:
> is there anyone out there using maildrop to filter mailinglist mail to 
> their own folders? would you mind posting your config here so i can see 
> some examples? im a little confused as to how to filter both TO: and/or 
> CC: in the same filter.
> TIA

Here is mine, I sort on the mail list line:

# .Mailfilter - rules for maildrop

MAILDIR="/home/greg/Maildir"

# First, catch all spam and divert to junk folder

if (/^X-Spam-Flag: YES$/)
        to $MAILDIR/.junk-spam

# Mailing lists, in approximate descending order of volume

if (/^List-Id: <debian-user.lists.debian.org>$/)
        to $MAILDIR/.Debian-User

if (/^List-Id: <debian-boot.lists.debian.org>$/)
        to $MAILDIR/.Debian-Boot

if (/^List-Id: <debian-x.lists.debian.org>$/)
        to $MAILDIR/.Debian-X

if (/^List-Id: <debian-kernel.lists.debian.org>$/)
        to $MAILDIR/.Debian-Kernel

if (/^List-Id: SVN changes \(diffs\) <kernel-svn-changes.lists.alioth.debian.org>$/)
        to $MAILDIR/.Debian-Kernel

if (/^List-Id: <debian-bugs-dist.lists.debian.org>$/)
        to $MAILDIR/.Debian-Bugs

if (/^List-Id: <debian-devel.lists.debian.org>$/)
        to $MAILDIR/.Debian-Devel

if (/^To:.*iwethey@iwethey.org*$/)
        to $MAILDIR/.1-IWETHEY

if (/^Return-path: <root@gregfolkert.net>$/)
        to $MAILDIR/.1Knight-Adm

if (/^Return-path: <logcheck@gregfolkert.net>$/)
        to $MAILDIR/.1Knight-Adm

if (/^List-Id: <debian-security.lists.debian.org>$/)
        to $MAILDIR/.Debian-Announce

if (/^List-Id: <debian-announce.lists.debian.org>$/)
        to $MAILDIR/.Debian-Announce

if (/^List-Id: <debian-devel-announce.lists.debian.org>$/)
        to $MAILDIR/.Debian-Announce

if (/^List-Id: <debian-alpha.lists.debian.org>$/)
        to $MAILDIR/.Debian-Alpha

if (/^List-Id: <debian-sparc.lists.debian.org>$/)
        to $MAILDIR/.Debian-Sparc

if (/^List-Id: <debian-apache.lists.debian.org>$/)
        to $MAILDIR/.Debian-Apache

if (/^List-Id: <debian-testing.lists.debian.org>$/)
        to $MAILDIR/.Debian-Testing

if (/^List-Id: An experiment in MUA-based list moderation <linux-elitists.zgp.org>$/)
        to $MAILDIR/.Elitists

if (/^List-Id: A user list for the exim MTA <exim-users.exim.org>$/)
        to $MAILDIR/.Eximlist

if (/^List-Id: General questions regarding Samba <samba.lists.samba.org>$/)
        to $MAILDIR/.Sambalist

if (/^List-Id: The OpenBIOS Mailinglist  <openbios.lists.openbios.org>$/)
        to $MAILDIR/.OpenBios-Org

if (/^List-Id: discussion of various fast-boot projects  <fastboot.lists.osdl.org>$/)
        to $MAILDIR/.Fast-Boot

if (/^List-Id: Discussion list for Grip and DigitalDJ users^$/)
                to $MAILDIR/.Grip-User

if (/^List-Id: IWETHEY Mailing List <iwe.labrador.vtluug.org>$/)
                to $MAILDIR/.IWE

-- 
greg, greg@gregfolkert.net

The technology that is
Stronger, better, faster:  Linux

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


Reply to: