bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] multipart/alternative not displaying in Yahoo.com


From: Jean Louis
Subject: Re: [bug-mailutils] multipart/alternative not displaying in Yahoo.com
Date: Wed, 19 Apr 2017 10:57:56 +0300

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]