jens-maus / yam

:mailbox_with_mail: YAM (short for 'Yet Another Mailer') is a MIME-compliant open-source Internet email client written for Amiga-based computer systems (AmigaOS4, AmigaOS3, MorphOS, AROS). It supports POP3, SMTP, TLSv1/SSLv3 connection security, multiple users, multiple identities, PGPv2/v5 encryption, unlimited hierarchical folders, an ARexx interface, etc...
https://yam.ch
GNU General Public License v2.0
62 stars 18 forks source link

Forwarded messages with a html view, have an unreadable attachment part1.2 #602

Open jens-maus opened 8 years ago

jens-maus commented 8 years ago

Originally by JDuch@fulladsl.be on 2015-07-11 14:22:02 +0200


Summary

I get complaints form my correspondents that they get unreadable attachments from me.

This happens when i forward a message that is in principle viewable as html Hotmail users notably can't open this attachment. I guess because it has no .htm or .html extension Giving it such an extension would also solve 2 related problems

If i want to view it with a browser i have to add an extension to it while saving & then open it from the browser.

Steps to reproduce

  1. forward a message with a html view to a PC using hotmail
  2. verify that a part1.2 appears as an attachment & can't be opened

    Expected results

either the attachment should not be there, or better it should be possible to open it in its original html view

Actual results

as described

Regression

Notes

tboeckel commented 8 years ago

Originally on 2015-07-12 21:15:33 +0200


This very much sounds exactly like the issue described in #600. Please provide a malformed example mail and its non-malformed original (before forwarding it). This will make it easier for me.

jens-maus commented 8 years ago

Originally by JDuch@fulladsl.be on 2015-07-13 09:08:01 +0200


If am preparing examples of concerned messages (are they really needed? can't you reproduce the problem? can i send them to your prvate mail, i must have that )

There may be superficial similarities but here are the differences: ticket 600 It's about an attachment i do attach myself to the message the file has a proper .htm or .html extension ticket 602 it's about part1.2 (html) of a message coming in that can normally be opened (in html capable mailer) as a html page This part is not an attachment in the incoming message , you can only see it using display or save (this part 1.2 does not appear at the bottom of the opened messag as an attachment) In the forwarded part received elsewhere (or when you forward to yourself) you do see this part 1.2 as an attachment at the bottom of the opened message

You can click on it but some browsers won't open it.

=== here is what i observed my wife doing on her PC using chrome & hotmail as mailer the part 1.2 indeed appears as an attachment she is used clicking on attachments to open them: here this does not work when i show here you can download that file : she knows that (many don't) she clicks on the downloaded part 1.2 , it won't open i show her you can open the downloads folder with chrome & click on the part1.2 appearing there (& recognised by the system as an html file) Clicking on the part1.2 file the page opens in chrome === i also from my wife's PC forwarded an incoming html message On my Amiga (SAM 460 OS4.1 FE ) & viewing with YAM there is no part1.2 to be seen as attachment The part can be seen using display or save.

jens-maus commented 8 years ago

Originally by JDuch@fulladsl.be on 2015-07-13 14:04:32 +0200


Example messages sent to your private mail

jens-maus commented 8 years ago

Originally by daniel@onyxsoft.se on 2015-09-23 21:37:13 +0200


I was just about to add a bug about this, but found this bug which exactly describes the problem.

Any e-mail from hotmail or Outlook (or anything that sends HTML mails by default) will cause the e-mail in YAM to display a "Part x.y" attachment which can't be dealt with in any practical way. YAM will either displays the text part of the email, or if there is no text part, it will demangle the HTML part and display it as text. The HTML "part x.y" can be saved or attempted to be displayed. (Please, also remove the space in this autogenerated name to make it easier for scripts.)

When forwarding there are two scenarios:

  1. The sender (like Outlook) attaches both a text version (that YAM displays) and a HTML version (that ends up at Part 1.2 "HTML document". When forwarding this e-mail, the Part 1.2 is attached as a file to the new email and sent.

Problem: No receiver (email client) will understand that this is actually a HTML email. It will see it as a text email with a wierd attachment. However, the information is intact if one cares to save and rename this "part 1.2" file.

Solution: Have YAM realize that this is a HTML e-mail and preserve it as close as possible to the original. Remove the "part x.y" name or at least put ".html" on it. Without a file name, it may be easier for other clients to realize that this is in-line HTML, not an attached file.

  1. The sender (like many web shops etc.) only sends a HTML part. YAM demangles the HTML part and displays the text. There is a Part 1.1 "HTML document" attachment.

Problem: When forwarding this email, YAM will completely fail to realize that this is a HTML email and will forward the demangled HTML text as plain text and no attachmnet of the original HTML document!! This makes it nearly impossible to forward for example a receipt from a hotel reservation or something with YAM.

Solution: Preserve and forward the original email with the HTML, only adding a new text part with the demangled, and user edited text. Or forward with the entire original email as an ".eml" attachment.