Re: New line characters in message body.

2008-11-18 Thread Kyle Wheeler
-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-


New line characters in message body.

2008-11-08 Thread Maruvada, Suryakiran
Hi,

 

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

Can any one suggest me what was wrong. How else I can avoid \n in the
subject line. I want my body in multiple lines

Thanks and Regards,
Surya Kiran




Re: New line characters in message body.

2008-11-08 Thread Paul Hoffman
On Sat, Nov 08, 2008 at 10:54:41AM -0700, Maruvada, Suryakiran wrote:
 When I give echo first line \n second line \n the out put is 
 
 first line 
 second line

Really?  What's your shell?  Are you doing this in a cron job?

 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
 
 Can any one suggest me what was wrong. How else I can avoid \n in the
 subject line. I want my body in multiple lines

echo -e first line\nsecond line
echo $'first line\nsecond line'

(Either or both, depending on your shell.)

 Thanks and Regards,
 Surya Kiran

HTH,

Paul.

-- 
Paul Hoffman [EMAIL PROTECTED]