delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/04/14:52:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B1FF33857340
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=systematicsw.ab.ca
X-Authority-Analysis: v=2.4 cv=Sfrky9du c=1 sm=1 tr=0 ts=62c336cd
a=oHm12aVswOWz6TMtn9zYKg==:117 a=oHm12aVswOWz6TMtn9zYKg==:17
a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=94nOnFI1EgyDtX4ev68A:9 a=QEXdDO2ut3YA:10
Message-ID: <398ec761-36b8-7497-4ca8-e15b4590df9c@SystematicSw.ab.ca>
Date: Mon, 4 Jul 2022 12:51:56 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Subject: Re: email -attach
To: cygwin AT cygwin DOT com
References: <000001d88675$5940bc60$0bc23520$@gmail.com>
<cc96daef-31c7-12d8-ea84-370575b97855 AT SystematicSw DOT ab DOT ca>
<000601d88d6c$121bdd30$36539790$@gmail.com>
<241339745 DOT 20220702031453 AT yandex DOT ru>
<000001d88fa9$33ca4a90$9b5edfb0$@gmail.com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Organization: Systematic Software
In-Reply-To: <000001d88fa9$33ca4a90$9b5edfb0$@gmail.com>
X-CMAE-Envelope: MS4xfAyYomMidtjf1XsI1bpbLfcgMwT55P0azijIrYfIvzyAIvfIKuSXxl7mKBdJgN42c3PVzPcU3CHCOIP6Gn+7abJQ7jbsmbm8D4SalT7lWwsEuIMSdYQJ
0PZXeBtu4fr/bSaVlR0XcN2AIOddV8tEEOYDcOSuGhmY28z/9/IWOgIfdeYjiq6bWqzxMY8P3NTeKPBA6Zhgt0iiCZX+ehVkpFRaYYrYSJ6ahqfOD99d293z
X-Spam-Status: No, score=-1163.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP,
T_FILL_THIS_FORM_SHORT,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Cc: ricardo DOT couto AT gmail DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 2022-07-04 07:23, ricardo DOT couto AT gmail DOT com wrote:
> Na sexta-feira, 1 de julho de 2022 21:15, Andrey Repin escreveu:
>> Na sexta-feira, 1 de julho de 2022 12:34, Brian Inglis escreveu:
>>> On 2022-06-22 14:19, ricardo DOT couto AT gmail DOT com wrote:
> The package "email" does not works fine with "attach" option when use
> more than one files to attach.

>> $ email --version
>> email - By Dean Jones; Version 3.2.3-git $ email Brian -a
>> /etc/email/email.conf -a ~/.email.conf < \
>>          ~/.email/email.address.book
>> works fine for me.
>> You may need to use --attach not -attach - man and --help differ!

>>> -attach "file1,file2,file3"
>>> That's one file with name "file1,file2,file3".

>>>> No. There are 3 comma separeted files.
>>>> # man email
>>>>   --attach file | -a file
>>>>     Attach a binary file. This option will allow you to attach N
>>>>     files to your email and will be base64 encoded upon
>>>>     delivery. This option is helpful if you need to send any type of
>>>>     file that is not plain ascii text. This option
>>>>     can be used multiple times to add multiple files to attach.>>> EXAMPLES OF USAGE
>>>> # Attach some files with your message
>>>>   email -s "files attached" Dean,Jeff --attach stuff.tar.gz,readme.doc
>>>>     --attach stuff.tar.gz,readme.doc

There are a number of errors in that package documentation mentioning 
features not (or no longer) implemented; the --help is more accurate; 
believe and use what works:

	"This option can be used multiple times to add multiple files to attach."

BTW: it uses getopt_long_only(3) [man-pages-linux package] which allows 
single dash or double dash long option names as well as single dash 
short option characters.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019