No description
Find a file
Michael James Gratton deb0c415d0 Fix HTML, CSS and JS leaking into conversation list preview. Bug 714317
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.
2016-12-19 00:45:41 +11:00
bindings Fix warning/crash when libnotify enabled and server is not present. Bug 768911. 2016-07-18 22:13:32 +10:00
cmake Use "org.gnome.Geary" for the app ID. Bug 766196. 2016-12-08 12:53:52 +01:00
debian Set an explcit minimum version requirmeent for libsoup. 2016-10-04 10:58:17 +11:00
desktop Use Unicode in translatable strings 2016-12-16 02:14:14 +01:00
help Update Polish translation 2016-10-09 09:23:49 +02:00
icons Use GTK 3.14 rtl icon support 2016-08-06 11:40:02 +10:00
po Update Slovak translation 2016-12-16 15:41:24 +00:00
sql Rebuild MessageSearchTable. Database version 25. Bug 772522. 2016-10-22 07:34:30 +11:00
src Fix HTML, CSS and JS leaking into conversation list preview. Bug 714317 2016-12-19 00:45:41 +11:00
test Fix HTML, CSS and JS leaking into conversation list preview. Bug 714317 2016-12-19 00:45:41 +11:00
ui Use Unicode in translatable strings 2016-12-16 02:14:14 +01:00
.gitattributes Fix git archive to not include debian directory 2013-10-03 16:22:04 -07:00
.gitignore Add some git and deb build artefacts to .gitignore 2016-05-13 11:52:24 +10:00
AUTHORS Moving Robert Schroll to AUTHORS file and About box 2013-03-18 18:43:01 -07:00
cmake_uninstall.cmake.in Closes #4982 Closes #4964 Switched to CMake, added an installer/uninstaller 2012-04-23 18:54:26 -07:00
CMakeLists.txt Basic unit test build configuration. 2016-12-13 11:27:15 +11:00
configure Remove non standard option DEBUG and use CMAKE_BUILD_TYPE instead. Bug 772879 2016-10-22 11:04:04 +11:00
configure.in Restore configure.in to fix building with Valencia. 2012-07-20 11:41:08 -07:00
COPYING Added COPYING, AUTHORS, and MAINTAINERS files: #3697. 2011-06-06 15:23:04 -07:00
COPYING.icons Remove now-unused mail-spam-symbolic icon. Bug 737862. 2016-07-14 13:06:52 +10:00
COPYING.snowball Basic search table implementation; fix #6766 2013-05-17 15:32:52 -07:00
geary.doap Update desktop resources to be spec compliant & consistent with the wiki. 2016-09-05 12:14:29 +10:00
INSTALL Add Enchant to build dependencies. 2016-07-29 10:34:33 +10:00
Makefile.in Basic unit test build configuration. 2016-12-13 11:27:15 +11:00
NEWS Fix incorrect date in NEWS 2016-05-17 12:33:01 +10:00
README Transfer Yorba copyrights to Software Freedom Conservancy 2016-05-06 08:33:37 -04:00
THANKS Update to 0.11.0 2016-05-15 19:39:26 +10:00

    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.