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: Mon, 17 Apr 2017 10:01:03 +0300

On Mon, Apr 17, 2017 at 09:41:26AM +0300, Sergey Poznyakoff wrote:
> Hi Jean,
> 
> > Imagine, sending multipart/alternative with text and html together is
> > displaying in Yahoo as having attachments. So something is certainly
> > wrong.
> 
> > Do you know what?
> 
> No I don't.  The information you sent is way too vague for me to be able
> to tell anything.  I should know at least the following:
> 
> 1. The command line used to send the mail.

mail -E "unset askcc"  -a "Date: `/bin/date +'%a, %d %b %Y %T %z'`"  -a 
"Content-Type: text/plain; charset=utf-8"  -a "Content-Disposition: inline"  -a 
"Content-Transfer-Encoding: 8bit"  -a "From: Jean Louis <address@hidden>"  -E 
'set record=maildir:~/Maildir/address@hidden'  -s 'Hello there'  --alternative 
--content-type=text/html --attach=/home/data1/protected/index.html "Jean Louis 
<address@hidden>"  --content-type=text/plain

You need to replace address@hidden with your Yahoo address, and set From:

Then you may delete the set record, if you don't have such setup.

And you need to feed text from standard input.

That email as formed, is visible in Google without problems. In Yahoo,
it is not, it appears as 2 attachments. Screenshot attached.

In K9 application I see email correctly
(https://f-droid.org/posts/k-9-mail/), also in mutt, I see visible
multipart/alternative just as always.

I do not wish to blaim "mail" until you find out what is wrong. I am
guessing that mail is not constructing multipart/alternative
correctly, but there must be some slight error.

When I use makemime utility from Courier package, and send email as
multipart/alternative, it is just in same order

multipart/alternative
-> text part
-> html part

and html email is nicely visible in Yahoo. Same when I am doing it
with my other Perl stuff.

> 2. Preferably, the output produced by the mail binary when sending the
> message with verbose on (-E 'set verbose').

You may now with the command try yourself.

> 3. Raw content of the message as it arrived at the remote node.

It is here temporary:
https://gnu.support/files/tmp/rawcontent.txt

The one which I constructed with makemime utility from Courier
package, you can see here, and it is showing well in Yahoo, with HTML
being shown as preferred part (I did not handle utf-8 correctly)
https://gnu.support/files/tmp/visible.txt

By the way, I could not enable quoted-printable with mail, even it was
accepted, I remember yesterday that it did not show up.

Once mail is cleaned up and working, this will be rare utility that
constructs multipart/alternative on the command line.

Jean

Attachment: 2017-04-17-09:51:04.jpg
Description: JPEG image


reply via email to

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