On Sun, Mar 24, 2002 at 05:59:25AM +0100, Ruud H.G. van Tol wrote:
Not tested:
NL="
"
:0
* TO_\/[a-z0-9_-]+(_at_)yahoogroups\(_dot_)com
{
YGROUP="yahoogroups"
:0
* MATCH ?? ^\/[a-z0-9_-]+
{
LOG="yg:"$MATCH$NL
YGROUP=$MATCH
}
# Assuming that the name between the [] in the Subject
# is the same as the first part of the email-address,
# which is right for most yahoogroups, but not all.
#if not Digest, just deliver to $YGROUP
:0:
* $ ! ^Subject: \[$YGROUP] Digest Number [0-9]+$
$YGROUP
#else do the Digest
:0E
{
#1: Holger Wahlen's line to normalize the From and Date lines
:0 fbw
| sed "/^Message:/,/^Subject:/s/^ *//"
#2: deliver a copy to $YGROUP
:0 c:
$YGROUP
#3: append the separate messages in Digest to $YGROUP
:0 w
| formail +1 -ds >> $YGROUP
#4: deliver (is this necessary?)
:0
/dev/null
}
}
I copied this as is and put it in rc.maillists and it did not work. I
changed one thing and it works perfectly:
* TO_\/[a-z0-9_-]+(_at_)yahoogroups\(_dot_)com
Changed to:
* ^To: \/[a-z0-9_-]+(_at_)yahoogroups\(_dot_)com
I don't know what the 'TO_' is supposed to do. Any ideas why it doesn't
work when the other way does?
I'm actually getting to where I can follow this now. Thanks so much for the
detailed comments. This recipe is really great, because I had about 8
recipes to cover my yahoo stuff and now this works for all except one which
does not have the To: line for some reason. So this one thing works for
digests as well as individual mails. I think I'll go back and find the
other person with the query about yahoogroups so that I can make sure he got
the same help I did.
Anita
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail