Skip to content

Conversation

@hamza221
Copy link
Contributor

@hamza221 hamza221 commented Aug 16, 2023

ref #8222
fixes #8323

bugs fixed

  • Image alt removed
  • Links rendered as[Text](https://example.com) are now simply => Text
  • Message previews show in HTML format

@hamza221
Copy link
Contributor Author

Checking for textBody first might cause #8323 and

Image

@ChristophWurst
Copy link
Member

Checking for textBody first might cause #8323 and

Image

That's because the sender's client sends a very poor quality text version of the HTML email, right?

@hamza221
Copy link
Contributor Author

Yes here is problematic example from gmail
image

@hamza221
Copy link
Contributor Author

Failing test looks related to #8694 @JohannesGGE

@ChristophWurst
Copy link
Member

Failing test looks related to #8694

I think it's from #8752

@JohannesGGE
Copy link
Contributor

Fixed it in #8759
Rebase schould fix it

"ezyang/htmlpurifier": "4.16.0",
"gravatarphp/gravatar": "dev-master#6b9f6a45477ce48285738d9d0c3f0dbf97abe263",
"html2text/html2text": "^4.3.1",
"hamza221/html2text": "^1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you have to fork your own version? 🙀

Copy link
Contributor Author

@hamza221 hamza221 Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I have a Pr open since march, I think it's about time to give up
mtibben/html2text#116

Copy link
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hamza221 hamza221 enabled auto-merge August 18, 2023 09:29
@hamza221 hamza221 disabled auto-merge August 18, 2023 09:30
Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com>
@hamza221 hamza221 enabled auto-merge August 18, 2023 09:30
@hamza221 hamza221 merged commit b5c7aa5 into main Aug 18, 2023
@hamza221 hamza221 deleted the fix/preview-text branch August 18, 2023 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Message previews show in Html format

5 participants