Help Reqd in mutt

2008-09-25 Thread Maruvada, Suryakiran
Hi,

I have the clarification following problems while using the mutt.

1. Its not giving any error  but mail is not sent. How to know the
error. How to de-bug such things. 

eg mutt -a file1 -a file2  -s Sample Subject mail Id 
  
2 . Is there any command to send a list of files as attachments ?
Instead of  prefixing -a to each file ? 

3. I need to send the contents of a file as Message body. How.? 


4. What does mutt command returns.? 
 
5.  I need to move the list of files once the mail is sent ...ie. In the
above command
  eg mutt -a file1 -a file2  -s Sample Subject mail
Id
 Once the mails are sent I need to move file1, file2 to a
different folder.

I am a new member to mutt - community..
Thanks in Advance...  to  All   !!!


Thanks and Regards,
Surya Kiran



Re: Help Reqd in mutt

2008-09-25 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday, September 25 at 12:02 PM, quoth Maruvada, Suryakiran:
 1. Its not giving any error  but mail is not sent. How to know the 
 error. How to de-bug such things.

 eg mutt -a file1 -a file2  -s Sample Subject mail Id

How is mutt configured to send mail? What's the value of $sendmail 
and/or $smtp_url?

 2 . Is there any command to send a list of files as attachments ? 
 Instead of  prefixing -a to each file ?

To quote the man page:

 -a file [...]
Attach a file to your message using MIME. To attach
multiple files, separating filenames and recipient
addresses with -- is mandatory,
e.g. mutt -a img.jpg *.png -- addr1 addr2

 3. I need to send the contents of a file as Message body. How.?

Use the file as input, like so:

 mutt [EMAIL PROTECTED]  message.txt

That's in the mutt man page too.

 4. What does mutt command returns.?

You could find that out by just trying a test message...

 5.  I need to move the list of files once the mail is sent ...ie. In the 
 above command 
  eg mutt -a file1 -a file2  -s Sample Subject mail 
 Id
Once the mails are sent I need to move file1, file2 to a 
 different folder.

Well, mutt won't move them, but you can do it all by yourself:

 mutt -s subject -a file1 file2  body.txt  \
 mv file1 file2 folder/

Is there some reason you don't want to do that?

A lot of this you can find out by just thumbing through the 
documentation.

~Kyle
- -- 
Time goes, you say? Ah no! Time stays, *we* go.
   -- Austin Dobson
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkjb1aoACgkQBkIOoMqOI14RxgCg1H0Mx/m+PU61qJ8KXO5+jUua
K4cAni5CycYf+dSfhG2H9r4XqdZS1fg1
=Jylx
-END PGP SIGNATURE-


Re: Help Reqd in mutt

2008-09-25 Thread Maruvada, Suryakiran


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Kyle Wheeler
Sent: Thursday, September 25, 2008 11:47 PM
To: mutt-users@mutt.org
Subject: Re: Help Reqd in mutt

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday, September 25 at 12:02 PM, quoth Maruvada, Suryakiran:
 1. Its not giving any error  but mail is not sent. How to know the 
 error. How to de-bug such things.

 eg mutt -a file1 -a file2  -s Sample Subject mail Id

How is mutt configured to send mail? What's the value of $sendmail 
and/or $smtp_url?

 2 . Is there any command to send a list of files as attachments ? 
 Instead of  prefixing -a to each file ?

To quote the man page:

 -a file [...]
Attach a file to your message using MIME. To attach
multiple files, separating filenames and recipient
addresses with -- is mandatory,
e.g. mutt -a img.jpg *.png -- addr1 addr2

 3. I need to send the contents of a file as Message body. How.?

Use the file as input, like so:

 mutt [EMAIL PROTECTED]  message.txt

That's in the mutt man page too.

 4. What does mutt command returns.?

You could find that out by just trying a test message...

 5.  I need to move the list of files once the mail is sent ...ie. In
the 
 above command 
  eg mutt -a file1 -a file2  -s Sample Subject mail 
 Id
Once the mails are sent I need to move file1, file2 to a 
 different folder.

Well, mutt won't move them, but you can do it all by yourself:

 mutt -s subject -a file1 file2  body.txt  \
 mv file1 file2 folder/

Is there some reason you don't want to do that?

A lot of this you can find out by just thumbing through the 
documentation.

