[maildropl] Question, and a test
Brought to you by:
mrsam
From: Jonathan N. <jni...@pb...> - 2005-12-12 19:34:10
|
If the filter I have below works, this will wind up in the right place. #courier-maildrop list #if (/^(To|Cc):.*!cou...@li.../) if (/^List-Id: .+ <courier-maildrop.lists.sourceforge.net>/) { to "$HOME/.maildir/".Mailing Lists".Courier-Maildrop" } Does the List-Id field look ok? I'm not really sure what the .+ is supposed to do. I just grabbed it from another filter I had, but I don't know the meaning of it. This concludes the test. Now, for my other question.. Is it to catch other text? Like this one: List-Id: Gentoo Linux mail <gentoo-server.gentoo.org> Would (/^List-Id: .+ <gentoo-server.gentoo.org>/) catch the ID in the < > field as well as the text between the "List-Id:" field and the address? Hrm, I just noticed that maybe it's not working.. #Mail from the gentoo-server list if ( /^List-Id: .+ <gentoo-server.gentoo.org>/ ) { to "$HOME/.maildir/".Mailing Lists".Gentoo-Server" } is what I have, but this was just logged: Date: Mon Dec 12 11:23:39 2005 From: Lance Albertson <ram...@ge...> Subj: Re: [gentoo-server] nagios-plugin hangs while configuring File: /home/vmail/pbp.net/jnichols/.maildir/ (4137) So, it didn't put it into the right folder. The folder structure is like this: drwx------ 6 vmail vmail 256 Dec 12 11:24 .MailingLists.Gentoo-Server/ drwxrwx--- 6 vmail vmail 256 Dec 12 10:24 .MailingLists.Gentoo-User/ The gentoo-server filter did *not* work, but by gentoo-use one *does* and that's what really confuses me. #Mail from the gentoo-users list if ( /^List-Id: .+ <gentoo-user.gentoo.org>/ ) { to "$HOME/.maildir/".Mailing Lists".Gentoo-User" } The two look almost identical, but only one works. Argh! |