GNOME Bugzilla – Bug 776330
Improve preview text generation
Last modified: 2021-07-05 13:24:44 UTC
When Bug 714317 lands, Geary will be doing the following when generating preview text: - For text/html: Remove blockquotes, strip tags out and attempt to format as "readable" plain text - For text/plain: Strip lines starting with common armour prefixes, remove inline PGP armour and headers, remove some common formatting artifacts This could still be improved a bit: - Remove signature delims in plain text parts and everything after it - Unless the preview is short, strip any URLs out out if - Remove the attribution line before quote blocks, if any - Remove inline PGP signatures and other artifacts And in general, see what stuff is in commonly found in emails that makes the previews sub-optimal, and work out if they can/should be removed.
Additionally, displaying unicode character '
Additionally, displaying unicode character 'U+1F5BC' (cf http://www.fileformat.info/info/unicode/char/1f5bc/index.htm) for inlined images could be great and/or if the email contains only attached images. edit: oops, bugzilla does not like unicode character in comments! Do not try to insert one!
(In reply to Gautier Pelloux-Prayer from comment #2) > Additionally, displaying unicode character 'U+1F5BC' (cf > http://www.fileformat.info/info/unicode/char/1f5bc/index.htm) for inlined > images could be great and/or if the email contains only attached images. Oh, this is an interesting idea. For HTML messages we're now displaying the alt text if found for IMG elements, which I think is the right thing to do. For plain text messages however this could be good. I wonder if something similar could be done for Bug 712950 (i.e. for attachments in general), although since there is a pref for not showing previews, maybe not?
*** Bug 778789 has been marked as a duplicate of this bug. ***
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/geary/-/issues/ Thank you for your understanding and your help.