procmail
[Top] [All Lists]

Re: newline

2002-06-04 00:59:33
On Fri, May 31, 2002 at 04:21:05PM +0300, Udi Mottelo wrote:
On Thu, 30 May 2002, alois blasbichler wrote:

i use postfix with procmail
I have a PHP-Mask for the users to send mails and this mails i load with
procmail in a file.
All this works fine.
In the mail body the user can write more lines.
Ifthe user use <enter> to get a new line. In the file i see a: ^M
In the mailbox the mail is ok (without this ^M)

How can i eliminate this ^M
i tried with gawk, but it does not work

      sed 's/^M$//'       #the "^M" is:  Ctrl+V Ctrl+M

      or:

      tr -d '\015'

Bye,
 Udi


   It is actually not difficult in awk either:

   gawk '{sub(/\r$/,"");print}'

   works for me. (You can use ^M, as above, instead
   of \r if that appeals.)

Regards,
Erik


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