At 08:09 2010-01-12 -0800, I offered:
NEWCC=`(formail -c -xTo: -xCc:|tr -s '\n' ',')`
revise that:
NEWCC=`(formail -c -xTo: -xCc:|tr -s '\n' ','| sed -e 's/,$//')`
This will remove the unwanted comma which will trail the string because of
the newline which would have originally been there.
---
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 homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail