sj26 / mailcatcher

Catches mail and serves it through a dream.
http://mailcatcher.me
MIT License
6.3k stars 575 forks source link

Plain text tab doesn't display HTML after I upgraded to Ubuntu 22.04 #507

Closed nd3w closed 2 years ago

nd3w commented 2 years ago

After I upgraded to Ubuntu 22.04 (Xubuntu precisely), mailcatcher doesn't display HTML at the 'Plain Text' tab, it displays its source instead.

sj26 commented 2 years ago

Sorry that's happening for you. I haven't heard of this problem happening for anybody else.

Can you download the message source you're expecting to show a plain text tab and paste it here?

sj26 commented 2 years ago

Please reopen with more details if you are still having this issue.

nd3w commented 2 years ago

Sorry it took a long time to reply your post before. Here's the screenshot:

mailcatcher

I also found out that when mailcatcher page start there are 3 tabs: HTML, Plain and Source, but when I select an email it became 2 tabs: Plain and source.

sj26 commented 2 years ago

Can you download the message source you're expecting to show a plain text tab and paste it here?

nd3w commented 2 years ago

Sorry took sometime to reply your message. This is the email I downloaded (with some text altered): 1.txt

Note: I have to rename the file from 1.eml to 1.txt because Github doesn't allowed .eml file to upload.

sj26 commented 2 years ago

That is a plain text email, so it is being displayed correctly. Notice the header at the top:

Content-Type: text/plain;
 charset=UTF-8

You should send your emails as html if you'd like them displayed as HTML.

I suspect you may have been using an old version of mailcatcher which did not correctly escape html in plain text emails. You may have been seeing HTML incorrectly.