Re: How to send mails with attachments for each file in a directory ?

2008-01-31 Thread Magnus Therning
Jabka Atu wrote: Good day,.. since i can't send find a fast way to send many pictures to Gmail / ISP mail (Quata limit for single mail). I thought it will be fun to do it in one line : find *.jpg -exec uuencode '{}' '{}' | mail [EMAIL PROTECTED] \; I think you're using

Re: How to send mails with attachments for each file in a directory ?

2008-01-30 Thread Dan H.
On Tue, Jan 29, 2008 at 03:48:27PM -0900, Ken Irving wrote: I find find very useful, and find's -exec command as well, but someone always chimes in with how it's wrong to use it since it causes find to create umpteen shell processes, one for each hit, and you really should be piping find into

Re: How to send mails with attachments for each file in a directory ?

2008-01-30 Thread Martin Marcher
On 2008-01-30 09:26:12, Dan H. wrote: My favorite way is to use find's -printf directive to construct the complete commands and pipe the result to a shell. Has the advantage that you first hack away at your complete find commend and give it a dry run, and if you're happy with what it spits out

Re: How to send mails with attachments for each file in a directory ?

2008-01-30 Thread Daniel Burrows
On Tue, Jan 29, 2008 at 07:01:47PM +0200, Jabka Atu [EMAIL PROTECTED] was heard to say: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Good day,.. since i can't send find a fast way to send many pictures to Gmail / ISP mail (Quata limit for single mail). I thought it will be fun to

Re: How to send mails with attachments for each file in a directory ?

2008-01-29 Thread Douglas A. Tutty
On Tue, Jan 29, 2008 at 07:01:47PM +0200, Jabka Atu wrote: find *.jpg -exec uuencode '{}' '{}' | mail [EMAIL PROTECTED] \; but this won't work since : find: missing argument to `-exec' No message, no subject; hope that's ok Can't send mail: sendmail process failed with error

Re: How to send mails with attachments for each file in a directory ?

2008-01-29 Thread Jabka Atu
I will check this abit later for now i used : ~/cat sender #!/bin/bash uuencode $1 $1 | mail -s Re:pictures [EMAIL PROTECTED] and on console : ~/ find *.jpg -exec sender '{}' \; it is an ugly but abit working solutione but a user can't see it on gmail (only with client he can see the

Re: How to send mails with attachments for each file in a directory ?

2008-01-29 Thread Tzafrir Cohen
On Tue, Jan 29, 2008 at 07:01:47PM +0200, Jabka Atu wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Good day,.. since i can't send find a fast way to send many pictures to Gmail / ISP mail (Quata limit for single mail). There are a number of command-line mailiers that support

How to send mails with attachments for each file in a directory ?

2008-01-29 Thread Jabka Atu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Good day,.. since i can't send find a fast way to send many pictures to Gmail / ISP mail (Quata limit for single mail). I thought it will be fun to do it in one line : find *.jpg -exec uuencode '{}' '{}' | mail [EMAIL PROTECTED] \; but

Re: How to send mails with attachments for each file in a directory ?

2008-01-29 Thread Andrew Reid
On Tuesday 29 January 2008 12:01, Jabka Atu wrote: Good day,.. since i can't send find a fast way to send many pictures to Gmail / ISP mail (Quata limit for single mail). I thought it will be fun to do it in one line : find *.jpg -exec uuencode '{}' '{}' | mail [EMAIL PROTECTED] \;

Re: How to send mails with attachments for each file in a directory ?

2008-01-29 Thread Ken Irving
On Tue, Jan 29, 2008 at 06:27:44PM -0500, Andrew Reid wrote: On Tuesday 29 January 2008 12:01, Jabka Atu wrote: Good day,.. since i can't send find a fast way to send many pictures to Gmail / ISP mail (Quata limit for single mail). I thought it will be fun to do it in one line :