Hey again Dallman :)
Dallman Ross said the following on 1/23/2005 7:47 PM:
No!!!!!!!!!!!!! We don't need an external program for this.
Ok.. ok .. I was just going by other examples I saw of people using tr
and such to convert things to all-lowercase and stuff... :))
I'll use the FreeBSD list parser that I worked up in the subsequent post
and continue the example:
BTW: the $MYBSDLISTS bit does not work at all.. If I just put the
(list|we|made) in the recipe, it works fine..(I also tried "'s as an
experiment with the same results of "No match" (which is the LOG= I have
set at the end of my .procmailrc..)
I'm not sure why it doesn't work, but then again this is more complex
than I've ever gotten in Procmail (or anything else!) before...
:0
* $ ^List-Post:(.*\<)?\/$MYBSDLISTS@($HOSTCLASS[.])*freebsd[.]org\>
* MATCH ?? ^^\/[^(_at_)]+
{
MYSTRING = $MATCH
:0
* MYSTRING ?? .\/.*
{ _YSTRING = $MATCH }
cAsE = 'aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ'
:0
* MYSTRING ?? ^^\/.
* $ cAsE ?? $MATCH\/.
{ MYSTRING = ${MATCH}${_YSTRING} }
LOG = "$NL$MYSTRING FreeBSD List$NL"
:0
.$MYSTRING/
}
Wow.. :) thanks!
Ruud van Tol has, I believe, a more generic case-switcher on his site.
I can't quite find it right now. But here's the top of his site:
http://www.xs4all.nl/~rvtol/procmail/
Ok.. thanks! (Though damn, those recipes are even more complex-looking..
this will take some time to wrap my head around!)
Btw, I did not proofread the value of $cAsE very carefully. It's
possible I have a typo in there. Don't just copy-and-paste it blind
without checking.
*nod* I'm going over it... thank you (yet) again :)
Best,
--G.
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
~Benjamin Franklin, Historical Review of Pennsylvania, 1759
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail