Commit graph

4686 commits

Author SHA1 Message Date
Michael Gratton
8022ffecce Update files for 3.33.1 2019-04-28 14:30:36 +10:00
Michael Gratton
6721fd9180 Update THANKS 2019-04-28 14:14:53 +10:00
Michael Gratton
86bf9a3687 Merge branch 'deceptive-warning' into 'mainline'
Fix deceptive warning

Closes #400

See merge request GNOME/geary!225
2019-04-28 04:14:01 +00:00
Michael Gratton
7286808a0b Merge branch 'emphasize-participated-in' into 'mainline'
Some improvements to conversation-list

See merge request GNOME/geary!200
2019-04-28 00:53:22 +00:00
Piotr Drąg
f57c8d2e63 Update POTFILES.skip 2019-04-27 17:52:33 +02:00
Jonathan Haas
bfe504fed3 Make sure we match the whole link text as URL and not only some part. Add some symbols to be invalid in domains. Add 3 tests. 2019-04-27 11:52:51 +02:00
Konstantin Kharlamov
e461ba4907 conversation-list: cache participants list
Markup generation requires lots of resources to walk through lists,
build strings, compare strings, etc.  And all of this gets done on every
draw of conversation-list widget for every conversation. Let's save up
some resources by caching the markup.

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-04-27 12:11:11 +03:00
Konstantin Kharlamov
7909f85bd2 conversation-list: construct string in place for single participant
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-04-27 12:11:11 +03:00
Konstantin Kharlamov
37416fbebc conversation-list: don't recalculate html-escaped subject
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-04-27 12:11:11 +03:00
Konstantin Kharlamov
39794a9ada conversation-list: use get_primary_originator to get actual address
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-04-27 12:11:11 +03:00
Konstantin Kharlamov
773f83d62f conversation-list: remove unnecessary comparison
Fetching the value and comparing it to 0 should work just as fast as
directly assigning it. And since we don't really need to know here what
was the value of is_unread before, remove the comparison.

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-04-27 12:11:11 +03:00
Konstantin Kharlamov
c7824fd0fb conversation-list: fix comments
The first comment now mentions that entries are unique. This can be
exploited in further commits.

Second comment is misleading: the "if not present, add" part is clear
from code below, and the "in chronological order" is the misleading one:
chronological order is ensured by the first foreach, not by the second
foreach where the comment placed. And the first foreach already has a
commentary about the order.

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-04-27 12:11:11 +03:00
Konstantin Kharlamov
89f9854edc conversation-list: fix a different participants being counted as one
Notification mails, such as github, gitlab, often gonna have the same
mail address, although participants are different. Fix the comparator to
take this situation into account.

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-04-27 12:11:11 +03:00
Michael Gratton
72e6bd6fe3 Merge branch 'wip/handy-sub-module' into 'mainline'
Add a sub{module,project} for handy for those who don't have it

See merge request GNOME/geary!226
2019-04-26 09:24:51 +00:00
Michael Gratton
b24ac8061c Switch search and main menu order back to normal
Fixes #405
2019-04-26 18:30:18 +10:00
Michael Gratton
5027e039fc Add a sub{module,project} for handy for those who don't have it 2019-04-26 18:22:43 +10:00
Jordi Mas
2fe4d2076b Update Catalan translation 2019-04-25 06:56:08 +02:00
Michael Gratton
66b659bbf7 Merge branch 'wip/336-smtp-rcpt-to-quoting' into 'mainline'
Fix SMTP forward path formatting

See merge request GNOME/geary!223
2019-04-24 11:20:20 +00:00
Michael Gratton
37da52e14f Enforce correct formatting for SMTP MailRequest and RcptRequest 2019-04-24 20:46:45 +10:00
Michael Gratton
534b4e27d9 Don't MIME-encode RFC822 mailbox local parts
This is explicilty disallowed by RFC 2074 §5 and not accepted by mail
servers.

See #336
2019-04-24 20:43:39 +10:00
Michael Gratton
c306c2c5fa Correctly handle escaping UTF-8 characters in RFC822 mailboxes
Use string.get_next_char() to handle iterating over an
RFC822.MailboxAddress mailbox local part, and explicitly allow UTF-8
2, 3, and 4 byte chars without quoting, per RFC 5322.

This lets us fix the test cases that use UTF-8 chars in the local part.
2019-04-24 20:38:11 +10:00
Michael Gratton
b3da4ad89e Merge branch 'wip/smtp-integration-tests' into 'mainline'
Add simple SMTP integration test

See merge request GNOME/geary!222
2019-04-24 08:25:12 +00:00
Michael Gratton
c58d0b74e9 Add simple SMTP integration test 2019-04-24 17:18:03 +10:00
Michael James Gratton
e1b31183ce Merge branch 'wip/kalev/appdata-id' into mainline 2019-04-24 12:17:40 +10:00
Michael Gratton
94d037f5a7 Add a provides for the app id without the desktop suffix 2019-04-24 12:13:55 +10:00
Rodrigo Lledó
16e4c445c5 Update Spanish translation 2019-04-23 07:03:36 +00:00
Rodrigo Lledó
cc152c686a Update Spanish translation 2019-04-22 06:26:57 +00:00
Michael Gratton
d12edc298a Merge branch 'wip/fast-folder-switching-crashes' into 'mainline'
Both check for and throw Cancelled errors some more

See merge request GNOME/geary!218
2019-04-21 07:00:09 +00:00
Michael Gratton
b9fc48812b Merge branch 'wip/controller-cleanup' into 'mainline'
Fix application controller construction race

