Re: Question on Attachment sent by Mutt

2010-05-12 Thread Derek Martin
On Wed, May 12, 2010 at 11:23:43PM +0800, Qi Zhang wrote: > The problem been solved by add "-a" to each attached files. Because I > don't have permissions to upgrade mutt on the server. But all your > advice are very useful for me. This too, you can do, as long as you have enough space in your hom

Re: Question on Attachment sent by Mutt

2010-05-12 Thread Qi Zhang
Thanks All! The problem been solved by add "-a" to each attached files. Because I don't have permissions to upgrade mutt on the server. But all your advice are very useful for me. Thank you very much. Zhang Qi On Wed, May 12, 2010 at 10:16 PM, Nathan Stratton Treadway wrote: > Nathan

Re: Question on Attachment sent by Mutt

2010-05-12 Thread Nathan Stratton Treadway
On Wed, May 12, 2010 at 12:35:05 +0800, Qi Zhang wrote: > My Mutt version is 1.4.2, buildin with Centos 5.4 On Wed, May 12, 2010 at 09:22:43 -0400, Ed Blackman wrote: > As others have indicated in their examples, you don't need to prefix > each file with "-a". Use "--" to separate the list of at

Re: Question on Attachment sent by Mutt

2010-05-12 Thread Ed Blackman
On Wed, May 12, 2010 at 03:28:47PM +0800, Qi Zhang wrote: But I still have problems. That is: if I use -a $attachments, then only attach one file, others will act as recipient. I should use -a file1 -a file2 instead of -a file1 file2. Am I right? As others have indicated in their examples, you

Re: Question on Attachment sent by Mutt

2010-05-12 Thread Christian Brabandt
On Wed, May 12, 2010 8:51 am, Derek Martin wrote: > On Wed, May 12, 2010 at 11:50:20AM +0800, Qi Zhang wrote: >> Yes, because the attachments are generated by scripts then put into >> different folders. >> Each receiver has different amount of attachments. > > If I understand correctly, this is tri

Re: Question on Attachment sent by Mutt

2010-05-12 Thread Qi Zhang
Thank you Mr DM But I still have problems. That is: if I use -a $attachments, then only attach one file, others will act as recipient. I should use -a file1 -a file2 instead of -a file1 file2. Am I right? So I made a script can store all file names in one list and begins with "-a", then use: mutt

Re: Question on Attachment sent by Mutt

2010-05-11 Thread Derek Martin
On Wed, May 12, 2010 at 11:50:20AM +0800, Qi Zhang wrote: > Yes, because the attachments are generated by scripts then put into > different folders. > Each receiver has different amount of attachments. If I understand correctly, this is trivial to do with mutt in a script, unless your attachment f

Re: Question on Attachment sent by Mutt

2010-05-11 Thread Qi Zhang
My Mutt version is 1.4.2, buildin with Centos 5.4 If I use -a option, everything goes well. But I should write more bash scripts on how many attaments for each receiver, with the file name and email address. Zhang Qi 2010/5/12 bill lam : > Does your version of mutt support the "-a" option whic

Re: Question on Attachment sent by Mutt

2010-05-11 Thread bill lam
Does your version of mutt support the "-a" option which will generate proper mime-compliant header? Срд, 12 Май 2010, Qi Zhang писал(а): > Yes, because the attachments are generated by scripts then put into > different folders. > Each receiver has different amount of attachments. > redirect mail a

Re: Question on Attachment sent by Mutt

2010-05-11 Thread Qi Zhang
Yes, because the attachments are generated by scripts then put into different folders. Each receiver has different amount of attachments. redirect mail attachments to a single file is more easy than use "-a file1 file2" I plan to use mail -s "Subject" recei...@example.com < att.email (This attachme

Re: Question on Attachment sent by Mutt

2010-05-11 Thread Ed Blackman
On Tue, May 11, 2010 at 12:15:33PM +0200, Jostein Berntsen wrote: On 11.05.10,15:50, Qi Zhang wrote: # code uuencode file_name file_name > att.email cat mail_message >> att.email mutt -s "Subject" recei...@somewhere.net < att.email with this script, I can send email with attachment very easy.

Re: Question on Attachment sent by Mutt

2010-05-11 Thread Jostein Berntsen
On 11.05.10,15:50, Qi Zhang wrote: > Hello, > > I meet with a problem sending emails with attachements by mutt. > simplly like this: > > # code > uuencode file_name file_name > att.email > > cat mail_message >> att.email > > mutt -s "Subject" recei...@somewhere.net < att.email > > > with this

Question on Attachment sent by Mutt

2010-05-11 Thread Qi Zhang
Hello, I meet with a problem sending emails with attachements by mutt. simplly like this: # code uuencode file_name file_name > att.email cat mail_message >> att.email mutt -s "Subject" recei...@somewhere.net < att.email with this script, I can send email with attachment very easy. and gmail