Commit graph

1667 commits

Author SHA1 Message Date
Simon Lipp
6e6df92c05 Fix crash when getting preview with long html tags
Closes: bgo #726468
2014-03-17 12:40:17 -07:00
Jim Nelson
1a41622696 Make background sync less onerous: Refs bgo#713530
This commit makes three modifications:

  * Introduces some sleep() calls in AccountSynchronizer and
    EmailPrefetcher to avoid thrashing hard when under load
  * Modifies the AccountSynchronizer not to go back so far before
    giving up and to traverse time by three months instead of one
    to locate a folder's epoch email quicker
  * If the max epoch time is reached, just pull in all emails, as
    the server search is apparently not working
2014-03-17 12:11:52 -07:00
Yosef Or Boczko
fda412bbfe Updated Hebrew translation 2014-03-17 21:07:39 +02:00
Charles Lindsay
2e30e47b98 Generate and install localized help docs
This causes us to generate localized help docs whenever Geary builds,
and then the localized docs are installed with the rest of the help
pages.

It would be great to also have the CMakeLists read from the Makefile.am
file to determine what translations to run, but that hasn't happened
yet.

Closes: bgo #713831
2014-03-17 12:02:17 -07:00
Ville-Pekka Vainio
e6edaae866 Finnish translation update by Jiri Grönroos 2014-03-16 20:32:47 +02:00
Charles Lindsay
512553cfea Correct default SMTP port to the submission port
Closes: bgo #726296
2014-03-13 18:30:16 -07:00
Jim Nelson
6358e026f0 Prevent GTK warnings when creating new account: Closes bgo#726269
The code for distinguishing between a new database and an existing
one being upgraded was faulty, causing the progress monitor to be
started/stopped when it should've have been.
2014-03-13 17:15:42 -07:00
Charles Lindsay
9f047ce9c2 Don't show Mark as Unread when it'd be a no-op
Closes: bgo #726274
2014-03-13 17:04:03 -07:00
Jim Nelson
5857d02f23 Symbolic icon for Remove Account? warning dialog: Closes bgo#726279 2014-03-13 16:26:59 -07:00
Jim Nelson
e3dabddcf2 Don't crash when renaming account nickname: Closes bgo#726277
"sidebar-name-changed" signal was not disconnected when dropping
a Sidebar.Entry from the Tree, meaning that if the Entry was still
ref'd and its name changed, the Tree was attempting to update an
Entry it did not hold.
2014-03-13 16:06:32 -07:00
Jakob Unterwurzacher
3825ce5d7e Unneccessary dconf updates on window move
Writing the window_{width,height,maximized} variables triggers
a dconf database update. This is an expensive operation as
dconf writes down a full copy of the database and renames
over the old one. dconf does not check for unchanged values.

configure_event() is called for every pixel of a window move,
and writes the window_* variables - those do not change during
a move. Check by running
"dconf watch /org/yorba/geary/" and moving the window or just
listen to the hard disk grinding.

This patch checks if the values have changed before writing
them out, which fixes the issue and provides a
disk-grinding-free window move experience.

Closes: bgo #724953
2014-03-12 17:17:46 -07:00
Charles Lindsay
c3e5270517 Fix a number of database hiccups
1) Use docid instead of id in search table.

We had previously included an 'id INTEGER PRIMARY KEY' column in the
MessageSearchTable, assuming it would get the same rowid alias treatment
as it does in non-FTS tables.  That assumption was wrong: it was being
created as a FTS column.  This fixes it so we use docid everywhere.

To fix the old incorrect docid values, we simply blow away the search
table and let the natural search table population process, which now has
the correct docid insertion code, fix the problem.

This also removes the id column from the search table creation SQL, but
this will only affect new users.  Upgraders will see an empty, vestigal
id column in their search table.  Since SQLite doesn't easily let you
remove columns, it's just easier to ignore the column than go through
all the work to fix it.

2) Do as many rowid lookups as possible in batches, instead of doing
them individually in loops.  This speeds up working with large sets of
email.

3) Rejigger indices on the MessageLocationTable to make certain queries
faster.  This creates a new covering index in particular for the email
prefetcher, which previously had to sort using a temp table.  The new
index should work in the general case too, as we should never be looking
at ordering without folder_id (and since folder_id comes first, it works
as an index on just folder_id, too).

4) For bonus measure, log all slow queries (> 1s execution time) to
debug output.

Closes: bgo #725929
2014-03-12 16:39:22 -07:00
Charles Lindsay
479f87e2ca Default to STARTTLS in SMTP
Closes: bgo #714882
2014-03-12 16:36:09 -07:00
Charles Lindsay
7cf53acb47 Don't allow archive from spam
Closes: bgo #714546
2014-03-12 16:35:25 -07:00
Daniel Korostil
8c6403c99a Updated Ukrainian translation 2014-03-12 23:53:24 +02:00
Charles Lindsay
ccfd1f0360 Initialize opening_monitor in local folders
Closes: bgo #725850
2014-03-12 12:14:01 -07:00
Charles Lindsay
356a1aff58 Update help docs
Closes: bgo #724082
Closes: bgo #725618
Closes: bgo #724081
Closes: bgo #720625
2014-03-12 12:12:43 -07:00
Robert Schroll
9f829e76a7 Expand quote rollup button to width of quote: Refs bgo#724342
Removing the padding so the button is the same width of the quote
makes it look more like the entire quote block is rolling up/down
with the button.
2014-03-11 13:52:00 -07:00
Charles Lindsay
09dc342ed7 Don't remove folders when listing throws errors
We're seeing a bug where under certain conditions like a flaky internet
connection, Geary will decide you don't have any remote folders and
simply remove them all locally.  What's probably happening is we're
getting an error and ignoring it.  Since we don't know what the true
error is, this patch simply adds some logging for that case and sets a
flag so we don't run the delete folders logic if there was an error.
Once we get a handle on what's really going on, we can implement a more
surgical fix.

Closes: bgo #726049
2014-03-11 12:12:37 -07:00
Charles Lindsay
e4633f212c Clean up mark as read/unread star/unstar options
Mark read/unstar always operate on all messages in the selected
conversations.  Mark unread/star now work the same way everywhere: it'll
mark each selected conversation's latest message in the current folder,
falling back to the latest message period for folders like the search
folder where nothing really lives.

The individual mail operations available in the conversation viewer are
unaffected, as they always just operate on the one message.

Closes: bgo #714008
2014-03-10 11:52:54 -07:00
Charles Lindsay
55dd58fbcd Use path, not URI, when attaching files in mailto
Closes: bgo #713865
2014-03-07 12:36:33 -08:00
Rafael Ferreira
7d949fef3d Updated Brazilian Portuguese translation 2014-03-07 15:36:35 +00:00
Charles Lindsay
9b486f9598 Replace slashes and NULs with _ in attached filenames
This ensures we can't, say, overwrite someone's .bashrc file by sending
them an email.  It also fixes errors where Geary couldn't handle
attachment filenames that contained slashes.

Closes: bgo #714549
2014-03-06 14:47:42 -08:00
Charles Lindsay
c0a62ef173 Fix scrolling to the top on new messages
This introduces the possibility of reentrancy, which was guarded against
before.  It seems harmless, though.  Regardless, we'll keep our eyes
peeled for any issues related to it.

Closes: bgo #720712
2014-03-06 13:17:24 -08:00
Charles Lindsay
4641752920 Only save drafts when edits have happened in body
Closes: bgo #724911
2014-03-06 11:33:34 -08:00
Claude Paroz
5c6a65e414 Updated French translation 2014-03-05 14:27:32 +01:00
Adolfo Jayme Barrientos
fd8e3f1eb1 Updated Spanish translation 2014-03-05 14:15:56 +01:00
Robert Schroll
5bb9349692 Avoid WebKit bug when spelling suggestions not found
webkit_context_menu_item_get_action() fails an assertion when fed the
item indicating that there are no spelling suggestions.  Since this item
is insensitive, we avoid making the call in that case.  There are no
other insensitive items we need to do something special with.

Closes: bgo #725518
2014-03-04 18:02:01 -08:00
Charles Lindsay
6a970d052e Avoid ArrayList.wrap for compatibility with old Gee
Closes: bgo #724317
2014-03-04 17:41:28 -08:00
Charles Lindsay
4925f81cd6 Clean up Imap.Account's folder map
Closes: bgo #725695
2014-03-04 17:30:11 -08:00
Charles Lindsay
5b622c00c4 Fix visibility of save sent mail option
Closes: bgo #725286
2014-03-04 17:27:29 -08:00
Charles Lindsay
56a3e174f7 Use properties, not hard-coded path, for folder type
Closes: bgo #725238
2014-03-04 11:19:29 -08:00
Charles Lindsay
dab925521e Bump version, add news 2014-03-03 18:13:31 -08:00
Charles Lindsay
85d1a97129 Don't multithread db upgrades
Turns out for long-running upgrades we were running them all in
parallel, which thrashes the disk pretty hard.  This adds a simple mutex
lock around each upgrade, so at least the computer is usable while it's
going on.  A more robust solution would be to have a single-thread
thread pool where we enqueue upgrades, but that's too much change this
late in the release cycle.

Also it turns out that the nullifying of the internaldate_time_t column
before we repopulate it was very costly, and unnecessary.  So, this also
should speed things up for upgrading users.

Closes: bgo #724475
2014-03-03 17:40:53 -08:00
Charles Lindsay
c4020014da Use STATUS command to keep unread counts accurate
We know we've got some accounting problems in our unread counts.  This
patches over the most egregious errors by fetching the real count from
the server more frequently.  It also more frequently triggers the full
email synchronization process.

Closes: bgo #714865
2014-03-03 15:05:41 -08:00
Aurimas Černius
cba777680e Updated Lithuanian translation 2014-03-02 20:11:54 +02:00
Marek Černocký
93e046a2d7 Updated Czech translation 2014-03-02 16:03:05 +01:00
Ville-Pekka Vainio
eaa0e5a0f1 Finnish translation update by Jiri Grönroos 2014-03-01 20:11:56 +02:00
Piotr Drąg
ccbf9e06ed Updated Polish translation 2014-02-28 15:22:47 +01:00
Charles Lindsay
49f4db0774 Add "use imap credentials" option to "other" acct
This adds a "use imap credentials" checkbox to the "other" account
creation dialog.

Closes: bgo #721964
2014-02-27 12:27:50 -08:00
Marek Černocký
5af326e09d Updated Czech translation 2014-02-27 12:16:50 +01:00
Wolfgang Steitz
e426fd5889 Round displayed received time to nearest hour
Closes: bgo #720843
2014-02-26 13:04:30 -08:00
Piotr Drąg
b33102e16e Updated Polish translation 2014-02-26 21:58:26 +01:00
Charles Lindsay
8279bb2aba Pluralize tooltips with multiple selection
Looks like when we went to the pill toolbar, we lost our plural tooltips
on the toolbar.  This hooks up to the tooltip changed signal to keep the
buttons in line with the action, which we're setting from the
controller.

Closes: bgo #720710
2014-02-25 17:08:30 -08:00
Charles Lindsay
ab4de5e3f6 Add folder progress monitor, hook it up to spinner
This adds a progress monitor to the folder open operation.  The spinner
in the status bar is hooked up to it only for the currently selected
folder, so that background updates don't trigger the spinner.

Closes: bgo #713703
2014-02-25 15:28:22 -08:00
Yosef Or Boczko
ed181f1594 Updated Hebrew translation 2014-02-25 22:18:24 +02:00
Charles Lindsay
7e1e968b61 Add mnemonics to composer fields
Closes: bgo #713843
2014-02-25 12:01:35 -08:00
Jim Nelson
6dd16e30e6 Fix IMAP cx reestablishment logic: Closes bgo#723955
The internal Imap.Folder object was not being closed in all code
paths, causing the re-open to fail every time.  Solution is to
properly close the object and to distinguish between soft and hard
failures when opening a connection to the server.
2014-02-24 16:01:35 -08:00
Jim Nelson
c16369a81a Correct message count when saving/removing draft: Closes bgo#724910
ReplayRemoval must be processed in-order with ReplayAppend operations.
By making it local-only, removals could execute before previous append
notifications.
2014-02-24 15:43:57 -08:00
Wolfgang Steitz
dec6daf5de Handle null body-text quoting in replies: Closes bgo#714013 2014-02-24 15:36:47 -08:00