See merge request GNOME/geary!219
2019-04-21 06:51:02 +00:00
Michael Gratton
bb10852876 Fix application controller construction race
Fix multiple controller instances being constructed if multiple actions
are executed at once.
2019-04-21 16:25:54 +10:00
Michael Gratton
76222c7810 Both check for and throw Cancelled errors some more
Fixes some crashes when switching folders by keeping the down arrow
held down.
2019-04-21 16:23:30 +10:00
Michael Gratton
218c5ebf52 Merge branch 'wip/controller-cleanup' into 'mainline'
Controller cleanup

See merge request GNOME/geary!217
2019-04-21 06:21:02 +00:00
Michael Gratton
a163dea96a Merge branch 'wip/application-cleanup' into 'mainline'
Application cleanup

See merge request GNOME/geary!215
2019-04-21 06:18:14 +00:00
Michael Gratton
995671f95e Merge branch 'hack-around-loaded-mails-expand' into 'mainline'
Don't expand non-interesting mails

Closes #396

See merge request GNOME/geary!216
2019-04-21 06:03:30 +00:00
Michael Gratton
38bc319ded Fix application controller construction race
Fix multiple controller instances being constructed if multiple actions
are execute at once.
2019-04-21 15:50:16 +10:00
Michael Gratton
628d431df8 Fix application controller/action race at startup
Since the primary application instance could be invoked by a number of
actions (activate, about, compose, etc), ensure that a controller has
been constructed by the time the action is invoked, and ensure that
only one controller can be constructed at any one time.
2019-04-21 15:46:24 +10:00
Michael Gratton
4b811d67ba Fix some circular references on application startup
Since Applicaton.Controller constructs a MainWindow instance when it
is constructed, but the MainWindow and some other related classes
accesses the controller via the deprecated GearyApplication singleton
when they are cunstructed, the controller instance is still null and
a critical is reported instead.

Most of the code in question was related to classes needing to
know when the controller's account/folder/conversation monitor has
changed, so invert the call chain and have the controller let these
classes know.

The main culprit was the current conversation monitor, but since that
is very MainWindow-specific, just move it to the main window from the
controller, so the controller only needs to let the main window know
that the selected folder has changed.
2019-04-21 15:42:27 +10:00
Konstantin Kharlamov
d3835617b2 conversation-list: hack: don't expand non-interesting mails
When mails weren't loaded from database, conversation list may happen to
load mails through load_full_email function, which expands mails by
default.

Ideally this function shouldn't be called for these mails, but correct
solution would require to store conversation in database, for now lets
work around it by simply checking whether a mail needs to be expanded.

Fixes https://gitlab.gnome.org/GNOME/geary/issues/396

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-04-21 05:56:25 +03:00
Michael Gratton
e01132d856 Convert GearyController to RAII and rename
Convert the controller's open_async() method into its constructor, make
previously nullable properties not nullable, make the application's
instance null until it is contructed, rename to match dir convention.
2019-04-21 11:14:48 +10:00
Michael Gratton
d4c29c72d7 Add unit tests for app path accessors 2019-04-21 11:13:01 +10:00
Michael Gratton
ee784379bf Merge branch 'wip/misc-build-fixes' into 'mainline'
Misc build fixes

See merge request GNOME/geary!214
2019-04-20 05:37:45 +00:00
Michael Gratton
81bcd31b79 Clean up GearyAppliaction's path accssor implementaion
Convert a few methods into properties, remove some redundancies and
untangle some call chains.
2019-04-20 15:17:36 +10:00
Michael Gratton
937d985565 Clean up GearyApplication source
Move GTK code from create_async into startup. Remove `_async` suffix
from method names. Make methods not used externally private & move
private methods to the bottom of the source tree. Don't check for the
controller being null since it can't be. Update some doc comments.
2019-04-20 15:17:36 +10:00
Michael Gratton
33dd787e5b Merge branch 'wip/christopherdavis/conversation-search-width' into 'mainline'
conversation-viewer: set searchentry width to same as inbox's

Closes #390

See merge request GNOME/geary!213
2019-04-20 05:10:55 +00:00
Michael Gratton
bc7f5c5392 Fix TNEF engine tests not being run 2019-04-20 15:06:30 +10:00
Michael Gratton
73e894cd72 Fix messaging menu dep so it actually gets found and built 2019-04-20 15:06:30 +10:00
Michael Gratton
5dc6994706 Merge branch 'wip/remove_present_workaround' into 'mainline'
Remove workaround for gtk_window_present_with_time() under Wayland

See merge request GNOME/geary!179
2019-04-19 03:59:55 +00:00
Michael Gratton
e5775bb674 Remove workaround for gtk_window_present_with_time() under Wayland
See GNOME/gtk#624
2019-04-19 13:26:07 +10:00
Christopher Davis
54d2ce45d7 conversation-viewer: set searchentry width to same as inbox's
Previously our search entry for conversations was too small
for the placeholder text, and looked awkward in comparison
to the entry for searching messages.

Now we set them to have the same width-chars.

Fixes https://gitlab.gnome.org/GNOME/geary/issues/390
2019-04-18 23:19:44 -04:00
Michael Gratton
9e44188240 Merge branch 'wip/christopherdavis/full-height-separator' into 'mainline'
main-toolbar: Use a full-height, splitting separator

Closes #389

See merge request GNOME/geary!212
2019-04-19 03:16:21 +00:00