After much study of this recipe, pointed out to me a couple of weeks ago,
I've moved on to try and make use of it. I know I've messed something up,
but what I'm not exactly sure...
I took this:
# Generic Listname identification
# 20030517/1134 SBS Updated to handle quoted Sender text
:0
* 9876543210^0 ^(Sender:[ ]*owner-|X-BeenThere:[ ]*|Delivered-To:\
[ ]*mailing list )\/[-A-Za-z0-9_+]+
* 9876543210^0 ^(List-Post:[ ]*(<mailto:)?|List-Owner:\
[ ]*(<mailto:)?owner-)\/[-A-Z0-9_+]+
* 9876543210^0 ^Sender:.* List"? <(mailto:)?\/[-A-Z0-9_+]+
{
LISTNAME=$MATCH
}
:0E
* ^Sender:[ ]*\/[-A-Z0-9_+]+-owner
{
LISTNAME=`echo $MATCH | sed -e s/-owner//i`
}
# If the listname isn't blank, emit it to the logfile.
# (at this stage, you could just as easily dump the message to a
# $LISTNAME-ed file
:0
* ! LISTNAME ?? ^^^^
{
LOG="List: $LISTNAME$NL"
}
and changed it to this:
:0
* 9876543210^0 ^(Sender:[ ]*owner-|X-BeenThere:[
]*|Delivered-To:\
[ ]*mailing list )\/[-A-Za-z0-9_+]+
* 9876543210^0 ^(List-Post:[ ]*(<mailto:)?|List-Owner:\
[ ]*(<mailto:)?owner-)\/[-A-Z0-9_+]+
* 9876543210^0 ^Sender:.* List"? <(mailto:)?\/[-A-Z0-9_+]+
I added this -> * ^X-Mailing-List: \/[^(_at_)]+
{
LISTNAME=$MATCH
I changed the :0E
nesting here * ^Sender:[ ]*\/[-A-Z0-9_+]+-owner
to get the LOG {
entries I LISTNAME=`echo $MATCH | sed -e s/-owner//i`
wanted }
# If the listname isn't blank, emit it to the logfile.
# (at this stage, you could just as easily dump the message to a
# $LISTNAME-ed file
:0:
* ! LISTNAME ?? ^^^^
{
LOG="
--->Listname-recipe : ($LISTNAME)
"
$LISTNAME
}
}
What I'm trying to replace with a generic recipe is this (which follows
the above in my .procmailrc):
:0
* ^X-Mailing-List: \/[^(_at_)]+
{
LISTNAME2=$MATCH
LOG="
---> Listname-recipe2 : ($LISTNAME2)
"
:0:
* ! LISTNAME2 ?? ^^^^
$LISTNAME2
}
My log file looks like this:
procmail: Extraneous locallockfile ignored
procmail: Skipped "$LISTNAME"
---> Listname-recipe2 : ( linux-kernel)
From
linux-kernel-owner+campbell=40carrera-sys(_dot_)com(_at_)vger(_dot_)kernel(_dot_)org
Thu Nov 6 13:15:39 2003
Subject: Re: 2.9test9-mm1 and DAO ATAPI cd-burning corrupt
Folder: linux-kernel 3897
I'm not sure where the extraneous locallockfile is, or why is skipped my
$LISTNAME in the first recipe, and fell through to the second recipe.
thanks,
-chuck
--
ACCEL Services, Inc.| Specialists in Gravity, Magnetics | 1(713)993-0671 ph.
2401 Fountain View | and Integrated Interpretation | 1(713)993-0608 fax
Suite 320 | |
Houston, TX, 77057 | Chuck Campbell |
campbell(_at_)accelinc(_dot_)com
| President & Senior Geoscientist |
"Integration means more than having all the maps at the same scale!"
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail