No description
When generating the preview, only the first 128 bytes of the first MIME part is fetched and used. If this part is text/html with a significant amount of embedded CSS, then there is a good chance the string passed to Geary.HTML::remove_html_tags() will be invalid, or be missing closing elements. Since that function uses regexes that require balanced tags to remove script and style blocks, then it was very possible that in these cases this method will miss removing these blocks. To solve this, remove_html_tags() is removed and its call sites are replaced by calls to Geary.HTML::html_to_text(), which has been tidyied up to produce more human-readable result. Add unit tests to cover new html_to_text functionality and its call sites. * src/engine/util/util-html.vala: Remove remove_html_tags(). Update html_to_text() to not just insert line breaks, but also insert spaces and alt text, and ignore tags like HEAD, SCRIPT and STYLE, as appropriate. Add an optional param to also allow skipping BLOCKQUOTE elements, which we don't want in the preview. |
||
|---|---|---|
| bindings | ||
| cmake | ||
| debian | ||
| desktop | ||
| help | ||
| icons | ||
| po | ||
| sql | ||
| src | ||
| test | ||
| ui | ||
| .gitattributes | ||
| .gitignore | ||
| AUTHORS | ||
| cmake_uninstall.cmake.in | ||
| CMakeLists.txt | ||
| configure | ||
| configure.in | ||
| COPYING | ||
| COPYING.icons | ||
| COPYING.snowball | ||
| geary.doap | ||
| INSTALL | ||
| Makefile.in | ||
| NEWS | ||
| README | ||
| THANKS | ||
Geary Email Client
------------------
* Introduction
Geary is an IMAP email client built for the GNOME desktop environment. It
allows you to read and send email with a simple, modern interface.
Visit https://wiki.gnome.org/Apps/Geary to read about the current state of
Geary's development and to make sure you're running the latest version.
* Installation & Licensing
Please consult the INSTALL and COPYING files for more information.
* Quick Start
The first time Geary is launched, it will prompt for your account
information. Note that your email password is stored securely in the
Gnome Keyring.
Geary will then begin downloading messages in your inbox and other
folders.
* Contacting Geary Developers
Geary wiki: https://wiki.gnome.org/Apps/Geary
We also encourage you to join the Geary mailing list. See
https://mail.gnome.org/mailman/listinfo/geary-list for details.
Copyright 2016 Software Freedom Conservancy Inc.