procmail
[Top] [All Lists]

Re: Nested recipes... (sorry if this is sent twice.. )

2005-01-23 18:43:05
On Sun, Jan 23, 2005 at 08:22:47PM -0500, Glenn Sieb wrote:
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...

Well, that's what verbose logging is good for.  What do the relevant
parts say?

Fwiw, I tested it, but not on actual BSD lists, since I don't have any.
I mocked up a list header, and it worked.  Wild guess: maybe you
forgot the leading $ in the condition?


: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!

You're welcome.

-- 
dman

____________________________________________________________
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