Commit graph

5321 commits

Author SHA1 Message Date
Michael Gratton
bf4f5c4780 Fix GenericAccount::to_email_identifier not actually working
The GVariant type "*" only matches a single data type, not many, and
the sense of the test to check serialised ids was wrong anyway. As a
reuslt, this method probably never worked. Add a unit test.
2019-10-30 14:12:52 +11:00
Chris Heywood
e3cf826884 Improve passing of inline dropped file through to vala !343 2019-10-26 19:27:54 +02:00
Chris Heywood
e765da347b Don't repeat the string search when replacing an inline image source !343 2019-10-26 19:14:17 +02:00
Chris Heywood
366b0adbf9 Cleanup inefficient GMime stream creation for attachment !343 2019-10-26 19:08:13 +02:00
Alex Henrie
20284fe29c Remove unused variable urlRegex from ComposerPageState.containsKeywords 2019-10-26 03:02:41 -06:00
Michael Gratton
543c753186 Merge branch 'mjog/608-gtk-style-context-log-spam' into 'mainline'
Fix ConversationList GtkStyleContext log spam

Closes #608

See merge request GNOME/geary!350
2019-10-26 06:47:03 +00:00
Michael Gratton
876c107628 Fix ConversationList GtkStyleContext log spam
Fixes #608
2019-10-26 17:16:53 +11:00
Michael Gratton
753a67f40a Merge branch 'links' into 'mainline'
Don't linkify text near a URL that looks like a URL with a bad protocol

See merge request GNOME/geary!339
2019-10-26 05:31:55 +00:00
Michael Gratton
737bdba158 Merge branch 'mjog/571-imap-fetch-space-workaround-redux' into 'mainline'
IMAP body part fetch space workaround redux

Closes #571

See merge request GNOME/geary!342
2019-10-26 05:24:03 +00:00
Michael Gratton
9b83bf0fa3 Merge branch 'mjog/contacts-upsert' into 'mainline'
Use SQL UPSERT clause when updating contacts

See merge request GNOME/geary!346
2019-10-26 05:16:23 +00:00
Michael Gratton
12d0cced35 Use SQL UPSERT clause when updating contacts
This saves a round trip in the common case of a contact already
existing. Requires SQLite 3.24 at a minimum, so bump it in meson.build.
2019-10-26 15:49:34 +11:00
Chris Heywood
8ddd0b6d8d Merge remote-tracking branch 'origin/mainline' into wip/90-304-image-dnd-paste 2019-10-25 12:01:26 +02:00
Michael Gratton
3e7a9daccc Merge branch 'mjog/550-always-show-images-not-saved' into 'mainline'
Always show images pref not saved

Closes #550

See merge request GNOME/geary!345
2019-10-25 04:24:50 +00:00
Michael Gratton
10ddff2e76 Trivial docs update 2019-10-25 14:59:09 +11:00
Michael Gratton
058ea2faa0 Update Contact::load_remote_resources with engine contact flags
Ensure that the load_remote_resources property is updated when its
underlying engine contacts flags are updated.
2019-10-25 14:57:19 +11:00
Michael Gratton
0cf5ab734b Merge contacts when harvesting them
Now that ContactStore no longer merges contacts, do so in the harvester.
2019-10-25 14:54:53 +11:00
Michael Gratton
0c563cf101 Fix ContactStoreImpl not saving flags removed from a contact
Don't try to merge contacts, just assume the updated contact passed in
is canonical.
2019-10-25 14:53:59 +11:00
Michael Gratton
0fd5a7b875 Merge branch 'mjog/json-manifest-compat' into 'mainline'
Add a compatibility JSON-based flatpak manifest

See merge request GNOME/geary!344
2019-10-25 01:07:02 +00:00
Michael Gratton
f7f72143e0 Add a compatibility JSON-based flatpak manifest
GNOME Builder doesn't support YAML manifests, so generate one and
commit it.

Revert this once GNOME/gnome-builder#520 is fixed and deployed.
2019-10-25 11:48:09 +11:00
Jordi Mas
869b359490 Update Catalan translation 2019-10-24 21:27:13 +02:00
Alex Henrie
feed89225f Don't linkify text near a URL that looks like a URL with a bad protocol 2019-10-22 18:53:18 -06:00
Michael Gratton
ab77067d8a Fix RFC822.Header.get_header_names returning null names
The custom GMime VAPI assumed the call to get_iter() actually returned a
new iter, but it doesn't. Fix that, update Header class style, and add
tests.
2019-10-22 17:20:52 +11:00
Michael Gratton
8cd310bea1 Extend the IMAP FETCH HEADER.FIELDS hack for multiple fields
The same servers that do not support SP in a IMAP FETCH HEADER.FIELD
command (e.g. `BODY[HEADER.FIELDS (DATE)]`) does not support SP when
requesting multiple headers, either
(e.g. `BODY[HEADER.FIELDS (DATE SUBJECT)]`).