~Kyle
- -- 
Time goes, you say? Ah no! Time stays, *we* go.
   -- Austin Dobson
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkjb1aoACgkQBkIOoMqOI14RxgCg1H0Mx/m+PU61qJ8KXO5+jUua
K4cAni5CycYf+dSfhG2H9r4XqdZS1fg1
=Jylx
-END PGP SIGNATURE-

*

Thanks for a Quick Response...

For Point 1 . Its not giving any error  but mail is not sent. How to
know the 
 error. How to de-bug such things.. 

How is mutt configured to send mail? What's the value of $sendmail 
and/or $smtp_url

ANSWER : 
echo $sendmail
sendmail: Undefined variable.
stage2qa018 25 /x/web/STAGE2QA018/batch echo $sendmail
sendmail: Undefined variable.
stage2qa018 26 /x/web/STAGE2QA018/batch


For Point 4,and 5 my requirement is on successful sending of the Files
only I need to move the files from the current folder to Sent/ folder.
Hence I need to check the return value .

**


Re: Help Reqd in mutt

2008-09-25 Thread Maruvada, Suryakiran
Hi Can any body help me for the points 1 and 5.

*

Thanks for a Quick Response...

For Point 1 . Its not giving any error  but mail is not sent. How to
know the 
 error. How to de-bug such things.. 

How is mutt configured to send mail? What's the value of $sendmail 
and/or $smtp_url

ANSWER : 
echo $sendmail
sendmail: Undefined variable.
stage2qa018 25 /x/web/STAGE2QA018/batch echo $sendmail
sendmail: Undefined variable.
stage2qa018 26 /x/web/STAGE2QA018/batch


For Point 4,and 5 my requirement is on successful sending of the Files
only I need to move the files from the current folder to Sent/ folder.
Hence I need to check the return value .



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Maruvada, Suryakiran
Sent: Friday, September 26, 2008 12:26 AM
To: Kyle Wheeler; mutt-users@mutt.org
Subject: Re: Help Reqd in mutt



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Kyle Wheeler
Sent: Thursday, September 25, 2008 11:47 PM
To: mutt-users@mutt.org
Subject: Re: Help Reqd in mutt

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday, September 25 at 12:02 PM, quoth Maruvada, Suryakiran:
 1. Its not giving any error  but mail is not sent. How to know the 
 error. How to de-bug such things.

 eg mutt -a file1 -a file2  -s Sample Subject mail Id

How is mutt configured to send mail? What's the value of $sendmail 
and/or $smtp_url?

 2 . Is there any command to send a list of files as attachments ? 
 Instead of  prefixing -a to each file ?

To quote the man page:

 -a file [...]
Attach a file to your message using MIME. To attach
multiple files, separating filenames and recipient
addresses with -- is mandatory,
e.g. mutt -a img.jpg *.png -- addr1 addr2

 3. I need to send the contents of a file as Message body. How.?

Use the file as input, like so:

 mutt [EMAIL PROTECTED]  message.txt

That's in the mutt man page too.

 4. What does mutt command returns.?

You could find that out by just trying a test message...

 5.  I need to move the list of files once the mail is sent ...ie. In
the 
 above command 
  eg mutt -a file1 -a file2  -s Sample Subject mail 
 Id
Once the mails are sent I need to move file1, file2 to a 
 different folder.

Well, mutt won't move them, but you can do it all by yourself:

 mutt -s subject -a file1 file2  body.txt  \
 mv file1 file2 folder/

Is there some reason you don't want to do that?

A lot of this you can find out by just thumbing through the 
documentation.

~Kyle
- -- 
Time goes, you say? Ah no! Time stays, *we* go.
   -- Austin Dobson
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkjb1aoACgkQBkIOoMqOI14RxgCg1H0Mx/m+PU61qJ8KXO5+jUua
K4cAni5CycYf+dSfhG2H9r4XqdZS1fg1
=Jylx
-END PGP SIGNATURE-

*

Thanks for a Quick Response...

For Point 1 . Its not giving any error  but mail is not sent. How to
know the 
 error. How to de-bug such things.. 

How is mutt configured to send mail? What's the value of $sendmail 
and/or $smtp_url

ANSWER : 
echo $sendmail
sendmail: Undefined variable.
stage2qa018 25 /x/web/STAGE2QA018/batch echo $sendmail
sendmail: Undefined variable.
stage2qa018 26 /x/web/STAGE2QA018/batch


For Point 4,and 5 my requirement is on successful sending of the Files
only I need to move the files from the current folder to Sent/ folder.
Hence I need to check the return value .

**