Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix preview text #8760

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Fix preview text #8760

merged 1 commit into from
Aug 18, 2023

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

@@ -32,7 +32,7 @@
"christophwurst/kitinerary-sys": "^0.2.1",
"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

Signed-off-by: hamza221 <[email protected]>
@hamza221 hamza221 merged commit b5c7aa5 into main Aug 18, 2023
28 checks passed
@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
4 participants