This patch extends the existing hack (see #410) when enabled and
multiple headers are required to send a seperate command for each,
rather than using a list as above.

Fixes #571
2019-10-22 17:20:52 +11:00
Michael Gratton
d0773078f0 Merge branch 'mjog/preview-regex-segfault' into 'mainline'
Fix segfault on invalid UTF-8 when generating preview

See merge request GNOME/geary!340
2019-10-22 03:21:00 +00:00
Michael Gratton
7bac77df7b Fix segfault on invalid UTF-8 when generating preview 2019-10-22 13:07:27 +11:00
Asier Sarasua Garmendia
8ded85c6b6 Update Basque translation 2019-10-20 17:02:58 +00:00
Michael Gratton
f6e270f83d Merge branch 'mjog/ci-updates' into 'mainline'
CI updates

See merge request GNOME/geary!331
2019-10-16 03:01:14 +00:00
Michael Gratton
8206cf434d Remove Flatpak test locale hack, just use en_US.UTF-8 for now
FDO 19.08 runtime now includes C.UTF-8 locale, but since Fedora
now ships one that collates high-bit chars, it differs compared
to Debian et al's and FDO.

As a result, just use en_US.UTF-8 for now, probably until glibc
actually ships it and so they all agree.
2019-10-16 13:36:29 +11:00
Michael Gratton
30939534e5 Update files for 3.35.1 2019-10-11 07:58:22 +11:00
Michael Gratton
a0977b8525 Merge branch 'mjog/fix-build-warnings' into 'mainline'
Fix misc null and deprecation build warnings

See merge request GNOME/geary!337
2019-10-10 20:51:58 +00:00
Michael Gratton
7c56f269e0 Fix misc null and deprecation build warnings 2019-10-10 22:31:40 +11:00
Michael Gratton
8da584a4c0 Merge branch 'mjog/web-extension-debug-fix' into 'mainline'
Fix web extension debug logging

See merge request GNOME/geary!336
2019-10-10 11:00:09 +00:00
Michael Gratton
ef7b11717a Fix web extension debug logging
Per the client process, need to set the default writer.
2019-10-10 21:25:17 +11:00
Michael Gratton
647ef90cfc Merge branch 'mjog/589-attachment-keyword-check' into 'mainline'
Attachment keyword fixes

Closes #589

See merge request GNOME/geary!334
2019-10-08 22:32:52 +00:00
Michael Gratton
17a23bc57e ComposerWidget: Send both en and localised attachment keywords
Ensures that the English keyword is always checked since en+something
is somewhat common.

See #589
2019-10-08 22:19:50 +11:00
Michael Gratton
3af5e2eb70 Merge branch 'mjog/wip-remove-flatpak-pulse-perms' into 'mainline'
Remove Flatpak manifest permission for Pulse Audio

See merge request GNOME/geary!332
2019-10-07 13:19:34 +00:00
Michael Gratton
69e3cdf9b5 Fix ComposerPageState::containsAttachmentKeyword
Just use ComposerPageState::htmlToText to get the email's main content
without quotes, not some custom code.
2019-10-07 23:49:12 +11:00
Michael Gratton
a8ef91f3a8 ui/composer-web-view.js: Improve keyword detection
Update ComposerPageState.containsKeywords to split on any punctuation,
not just spaces, so that text like "see the attachment." will get
detected.
2019-10-07 23:48:38 +11:00
Michael Gratton
5732d23e98 ui/composer-web-view.js: Add element blacklist to htmlToText
Update ComposerPageState.htmlToText() to allow ignoring certain elements
if needed. Update tests to test the function directly rather than going
through ComposerPageState.toText().
2019-10-07 23:42:49 +11:00
Michael Gratton
0a9b16819b Merge branch 'mjog/flatpak-contacts-perms' into 'mainline'
Add Flatpak manifest permissions for Contacts

See merge request GNOME/geary!333
2019-10-07 11:18:03 +00:00
Michael Gratton
7b8fa9f140 Add Flatpak manifest permissions for Contacts
This is needed for opening and editing contacts in Contacts.
2019-10-07 21:46:30 +11:00
Michael Gratton
884439da2f INSTALL: Use dnf rather than yum for Fedora deps 2019-10-07 21:36:12 +11:00
Michael Gratton
52d0bbea0f Remove Flatpak manifest permission for Pulse Audio
Now that we're not playing sounds directly, don't need this any more.
2019-10-07 21:34:37 +11:00
Michael Gratton
8814cd6c29 .gitlab-ci.yml: Re-enable Fedora for CI 2019-10-07 19:50:30 +11:00
Michael Gratton
0720ac99fd .gitlab-ci.yml: Fix a few vars not using build dir variable 2019-10-07 13:33:57 +11:00
Michael Gratton
87f71b25fb Merge branch 'mjog/585-inspector-strings' into 'mainline'
Unmark Inspector test strings as being translatable

Closes #585

See merge request GNOME/geary!328
2019-10-06 13:44:58 +00:00
Michael Gratton
fc799b378b Unmark Inspector test strings as being translatable
Fixes #585
2019-10-07 00:17:48 +11:00
Michael Gratton
c2019cab73 Merge branch 'links' into 'mainline'
Clean up composer link insertion and deletion

Closes #591

See merge request GNOME/geary!326
2019-10-06 09:59:59 +00:00
Alex Henrie
52d010bb22 Clean up composer link insertion and deletion
Allow deleting only the selected part of a link, and modify the existing
link instead of inserting a new one if the user didn't select any text.
Also restructure the code to avoid always-true or always-false if
statements.

Fixes #591
2019-10-05 10:25:25 -06:00
Marek Černocký
a3c8b02f43 Updated Czech translation 2019-10-02 02:47:41 +02:00