<<< Date Index >>>     <<< Thread Index >>>

Re: New line characters in message body.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It took me a while to discover your message because your DKIM 
signature is broken. It may be that the mutt mailing list is breaking 
it, but you may want to take a look anyway.

On Saturday, November  8 at 10:54 AM, quoth Maruvada, Suryakiran:
>When I give echo "first line \n second line \n" the out put is 
>
>first line 
>second line
>
>but when I use the same with mutt i.e
>echo "first line \n second line \n" | mutt -a <<attachment>> <<mail-id>>
>my body of the mail come like :   "first line \n second line \n"

Interesting. Well, normally (on linux, anyway), echo only translates 
"\n" into a newline character if you give it the -e flag. I don't know 
why it behaves differently in the two different ways you're using it, 
but I'd guess it has something to do with your shell's setup.

So, try this:
echo -e "first line \n second line \n" | mutt -a <<attachment>> <<mail-id>>

~Kyle
- -- 
No matter what side of the argument you are on, you always find people 
on your side that you wish were on the other.
                                                      -- Jascha Heifetz
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkki+KYACgkQBkIOoMqOI17+jQCg9gfsrZYQ9F/rcYPO5cyqxj7K
TRkAniNSj1+ev2nCwqghBRZVh00Xc5yg
=SHkR
-----END PGP SIGNATURE-----