I need a rule to filter debian-user into a seperate maildir. I know
there's the header:
X-Maling-List: <debian-user...
so I tried:
* ^X-Mailing-List: <debian-user.*
/home/bijan/Maildir/.lists.debian/
and several variations, but none of them worked.
Thank in advance,
Bijan
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
09-24-2008, 04:17 AM
Ron Johnson
procmail rule to filter debian-user
On 09/23/08 22:58, Bijan Soleymani wrote:
Hey everyone,
I need a rule to filter debian-user into a seperate maildir. I know
there's the header:
X-Maling-List: <debian-user...
so I tried:
* ^X-Mailing-List: <debian-user.*
/home/bijan/Maildir/.lists.debian/
and several variations, but none of them worked.
If you aren't wedded to procmail for some other reason, then maybe
maildrop would be more to your liking, since it has a much simpler
syntax. Here's my maildrop rule for filtering d-u mails:
if ( /^X-Mailing-List:.*<debian-user@lists.debian.org>*/ )
{
to "Maildir/.Lists.Debian.User.2008q3"
}
--
Ron Johnson, Jr.
Jefferson LA USA
"Do not bite at the bait of pleasure till you know there is no
hook beneath it." -- Thomas Jefferson
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Hey everyone,
>
> I need a rule to filter debian-user into a seperate maildir. I know
> there's the header:
> X-Maling-List: <debian-user...
>
> so I tried:
> * ^X-Mailing-List: <debian-user.*
> /home/bijan/Maildir/.lists.debian/
>
> and several variations, but none of them worked.
>
> Thank in advance,
> Bijan
>
>
According to man procmailrc, if a "mailbox" name ends with a /, it is
taken as a maildir folder. Is that what you had in mind?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
09-24-2008, 05:24 AM
Jaime Tarrant
procmail rule to filter debian-user
On Tue, 23 Sep 2008, Bijan Soleymani wrote:
> Hey everyone,
>
> I need a rule to filter debian-user into a seperate maildir. I know
> there's the header:
> X-Maling-List: <debian-user...
>
> so I tried:
> * ^X-Mailing-List: <debian-user.*
> /home/bijan/Maildir/.lists.debian/
>
> and several variations, but none of them worked.
>
> Thank in advance,
> Bijan
>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
09-24-2008, 07:05 AM
Bob Cox
procmail rule to filter debian-user
On Tue, Sep 23, 2008 at 23:58:12 -0400, Bijan Soleymani (bijan@psq.com) wrote:
> Hey everyone,
>
> I need a rule to filter debian-user into a seperate maildir. I know
> there's the header:
> X-Maling-List: <debian-user...
>
> so I tried:
> * ^X-Mailing-List: <debian-user.*
> /home/bijan/Maildir/.lists.debian/
You may have done that already, but just in case you had not. It can help when writing the recipes.
So, with that in mind, the following should work equally as well:
:0
*^List-Id:*lists.debian.org
.lists.debian/
The lack of the second colon at the start of the recipe is important when using Maildir format - it prevents the locking feature of procmail which is generally used for mbox format. Also, as others have pointed, don't miss the trailing slash which tells procmail to create the mailbox in Maildir format.
But, as recipes go these are really basic. Procmail is complex so it's worth spending some time reading up on it.
HTH,
Jamie
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
09-24-2008, 07:51 PM
Andrei Popescu
procmail rule to filter debian-user
On Wed, 24 Sep 2008 08:05:02 +0100 Bob Cox wrote:
> How about:
>
> :0 :
> * ^TO_debian-user@lists.debian.org
> /home/bijan/Maildir/.lists.debian/
>
> Something very similar works for me (but not using maildir format,
> hence no trailing slash).
Isn't this going to miss all those posts that are Cc'd to debian-user?
(I have no idea of procmail rules, I prefer maildrop)
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
09-25-2008, 03:44 AM
"s. keeling"
procmail rule to filter debian-user
Ron Johnson <ron.l.johnson@cox.net>:
>
> If you aren't wedded to procmail for some other reason, then maybe
> maildrop would be more to your liking, since it has a much simpler
> syntax. Here's my maildrop rule for filtering d-u mails:
>
> if ( /^X-Mailing-List:.*<debian-user@lists.debian.org>*/ )
> {
> to "Maildir/.Lists.Debian.User.2008q3"
> }
For completeness, that's not much less complex (aka line noise) than
my procmail rule, and mine splits each debian list into its own mbox,
and handles newsfroup backscatter:
# ------------------------------------
# debian-${MATCH}
#
# The MATCH operator / matches whatever the regexp that follows
# it matches.
#
:0
* 1^0 ^X-Mailing-List:.*debian-/[a-z.-]*
* 1^0 ^Newsgroups:.*debian./[a-z.-]*
* 1^0 ^Cc: debian-user@lists.debian.org
{
LOG="debian-${MATCH} - "
:0:
00.debian
}
I've been recommending noobs try maildrop first for years. Procmail
may be a howitzer where a shiv is needed. :-)
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
09-25-2008, 03:51 AM
"s. keeling"
procmail rule to filter debian-user
Bijan Soleymani <bijan@psq.com>:
>
> I need a rule to filter debian-user into a seperate maildir. I know
> there's the header:
> X-Maling-List: <debian-user...
>
> so I tried:
> * ^X-Mailing-List: <debian-user.*
> /home/bijan/Maildir/.lists.debian/
>
> and several variations, but none of them worked.
Describe your understanding of "worked". Have you set VERBOSE=yes in
your .procmailrc? What's the log file say happened?