Dave Sherohman, 2002-Apr-08 16:14 -0500:
> On Mon, Apr 08, 2002 at 06:35:58PM +0100, Paul Sargent wrote:
> > I'm getting quite a lot of messages dropping through my procmail rules for
> > debian lists. I was wondering if anyone here had a good setup.
> > 
> > The problem seems to be that not all mails from this list get tagged with
> > X-Mailing-List which is what I'm checking on.
> > 
> > This is my current rule:
> > 
> > :0:
> > * ^X-Mailing-List: <[EMAIL PROTECTED]>
> > * ^X-Mailing-List: <debian-\/[EMAIL PROTECTED]
> > $DEBIAN/$MATCH
> 
> I use exim's filtering capability instead of procmail (and I dump all
> my debian lists into a single mailbox), but
> 
> if $h_X-Mailing-List: contains "ebian-" then
>   save $home/Mail/deb
> endif
> 
> seems to work pretty well for me.  I'll have one message slip by
> every couple months or so, but not enough to be a bother.  Maybe you
> just need to modify the regexes you're matching against
> X-Mailing-List to be a little less demanding, although I would expect
> that header to be set identically on every message...

Just to add to the list of choices, I use Maildrop...

<bof>
# Maildrop filters file
# This file belongs at $HOME/.mailfilter

MAILBOX="$HOME/Mail"
MAILDIR="/var/spool/mail"
DEFAULT="$HOME/Mail"

logfile $HOME/.maildroplog

##
## Distribution Lists mail
##
if ( /^(To|Cc):[EMAIL PROTECTED]/ )
{
to $MAILBOX/deb-user
}

if ( /^(To|Cc):[EMAIL PROTECTED]/ )
{
to $MAILBOX/deb-laptop
}

if ( /^(To|Cc):[EMAIL PROTECTED]/ )
{
to $MAILBOX/deb-security
}
<eof>

-- 
Jeff Coppock            Systems Engineer
Diggin' Debian          Admin and User


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to