procmail
[Top] [All Lists]

Re: changing case within procmail

2002-01-29 16:12:55
Philip proofread my code,

| They look good, except the above recipe needs its condition negated:
| # Loop if the tail is not empty
| :0
| * ! tail ?? ^^^^
| { SWITCHRC = $_ }

Oops, yes.

| The performance freaks will make that
| # Loop if the tail contains a lowercase letter
| :0 D
| * tail ?? [a-z]
| { SWITCHRC = $_ }

or [A-Z] for conversions from upper to lower.  I'll fix those, wait for
further comments, and repost when everything looks ideal.

Thanks, Philip.
David


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>