procmail
[Top] [All Lists]

Re: recipe to add names to a whitelist

2001-11-10 17:34:21
At 17:26 2001-11-10 -0500, Don Hammond wrote:

It will "replace sequence of characters with one"

Ok, I didn't catch that it managed a mixed sequence -- a quick read of the man on tr -s (--squeeze-repeats) made it look as if it was _repeats_ of a character.

 |( echo  "$WHITE" |tr -s ' \t' '\n' ) >> $WHITELIST

or, as per my, "just in case there's trailing whitespace" mod:

|( echo -n "$WHITE "|tr -s ' \t' '\n' ) >> $WHITELIST

So there's the way to do it with little fuss and no uglies.

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