procmail
[Top] [All Lists]

Re: character substitution in $VARIABLE

2003-11-07 02:43:12
On 07 Nov 2003, at 01:19, Louis-David Mitterrand wrote:
In my main mailing list recipe I capture the list name in a FOLDER
variable. Some list names (eg: users.lists.freeswan.org) have dots in
them which does not play well with the courrier imap server, so I'd like
to convert these dots to dashes

Simple, use sed

sed s/\./-/g

(eg: users-lists-freeswan-org) preferably without using sed.

A bit like asking how to unscrew a torx screw and saying you don't want to use a torx driver, isn't it?

--
Try to realize it's all within yourself/No one else can make you change


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