I would suggest using the Mailing List: header instead of the To:
header. This is for a few reasons:
1. If the Yahoo Group is bcc:'ed, the Mailing List: header will still
appear; there won't be anything on To:. Same with cc:. As far as I can
tell, all Yahoo!Groups mailing lists use this header.
2. Sometimes when someone replies all to a mailing list, you can get
something like To: blah(_at_)yahoogroups(_dot_)com, yourname(_at_)domain(_dot_)com(_dot_) Typically,
when someone addresses a message like this, you get two copies -- one
sent by the author and one sent by the mailing list. If someone is
responding to me and happens to also send it to the group, I prefer the
copy that was meant for me to end up in my inbox while the copy destined
to the list ends up in the list folder. Of course, you may not
care ... ;-)
Jen
On Sunday, March 24, 2002, at 09:46 AM, Anita Lewis wrote:
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
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail