procmail
[Top] [All Lists]

RE: Removing multiple spaces from Subject lines was Re: long mailing-list names in Subject line

2001-04-04 07:14:19

Try
        SUBJECT=`formail -zxSubject:`


If that doesn't work (and it should) then try sed, but watch the placement of
the ' ' marks and the ` ` marks

You had
         SUBJECT=`formail -xSubject: | sed s'/  / /'g`

which should have been

        SUBJECT=`formail -xSubject: | sed 's/  / /g'`

(Note the 's not s' and g' not 'g)

However, use * to match the immediately preceeding character as many times as it
occurs

        SUBJECT=`formail -xSubject: | sed s'/^ */ /g'`


TjL

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail