procmail
[Top] [All Lists]

Re: How to avoid s/\n/ /g when unfolding a header

2004-12-12 12:44:26
On Sun, 12 Dec 2004, David W. Tamkin wrote:

Robert Allerstorfer wrote:

For example, the original Subject header may look like this:

[...]

   :0
    * $ ^subject:[$WS]+\/.+
    {
       av_SUBJECT = `echo "$MATCH" | sed 's/  */ /g'`
    }

[can't remember the right syntax for tr -s right now]


        tr  -s  ' '  ' '

Bye,
 Udi

____________________________________________________________
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

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