procmail
[Top] [All Lists]

Re: Removing multiple spaces from Subject lines

2001-04-05 13:23:52
On Thu, 5 Apr 2001, Lars Hecking <lhecking(_at_)nmrc(_dot_)ucc(_dot_)ie> wrote:

Now if only I can get that sed pattern to work ...

 For removing consecutive whitespace? The updated sed pattern I posted
 should pretty much work.

Yipee! Your pattern

s/[     ][      ]*/ /g

works (where there's a space and tab in between the brackets). The 
original pattern of

s/  */ /g

(where there are only spaces in the regexp and the replacement) results in
bizarre behaviour such as w o r d s  h a v i n g  s p a c e s. I use this
(errant) pattern from the shell prompt and it works correctly.

Now to solve the problem of overly long subject lines. (formail returns
the line break.)

Regards, Trevor

British Sign Language is not inarticulate handwaving; it's a living language.
Support the campaign for formal recognition by the British government now!

-- 

<>< Re: deemed!

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