email -attach
Brian Inglis
Brian.Inglis@SystematicSw.ab.ca
Mon Jul 4 18:51:56 GMT 2022
On 2022年07月04日 07:23, ricardo.couto@gmail.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.couto@gmail.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.]
More information about the Cygwin
mailing list