Re: multipart/alternative not displaying in Yahoo.com

Jean Louis <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <[email protected]>
Alright thank you, I am pulling, compiling

On Wed, Apr 19, 2017 at 10:56:40AM +0300, Sergey Poznyakoff wrote:
> You can specify charset with the --content-type option:
> 
>   --content-type='text/plain; charset=utf-8'
> 
> > (defun mu-header-unicode ()
> >   (concatenate 'string
> >                " -a "Content-Type: text/plain; charset=utf-8" "
> >                " -a "Content-Disposition: inline" "
> >                " -a "Content-Transfer-Encoding: 8bit" "))
> 
> That's useless -- none of Content-* options can be set from the command
> line.  You will get error messages for all three.

The first one works for sure, the Content-Type: text/plain;
charset=utf-8

> > (defun mu-html-alternative (file)
> >   (if (not (zerop (length file)))
> >     (format nil " --alternative --content-type=text/html --attach=~a" file)
> >     ""))
> 
> To pass charset, I'd propose the following change:
> 
> (defun mu-html-alternative (file cset)
>   (if (not (zerop (length file)))
>     (format nil " --alternative --content-type='text/html; charset=~a' --attach=~a" cset file)
>     ""))
> 
> > (defun mu-body-type (type)
> >    (format nil " --content-type=~a " type))
> 
> The same trivial change applies to this defun as well.  Also, please pull.
> I've just pushed ff1a8a6e, which makes --content-type apply to the
> message read from stdin.

Thank you, I will use this solution now.

Jean
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.