procmail
[Top] [All Lists]

Re: capslock

2002-01-29 11:17:17
At 19:32 2002-01-29 +0200, nimrod cohen did say:
How can I change a recipient name from capslock? to all small

You really should provide some context for this query.

Try 'man tr', which would lead you in short order to this sort of demonstration at the shell:

        echo HELLO | tr [A-Z] [a-z]

Thus, if you had this recipient name in a procmail variable:

        LOWNAME=`echo $UPNAME | tr [A-Z] [a-z]`

You could redirect the output of formail into tr instead. Now, you could use $LOWNAME, perhaps in a formail invocation to rewrite a header - or perhaps you're converting the address for some other purpose. I dunno, since you provided no base framework.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
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>
  • capslock, nimrod cohen
    • Re: capslock, David W. Tamkin
    • Re: capslock, Professional Software Engineering <=