| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <45A520B8.7090802@wi.rr.com> |
| Date: | Wed, 10 Jan 2007 11:22:00 -0600 |
| From: | Joey Officer <jofficer AT wi DOT rr DOT com> |
| User-Agent: | Thunderbird 1.5.0.9 (Windows/20061207) |
| MIME-Version: | 1.0 |
| To: | Dave Korn <dave DOT korn AT artimi DOT com>, cygwin AT cygwin DOT com |
| Subject: | Re: cygwin-email utility clipping attached zips |
| References: | <006701c734d6$d8531e00$a501a8c0 AT CAM DOT ARTIMI DOT COM> |
| In-Reply-To: | <006701c734d6$d8531e00$a501a8c0@CAM.ARTIMI.COM> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
I spoke with Dean as well, the author, and he advised the same. I wrote
a little script that accomplishes what I need, and wanted to share it,
pasted in line below:
email.bash
#!/bin/bash
export file=""
for x in *.pdf; do
export file=$file,$x
done
echo $file
email user AT domain DOT com -s test -a $file < sample.txt
Hope someone finds some use for it.
Dave Korn wrote:
> On 10 January 2007 16:03, Joey Officer wrote:
>
>> I'm using it send attachments, but I would like to be able to send
>> multiple attachments using a wildcard expression. Unfortunately when I
>> specify something like *.pdf , it only grabs the first PDF file within
>> the directory.
>>
>> my sample command line is something along the following:
>>
>> $ email.exe user AT domain DOT com -s testing -a *.pdf < body.txt
>>
>> This grabs files1.pdf but not files2.pdf or any other file.
>>
>> Is anyone using email.exe to send multiple 'unknown' attachments?
>
> You need a '-a' before /each/ of the filenames to attach. Otherwise it'll
> think they're recipient names.
>
>
> cheers,
> DaveK
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |