Commit graph

2443 commits

Author SHA1 Message Date
Marek Černocký
8557a10afd Updated Czech translation 2016-09-10 09:09:48 +02:00
Oskar Viljasaar
46e176451f Do not crash if ~/.local/share/geary does not exist. Bug 741883 2016-09-10 13:41:05 +10:00
Piotr Drąg
a74925df69 Updated Polish translation 2016-09-08 04:20:26 +02:00
Flo H
6fd4e2a8a8 Updated German translation 2016-09-06 21:08:55 +00:00
Jiri Grönroos
58ccec016b Updated Finnish translation 2016-09-05 17:38:00 +00:00
Piotr Drąg
f032af8f7a Updated Polish translation 2016-09-05 16:45:06 +02:00
Piotr Drąg
bb29b4c2ca Updated Polish translation 2016-09-05 16:42:08 +02:00
Piotr Drąg
6de907b9e6 Put translator comment in the desktop file in one line
Tools pick up only one line above the string.

Also fixes a typo in "Tranlators".
2016-09-05 16:32:08 +02:00
Balázs Meskó
df141322b3 Updated Hungarian translation 2016-09-05 07:37:40 +00:00
Michael James Gratton
facf601e94 Fix name of translated appdata file. Bug 713937.
* cmake/FindIntltool.cmake: Fix brown-paper-bag CMake typo.
2016-09-05 12:23:34 +10:00
Michael James Gratton
96ea69df19 Make appdata file translatable. Bug 713937.
* desktop/CMakeLists.txt: Translate the appdata file rather than just
  installing it directly.

* desktop/geary.appdata.xml.in: Rename from 'geary.appdata.xml', make
  name, summary and description translatable.

* cmake/FindIntltool.cmake: Add a CMake command for the appdata file.

* po/POTFILES.in: Include geary.appdata.xml.in.
2016-09-05 12:14:34 +10:00
Michael James Gratton
6f988198f6 Update desktop resources to be spec compliant & consistent with the wiki. 2016-09-05 12:14:29 +10:00
Michael James Gratton
048fa15c7b Fix high-bit char corruption when sent as ISO-8859-1.
Commit 0c31607 made it possible for Geary to send messages as both
US-ASCII and ISO-8859-1, as part of the workaround for Bug 769137.

This introduced a bug however where if a message contained 8-bit
ISO-8859-1 chars but didn't include ant UTF-8 chars, the UTF-8 message
body would be encoded as if it was ISO-8859-1, and hence the high-bit
chars would be corrupted.

The solution is to re-encode the body in whatever charset it will be sent
as, before sending it.

* src/engine/rfc822/rfc822-message.vala (Message): Break out the common
  parts of generating a message body part from
  Message::from_composed_email into the new ::body_data_to_part method.
  Ensure that the body data is conveted into US-ASCII or ISO-8859-1
  before attempting to guess what transfer encoding should be used or
  setting it as the content of the new body part.

* src/engine/rfc822/rfc822-utils.vala (Geary.RFC822.Utils): Replace
  get_best() with get_best_charset(), since we can't guess both charset
  and transfer encoding at the same time any more. Ensure we reset the
  source stream after guessing (and in get_best_encoding) so that
  subsequent uses don't simply get an EOS.
2016-09-02 14:21:23 +10:00
Мирослав Николић
da2d2c9840 Updated Serbian translation 2016-08-25 08:22:54 +02:00
Marek Černocký
d11b8cca1e Updated Czech translation 2016-08-23 13:53:46 +02:00
Jiri Grönroos
e7ef2bf48d Updated Finnish translation 2016-08-21 09:59:53 +00:00
Jiri Grönroos
a1a910e77c Updated Finnish translation
(cherry picked from commit 5d5e5af7af5365eaa91faa5f2497be1ad82614bf)
2016-08-20 17:29:44 +00:00
Piotr Drąg
4c28117242 Updated Polish translation 2016-08-19 18:59:30 +02:00
Marek Černocký
223e1fafee Updated Czech translation 2016-08-19 14:51:13 +02:00
Michael James Gratton
45773c8f88 Allow the Compose desktop action to be used on non-Unity desktops.
Patch courtesy Pacho Ramos.

Fixes Bug 751558.
2016-08-17 23:00:53 +10:00
Aurimas Černius
6d6474ab2f Updated Lithuanian translation 2016-08-15 13:18:10 +03:00
Michael James Gratton
2015760d09 Fix race destroying upgrade dialog when upgrade multiple accounts.
If one account DB upgrade completes before the next one starts, the
upgrade will be destroyed and become invalid, leading to errors when the
next does start.

This fix keeps the dialog around permanently, which is a waste of RAM,
but that's better than crashing.

* src/client/dialogs/upgrade-dialog.vala (Object): Hide, don't destroy
  the upgrade dialog when it is hidden.
2016-08-15 10:08:29 +10:00
Michael James Gratton
451ca5d739 Remove workaround for Bug 742621.
* src/client/composer/composer-widget.vala (ComposerWidget): Move code
  from connect_to_draft_manager and disconnect_from_draft_manager into
  their callers. Tidy up the source a bit.
2016-08-15 10:08:29 +10:00
Tiago Santos
a4c72d71b2 Updated Portuguese translation 2016-08-14 21:39:18 +00:00
Michael James Gratton
8f756cdbbd Fix 0px elements being rendered as 1px boxes. 2016-08-14 13:38:55 +10:00
Michael James Gratton
4a2ba1446d Fix cmake warning CMP0040 in cmake/FindDesktopFileValidate.cmake.
* desktop/CMakeLists.txt: Fix name of Elementary Contractor desktop file
  and disable Desktop file validation for it since it doesn't actually
  validate.

* cmake/FindDesktopFileValidate.cmake, cmake/FindIntltool.cmake: Don't
  assume XDG Desktop files are named ".desktop" - they aren't for
  Elementary's Contractor. Require callers to pass the full name in, fix
  call sites.
2016-08-11 18:45:24 +10:00
Michael James Gratton
979f3b9029 Ensure reasonable values are written/used for window position GSettings.
Use Gdk.Screen to determne what is a reasonable size. Follow the
reccomendations at https://wiki.gnome.org/HowDoI/SaveWindowState to save
main window maximised state, width and height.

This also fixes Geary forgetting its maximised setting when the window is
closed, and ensures the window is centered on the screen when mapped.

Bug 730356.
2016-08-11 18:04:29 +10:00
Yosef Or Boczko
cd65575c53 Updated Hebrew translation 2016-08-10 00:06:10 +03:00
Anders Jonsson
cacd9db835 Updated Swedish translation 2016-08-09 18:09:35 +00:00
Michael James Gratton
36a35f985f Workaround occasional crash when removing messages with nested tables.
WebKitGTK+ will occasionally crash when removing a node from the document
that has nested tables as descendants and the nested table's cells have
borders. Removing the nested table's cell's children depth-first in
reverse order will avoid triggering the bug. See Bug 769010.

Bug 769010.
2016-08-09 21:36:29 +10:00
Jeremy Bicha
ac68a33f7d Fix typo in Bosnian translation 2016-08-06 11:41:33 +10:00
Michael James Gratton
521c0c4332 Set composer indent icons in UI file, now that GTK handles RTL. Bug 769533. 2016-08-06 11:40:35 +10:00
Jeremy Bicha
509b669532 Use GTK 3.14 rtl icon support
https://bugzilla.gnome.org/show_bug.cgi?id=769533
2016-08-06 11:40:02 +10:00
Michael James Gratton
254297cd59 Workaround Mailman/Python/others sending F=F without CRLF line endings.
Despite RFC 3676 defining format=flowed lines as ending in CRLF, some
software doesn't do that. Workaround this when parsing F=F by always
converting CRLF to just LF, then just looking for LF alone as line
endings.

Bug 769137

* src/engine/rfc822/rfc822-message.vala
  (Message::mime_part_to_memory_buffer): Unconditionally convert CRLF to
  just LF, do so before applying the F=F filter.

* src/engine/rfc822/rfc822-gmime-filter-flowed.vala: Re-write to not
  expect CRLF sequences, or treat CR any differently. As a bonus, also
  check for signature lines without requiring the whole sig line to be in
  the bufer.
2016-08-04 11:05:26 +10:00
Michael James Gratton
9c31401606 Fix critical warning when conversation web view load request URI is null.
* src/client/conversation-viewer/conversation-web-view.vala
  (ConversationWebView::on_resource_request_starting): Check that the URI
  is not null before using it.
  (ConversationWebView::is_always_loaded): Remove null check and don't
  allow the param to be null, since all uses now pass in a non-null
  param.
2016-08-04 10:51:15 +10:00
Michael James Gratton
05cfb77dca Fix critical warning when folder opening remote connection.
* src/engine/imap-engine/imap-engine-minimal-folder.vala
  (MinimalFolder::start_remote_open_timer): Set the soruce id to 0 when
  the timer callback executes, so it is not attempted to be removed in
  the future. Tidy up the source a bit.
2016-08-04 10:34:49 +10:00
Michael James Gratton
0262d32e87 Fix critical warning closing engine when search table update is running.
* src/engine/imap-db/imap-db-account.vala
  (Account::populate_search_table_batch_async): Ensure the DB is open
  before proceeding with the query.
2016-08-02 22:41:52 +10:00
Michael James Gratton
cd0aa24ba9 Fix critical warning when loading attachment-only messages.
Additional follow-up to Bug 767438.

* src/client/conversation-viewer/conversation-viewer.vala
  (ConversationViewer::set_message_html): Always call
  ::insert_html_markup since that is where we are taking care of a
  possibly null body_text.
2016-08-02 22:37:36 +10:00
Michael James Gratton
4a893e4708 Really fix (?) critical warning when changing conversations rapidly.
Commit f6518b0 relied on the load being cancelled, which only happens if
you change conversation, not folder. Changing the foldler will eventually
change the conversation, but not after a nnumber of async calls.

Bug 714509.

* src/client/conversation-viewer/conversation-viewer.vala
  (ConversationViewer::on_folder_selected): Cancel existing load before
  preceeding.
2016-08-02 22:32:50 +10:00
Michael James Gratton
f6518b056c Fix critical warning when changing conversations rapidly. Bug 714509.
* src/client/conversation-viewer/conversation-viewer.vala
  (ConversationViewer::select_conversation_async): Ensure loading
  has not been cancelled after yielding to the list_full_messages_async
  call before attempting to add the messages.
2016-08-02 13:46:25 +10:00
Michael James Gratton
0c3160779e Don't always UTF-8 as the charset, use ASCII or 8859-1 if possible.
Previously, Geary would simply assume that UTF-8 is a reasonable charset
to use when sending both plain text and HTML parts. It is, however
Mailman will re-encode content sent ast UTF-8 using Base64, and break
format=flowed in the process.

This works around the problem for messages containing US-ASCII or
ISO-8859-1 chars, at least. No solution yet for UTF-8 except maybe
getting Mailman fixed.

Bug 769137

* src/engine/rfc822/rfc822-message.vala (Message): Guess the best charset
  for a message's content rather than assuming UTF-8. Set the charset for
  both plain text and HTML parts, but only guess it and the encoding at
  max once for both.

* src/engine/rfc822/rfc822-utils.vala: Replace get_best_content_encoding
  with get_best for determing both charset and encoding, and
  get_best_encoding for just guessing encoding, both using
  GMime.FilterBest instead of our own custom code.
2016-08-01 23:21:57 +10:00
Balázs Meskó
f4d19831ee Updated Hungarian translation 2016-07-31 18:54:14 +00:00
Michael James Gratton
6aacb75e38 Fix infinite loop when sending long space-stuffed line. Bug 768642.
* src/client/util/util-webkit.vala (Util.DOM.html_to_flowed_text): If a
  line is space-stuffed, ignore the stuffing space when determining where
  to break the line.
2016-07-30 13:23:51 +10:00
Michael James Gratton
83955b3d58 Fix crash when parsing unknown accout info service provider. Bug 713985.
* src/engine/api/geary-service-provider.vala
  (ServiceProvider::from_string): Throw an error rather than an assert
  when the provided string is not found.
2016-07-30 11:18:26 +10:00
Michael James Gratton
82faf2c332 Fix RTL email not being shown as RTL in conversation viewer. Bug 713062.
* theming/message-viewer.html: Set dir="auto" on template for email bodies.
2016-07-30 09:25:09 +10:00
Balázs Meskó
37dde520b3 Updated Hungarian translation
(cherry picked from commit ccdc94cef121ddaddbbdc29d881394b3969cace5)
2016-07-29 19:16:17 +00:00
Michael James Gratton
50a4cfd46f Add Enchant to build dependencies. 2016-07-29 10:34:33 +10:00
Michael James Gratton
557a9e75b7 Fix crash when replying to email with null from address. 2016-07-26 09:38:49 +10:00
Michael James Gratton
15e6877823 Fix critical when email without any from addresses loaded from DB.
See bbf5f07 and Bug 768468.
2016-07-25 18:01:30 +10:00
Michael James Gratton
8f7ff57c82 Fix error loading SMTP and IMAP host names introduced by a59a399. 2016-07-25 13:02:46 +10:00