[GH-ISSUE #269] Display HTML #230

Closed
opened 2026-02-25 21:34:30 +03:00 by kerem · 10 comments
Owner

Originally created by @bet0x on GitHub (May 9, 2018).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/269

Originally assigned to: @jasonmunro on GitHub.

How i do display HTML before text while reading an email?

Thank you.

Originally created by @bet0x on GitHub (May 9, 2018). Original GitHub issue: https://github.com/cypht-org/cypht/issues/269 Originally assigned to: @jasonmunro on GitHub. How i do display HTML before text while reading an email? Thank you.
kerem 2026-02-25 21:34:30 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jasonmunro commented on GitHub (May 9, 2018):

Hello!

Navigate to Settings -> Site -> General
and un-check the box for: "Prefer text over HTML when reading messages" and you should be good to go!

<!-- gh-comment-id:387794467 --> @jasonmunro commented on GitHub (May 9, 2018): Hello! Navigate to Settings -> Site -> General and un-check the box for: "Prefer text over HTML when reading messages" and you should be good to go!
Author
Owner

@bet0x commented on GitHub (May 10, 2018):

For some reason, remove images on the email are not getting loaded.. i have that unchecked

<!-- gh-comment-id:387925573 --> @bet0x commented on GitHub (May 10, 2018): For some reason, remove images on the email are not getting loaded.. i have that unchecked
Author
Owner

@rosoft2001 commented on GitHub (May 13, 2018):

Same issue

<!-- gh-comment-id:388625462 --> @rosoft2001 commented on GitHub (May 13, 2018): Same issue
Author
Owner

@jasonmunro commented on GitHub (May 14, 2018):

By default Cypht will not load any external resource in an HTML formatted message - this includes images. Doing so is a huge privacy and security risk. The only way we can support this properly IMO is to allow a per-message override to reload the HTML with external resources, and eventually a white-listed list of senders that a user allows this behavior by default for. We cannot allow this for all senders as the risk is just to great.

<!-- gh-comment-id:388882566 --> @jasonmunro commented on GitHub (May 14, 2018): By default Cypht will not load any external resource in an HTML formatted message - this includes images. Doing so is a huge privacy and security risk. The only way we can support this properly IMO is to allow a per-message override to reload the HTML with external resources, and eventually a white-listed list of senders that a user allows this behavior by default for. We cannot allow this for all senders as the risk is just to great.
Author
Owner

@bet0x commented on GitHub (May 15, 2018):

But... this can be optional right?

<!-- gh-comment-id:389124492 --> @bet0x commented on GitHub (May 15, 2018): But... this can be optional right?
Author
Owner

@dumblob commented on GitHub (May 15, 2018):

@bet0x please see https://en.wikipedia.org/wiki/EFAIL (https://efail.de/ ) before you'll decide to reference any external content (which forces the recipient to make an online request with the deciphered URL).

<!-- gh-comment-id:389251890 --> @dumblob commented on GitHub (May 15, 2018): @bet0x please see https://en.wikipedia.org/wiki/EFAIL (https://efail.de/ ) before you'll decide to reference any external content (which forces the recipient to make an online request with the deciphered URL).
Author
Owner

@jasonmunro commented on GitHub (Jun 27, 2018):

@bet0x to clarify, yes, this can be done (some of the behind the scenes work to allow it already exists), however, it would be insecure to add a "always allow external resources" option, so instead I am planning to add a link to the message view page that allows you to reload that specific message with external resources included.

<!-- gh-comment-id:400782053 --> @jasonmunro commented on GitHub (Jun 27, 2018): @bet0x to clarify, yes, this can be done (some of the behind the scenes work to allow it already exists), however, it would be insecure to add a "always allow external resources" option, so instead I am planning to add a link to the message view page that allows you to reload that specific message with external resources included.
Author
Owner

@jasonmunro commented on GitHub (Aug 6, 2018):

@bet0x Just pushed support for this. You need to add an option to your site ini to enable the ability to see external images (this disables the image content security policy header). When viewing an HTML message part with images, there will be an "Allow Images" link in the upper right side of the message content that will reload the message with images enabled.

Here is the new ini setting and explanation:

github.com/jasonmunro/cypht@1b6e0959ca

<!-- gh-comment-id:410870758 --> @jasonmunro commented on GitHub (Aug 6, 2018): @bet0x Just pushed support for this. You need to add an option to your site ini to enable the ability to see external images (this disables the image content security policy header). When viewing an HTML message part with images, there will be an "Allow Images" link in the upper right side of the message content that will reload the message with images enabled. Here is the new ini setting and explanation: https://github.com/jasonmunro/cypht/commit/1b6e0959ca5f6dad074e0f726c0bb54ed757b3d8
Author
Owner

@marclaporte commented on GitHub (Oct 22, 2020):

@jasonmunro wrote "and eventually a white-listed list of senders that a user allows this behavior by default for."

Could this be abused? (email spoofing)

<!-- gh-comment-id:714746125 --> @marclaporte commented on GitHub (Oct 22, 2020): @jasonmunro wrote "and eventually a white-listed list of senders that a user allows this behavior by default for." Could this be abused? (email spoofing)
Author
Owner

@jasonmunro commented on GitHub (Oct 22, 2020):

@marclaporte probably, however you would have to know the user's white list in order to abuse it.

<!-- gh-comment-id:714750577 --> @jasonmunro commented on GitHub (Oct 22, 2020): @marclaporte probably, however you would have to know the user's white list in order to abuse it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#230
No description provided.