Discussion:
[bug-mailutils] How to send multipart/alternative?
Jean Louis
2017-04-12 06:00:58 UTC
Permalink
Hello again,

I was aware that mail can now attach HTML files. and when I attach
file, and write email I do not get what I expect, I get 2 attachments,
one text, one HTML.

Instead of that is there possibility to construct
multipart/alternative message, so that text is shown as preferred?

I 1 <no description> [multipa/alternativ, 7bit, 51K]
I 2 ├─><no description> [text/plain, quoted, utf-8, 18K]
I 3 └─><no description> [text/html, quoted, utf-8, 32K]


Jean
Sergey Poznyakoff
2017-04-13 05:55:38 UTC
Permalink
Hi Jean,
Post by Jean Louis
Instead of that is there possibility to construct
multipart/alternative message, so that text is shown as preferred?
I have pushed the commit 5a4ca2135f5a57d2a7ab18bf7d4881b4caefec35, which
makes this possible. The changes are also documented here:

http://mailutils.org/wiki/Mail:_sending_attachments#Sending_multipart.2Falternative

Best regards,
Sergey
Jean Louis
2017-04-13 06:19:39 UTC
Permalink
Post by Sergey Poznyakoff
Hi Jean,
Post by Jean Louis
Instead of that is there possibility to construct
multipart/alternative message, so that text is shown as preferred?
I have pushed the commit 5a4ca2135f5a57d2a7ab18bf7d4881b4caefec35, which
http://mailutils.org/wiki/Mail:_sending_attachments#Sending_multipart.2Falternative
Wow, that is more than great.

You know that multipart alternative is so necessary when mailing to
people. And now it can work. I have to verify it, as I had some
problems compiling with Perl without thread support, maybe first to
recompile Perl, we will see how it works.

I am pulling all repository now.

Jean
Jean Louis
2017-04-13 06:29:37 UTC
Permalink
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_rwlock_init... yes
checking for gethostbyname... yes
checking for socket... yes
checking for tputs in -lncurses... yes
checking for readline in -lreadline... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for rl_completion_matches... yes
checking for guile-config... /usr/bin/guile-config
checking for guile-snarf... /usr/bin/guile-snarf
checking for guile-tools... /usr/bin/guile-tools
checking for scm_t_off... yes
checking for emacs... emacs
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for perl... /usr/bin/perl
checking that generated files are newer than configure... done
configure: creating ./config.status
<DEV> root [ /sources/gnu/mailutils ]# make
make: *** No targets specified and no makefile found. Stop.
<DEV> root [ /sources/gnu/mailutils ]# c^C
<DEV> root [ /sources/gnu/mailutils ]# ls


What am I doing wrong?

I did bootstrap, configure and make.

Jean
Jean Louis
2017-04-13 06:37:46 UTC
Permalink
After git pull, ./boostrap and
./configure --prefix=/package/mail/mailutils
--with-guile-site-dir=/package/prog/guile-2.0.13/share/guile/site/2.0
--disable-python MU_DEFAULT_SCHEME=maildir --no-create --no-recursion

I do not get Makefile created.

Jean

checking radius/radius.h usability... no
checking radius/radius.h presence... no
checking for radius/radius.h... no
checking security/pam_appl.h usability... no
checking security/pam_appl.h presence... no
checking for security/pam_appl.h... no
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking whether crypt is declared... yes
checking for crypt in -lcrypt... yes
checking for pthread_cancel in -lpthread... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_rwlock_init... yes
checking for gethostbyname... yes
checking for socket... yes
checking for tputs in -lncurses... yes
checking for readline in -lreadline... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for rl_completion_matches... yes
checking for guile-config... /usr/bin/guile-config
checking for guile-snarf... /usr/bin/guile-snarf
checking for guile-tools... /usr/bin/guile-tools
checking for scm_t_off... yes
checking for emacs... emacs
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for perl... /usr/bin/perl
checking that generated files are newer than configure... done
configure: creating ./config.status
<DEV> root [ /sources/gnu/mailutils ]# mae
bash: mae: command not found
<DEV> root [ /sources/gnu/mailutils ]# make
make: *** No targets specified and no makefile found. Stop.
<DEV> root [ /sources/gnu/mailutils ]#
Sergey Poznyakoff
2017-04-13 11:44:09 UTC
Permalink
Post by Jean Louis
After git pull, ./boostrap and
./configure --prefix=/package/mail/mailutils
--with-guile-site-dir=/package/prog/guile-2.0.13/share/guile/site/2.0
--disable-python MU_DEFAULT_SCHEME=maildir --no-create --no-recursion
I do not get Makefile created.
Because you explicitly stated that Makefile should not be created:
--no-create.

Remove this both --no-create and --no-recursion options.

Best regards,
Sergey
Jean Louis
2017-04-13 11:54:10 UTC
Permalink
I can't believe I was using those options, I was just copying from
previous config.log

Thank you, I will do it now.
Post by Sergey Poznyakoff
Post by Jean Louis
After git pull, ./boostrap and
./configure --prefix=/package/mail/mailutils
--with-guile-site-dir=/package/prog/guile-2.0.13/share/guile/site/2.0
--disable-python MU_DEFAULT_SCHEME=maildir --no-create --no-recursion
I do not get Makefile created.
--no-create.
Remove this both --no-create and --no-recursion options.
Best regards,
Sergey
Loading...