Author Topic: Missing Mime type - Emails cannot be displayed  (Read 10351 times)

ballyhoo62

  • Newbie
  • *
  • Posts: 3
Missing Mime type - Emails cannot be displayed
« on: June 17, 2015, 01:47:27 pm »
I wrote two Mails directly to Kostya Vasilyev at kmansoft (at) gmail.com but did not receive an answer.

As this is a very important issue I´m dealing with, I try to go this way.

When I receive mails from a very important client with attachment I cannot read them, because they are not displayed correctly.

My investigations showed, that their Mail client is not sending the MIME type, so that AquaMail is displaying it as text.

Quote
Von: "XXXXXXXX" <XXXXXXXXXXXX>
Datum: 20. Mai 2015 21:41:46
Betreff: Re: Subject
An: Me <XXXXXXXXXXXX>
CC: "other" <XXXXXXXXXXXX>

--0__=4EBBF4D8DFF864B18f9e8a93df938690918c4EBBF4D8DFF864B1
Content-type: multipart/alternative;
   Boundary="1__=4EBBF4D8DFF864B18f9e8a93df938690918c4EBBF4D8DFF864B1"


--1__=4EBBF4D8DFF864B18f9e8a93df938690918c4EBBF4D8DFF864B1
Content-Transfer-Encoding: base64
Content-type: text/plain; charset=UTF-8

SGFsbG8gSGVyciBIb3JzdCwKCm5hIGRhcyBnaW5nIGphIGZpeCAtIERhbmtlc2Now7ZuIQpKYSwg
ZGllIDMwIOKCrCBvbiB0b3Agc2luZCBvay4KCkljaCBoYWJlIGRlbiBGbHllciBiZXJlaXRzIGFu
IGRlbiBLdW5kZW4gd2VpdGVyZ2VsZWl0ZXQgdW5kIGhvZmZlIGRpZQpGcmVpZ2FiZSBiaXMgbW9y
Z2VuIDIxLjA1LjE1KSB6dSBlcmhhbHRlbi4KCkJlc3RlIEdyw7zDn2UsCk5pbmEgQnJ1bm5lcgot
IC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0K
SGVhZCBvZiBEYW5vbmUgUHJvZmVzc2lvbmFsClNhbGVzIERldXRzY2hsYW5kCgpEQU5PTkUgR21i
SApSaWNoYXJkLVJlaXR6bmVyLUFsbGVlID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0dXJlbi9GcmVpZ2FiZSB2ZXJibGVpYmUgaWNoCgptaXQgZnJldW5kbGljaGVuIEdyw7zD
n2VuCgpDaHJpc3RpYW4gSG9yc3QKCgpob3JzdCBXZXJidW5nCgpDaHJpc3RpYW4gSG9yc3QKTcO8

Well other Mail clients as Mail on OSX or Thunderbird are displaying the Mails correctly, so why not AquaMail?

Hope you can help solving this issue.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Missing Mime type - Emails cannot be displayed
« Reply #1 on: June 17, 2015, 10:01:53 pm »
Sorry about the mails -- I've searched by your email, and didn't find any messages...

Maybe Gmail put your messages into spam for some reason. I've now created a filter to avoid this, feel free to write again.

Now, text/plain is the default MIME type if none is present.

Also your message snippet above has top level MIME type as "multipart/alternative" which is used to encode:

"this is message text as HTML, and this is same text again as plain text, choose whichever you can display"

and not attachments.

I'd need to see the exact original message source. Easy to obtain in Gmail / web and other web mail systems too, I suppose.

Or "forward as .eml attachment" in your desktop mail app if you use one.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

ballyhoo62

  • Newbie
  • *
  • Posts: 3
Re: Missing Mime type - Emails cannot be displayed
« Reply #2 on: June 18, 2015, 06:40:37 pm »
Thank you for your reply Kostya.

I thought that something like spam-filtering has occurred.

I send the info once again and hope it will arrive.

Thank you for your help in advance

Christian
« Last Edit: June 19, 2015, 01:24:39 pm by ballyhoo62 »

ballyhoo62

  • Newbie
  • *
  • Posts: 3
Re: Missing Mime type - Emails cannot be displayed
« Reply #3 on: June 19, 2015, 09:43:40 am »
Kostya provided a perfect solution and now it works like a charm...

Thanks a lot to this outstanding developer  :)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Missing Mime type - Emails cannot be displayed
« Reply #4 on: June 20, 2015, 11:42:48 pm »
It's Courier IMAP's insistence of there being a MIME-Version header, and reporting whole message as text/plain if the header is missing.

Bad decision if you ask me, but then it's their mail server, not mine...

I had to add a workaround, to detect Courier-IMAP, to detect this case, and to fetch and parse messages into parts myself....
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/