delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/04/15:04:23

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 C6B7838582A2
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=from:to:references:in-reply-to:subject:date:message-id:mime-version
:content-transfer-encoding:content-language:thread-index;
bh=/zKFD1Z4K4+bWHT2nTDoHxwj0NbCYmyXvsUEAb8F34E=;
b=ZXtWpG6A82ph3XWrzk5G5q+OKNb+UtLN3uX9x0v1znb2Q6HB59QDHvFG/BjpEN9Jrl
/ZsYpMtRVmTGAUMrVDbHQN+qk7SJ2bU/hK4McT2wkqT3BYVW5ZzXdU+KbRm+zqdFSxlj
8zvNw2G0GX62KYyN/7eoU9MAnKcLOqDaladKNl4K4VDGDxIlguq8kibfWEA9brOtjZvF
8N1AM7hPGhoqrVgnX9hNpqWUpqhrTc0kAB2Iee6rl8ivw+so94HVhUpIDr1AyDFr57Vx
//hmM9b4kAoFKmP9HdFBAr/fH8CJ0M4FceRKFaPD15ZWFWi/JuaXzBc1D4cuGov8sIUC
6Uow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-transfer-encoding:content-language
:thread-index;
bh=/zKFD1Z4K4+bWHT2nTDoHxwj0NbCYmyXvsUEAb8F34E=;
b=bTw2T1ZynrbRlZ8aOjSOipY78hkaCI111f+IoHGEQmGT7dcY89tv9Uxw1EiUGodO5M
wX1LeNvONnRGwuLFoJlZYRWX7RrdxPHLMhDcuWun7aP5jR6/11WnSOTRyrWalhTj5soJ
rf+4rrsfJAY1GigZBgkFWlogpke6gfNSGQQnp4jVfU1XY5xoPQrEfnF745RPVyYyDtgh
lYSmVibjbOZacnBzxbXqUYLkvwzHOamXDt1+RpcSlodiJoo/s0aptEBwQq0dp+1tKPjJ
14qEf8pxDNK5/fiOPaOxzHtoaX8soJomrg0DOWhosyJAnx8AyldbsK/mSkPi5m7cDqKz
4vDg==
X-Gm-Message-State: AJIora8W1aXGTrj864Z3mMBxmGm3fE50QjlMcDJ0IZIX8VEYtYN3JFE6
JwD2ASumcRc+0cjBW8oILkYSdiraWhM=
X-Google-Smtp-Source: AGRyM1vRnXOSLZATLg1XojMbDkJwsmp1U9jnrAsg60NcseF5aF8kSJNIvQVHkYf2GIl3QxLQ+BGNVg==
X-Received: by 2002:ac5:c5d5:0:b0:36c:617c:ac6f with SMTP id
g21-20020ac5c5d5000000b0036c617cac6fmr17787866vkl.35.1656961424786;
Mon, 04 Jul 2022 12:03:44 -0700 (PDT)
From: <ricardo DOT couto AT gmail DOT com>
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>
<398ec761-36b8-7497-4ca8-e15b4590df9c AT SystematicSw DOT ab DOT ca>
In-Reply-To: <398ec761-36b8-7497-4ca8-e15b4590df9c@SystematicSw.ab.ca>
Subject: RES: email -attach
Date: Mon, 4 Jul 2022 16:03:42 -0300
Message-ID: <000301d88fd8$c8451c70$58cf5550$@gmail.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQLF91PQlhHVBIlSlvbb7WDenweOugJNISEJAku7IUcB4Vtj6gGWNyT0AhwDzvOrQl76oA==
X-Antivirus: Avast (VPS 220704-4, 4/7/2022), Outbound message
X-Antivirus-Status: Clean
X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_20, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP, T_FILL_THIS_FORM_SHORT,
T_SCC_BODY_TEXT_LINE autolearn=ham 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-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>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 264J4N7f026835

I know -attach  file1 -attach file2 -attach file 3 works fine.

I just sugest you implemente a code with -attach "file1, file2, file3".

Thanks a lot.


-----Mensagem original-----
De: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> 
Enviada em: segunda-feira, 4 de julho de 2022 15:52
Para: cygwin AT cygwin DOT com
Cc: ricardo DOT couto AT gmail DOT com
Assunto: Re: email -attach

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.]


-- 
Este email foi escaneado pelo Avast antivĂ­rus.
https://www.avast.com/antivirus


-- 
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