procmail
[Top] [All Lists]

Re: How to process messages with ^M characters?

2001-10-02 20:05:08

Quick (untested) answer, pipe it into sed:

| sed -e 's/^M//'

where the ^M is actually the control-M which can be
inserted using vi, for example, by using the keyboard
sequence ctrl-v ctrl-m

Could also try 'tr', see "man tr"


Dominic Mitchell wrote:

Hi,

There is a list to which I am subscribe which sends automated mail
with ^M.  How can I get read of these?  I have tried to use recode
to do this:

:0:
* ^(To|Cc|From):.*jobboom\.com
| $dos2unix | formail -A "X-Sorted: Jobs" >> $JOBS

where dos2unix='/usr/bin/recode ibmpc..lat1'


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