Commit graph

6033 commits

Author SHA1 Message Date
Michael Gratton
0ae633d88f Update existing tests to work with ValaUnit 2020-06-30 17:31:07 +10:00
Michael Gratton
6b1bad28b9 Move generic unit test classes to a new basically-standalone subproject
Break out the generic testing code into something easily re-used, and
improve the API substantially:

 * Use generics to reduce the number of equality tests to effectively
   a single one
 * Make all assert args consistent in that the actual value is always
   listed first.
 * Add convenience API for common string/array/collection assertions
2020-06-30 17:20:12 +10:00
Michael Gratton
e4edf28e0c Merge branch 'remove-old-msgs-beyond-storage-pref' into 'mainline'
Remove old messages beyond storage preference

See merge request GNOME/geary!388
2020-06-30 07:07:12 +00:00
Piotr Drąg
855eab580c Update Polish translation 2020-06-28 12:51:54 +02:00
Michael Gratton
c4a3ab64a9 Merge branch 'mjog/misc-fixes' into 'mainline'
Misc fixes

See merge request GNOME/geary!526
2020-06-27 06:35:54 +00:00
Michael Gratton
d0efd00386 Composer.Widget: API doc comment updates 2020-06-27 13:49:09 +10:00
Michael Gratton
3daeade46f Application.Controller: Fix composer not appearing inline for replies 2020-06-27 13:48:24 +10:00
Michael Gratton
97ba8be7cd Merge branch 'mjog/misc-criticals' into 'mainline'
Misc criticals

Closes #802, #865, #875, and #886

See merge request GNOME/geary!525
2020-06-27 02:54:47 +00:00
Michael Gratton
b519143d63 Geary.Imap.Deserialiser: Log literal values when logging enabled
Not much point logging deser without being able to see actual literals
being pulled down over the wire.
2020-06-27 12:36:14 +10:00
Michael Gratton
fdef83d6fb Geary.ImapEngine.EmailPrefetcher: Bump up prefetch chunk size
Increases chunk size from 32KB to 512KB to speed up background sync
when downloading large mailboxes.
2020-06-27 12:34:37 +10:00
Michael Gratton
7e05b99db5 Application.MainWindow: Fix hidden auth and cert infobars buttons 2020-06-27 12:34:00 +10:00
Michael Gratton
576d3a7811 Engine: Handle errors when constructing email objects from wire or db
Now that the RFC822 objects throw errors in any ctors that require
parsing, check for those and handle appropriately. Also ensure the
correct ctor is being used, and that the data being passed to them
is in the correct format (i.e. typically RFC822-formatted).

Fixes #886
2020-06-27 12:18:12 +10:00
Baurzhan Muftakhidinov
65adddc0e7 Update Kazakh translation 2020-06-26 12:46:23 +00:00
Michael Gratton
cdf92b06b2 Geary.RFC822: Use a singlton GMime.ParserOptions object
Maintain a ref to a singleton options object, be explicit in what
options are being used.
2020-06-26 17:35:39 +10:00
Michael Gratton
52fdf3677c Geary.RFC822.MailboxAddresses: Use RFC822 GMime parser options
Ensure the RFC822 package's parser options are used when parsing RFC822
strings.
2020-06-26 17:22:45 +10:00
Michael Gratton
8125ab8c3b Geary.RFC822.Header: Add get_raw_header
Add header accessor to enable getting raw header values when needed.
2020-06-26 17:20:02 +10:00
Michael Gratton
be0ce29a1b Geary.ImapEngine.AccountSynchronizer: Avoid a critical in the destructor
Use a weak ref in the dtor when disconnecting from the folders signals
to avoid reffing the folder, which may be destroyed already when the
object is destroyed.
2020-06-26 17:17:58 +10:00
Michael Gratton
997e8e2c4d Geary.Util.Logging: Respect standard G_DEBUG breakpoint semantics
Check the value of G_DEBUG and ensure we trip gdb breakpoint as
appropriate for warnings and criticals.
2020-06-26 17:15:12 +10:00
Michael Gratton
16a25870f4 Geary.Util.Logging: Avoid logging any destroyed loggable objects
Extends the fix for commit 8c43288b to all logging parents as well. Use
a weak ref so we don't try to ref loggable objects that are already
destroyed.

Fixes #875
2020-06-26 17:14:12 +10:00
Michael Gratton
b7076188a0 Geary.Imap.FolderSession: Fix critical with empty preview buffers
Check preview header and body buffers are not empty before attempting
to extract a preview from them.

Fixes #865 (or at least replaces the crit with a warning)
2020-06-25 20:39:13 +10:00
Yuri Chornoivan
2d1ed8df09 Update Ukrainian translation 2020-06-25 06:11:10 +00:00
Michael Gratton
164c34e32a ConversationListView: Fix critical updating selection without a model
Fixes #802
2020-06-25 15:52:55 +10:00
Michael Gratton
e3cd1ca64c Merge branch 'cherry-pick-b6907da0' into 'mainline'
Merge branch 'Vanadiae-gnome-3-36-patch-73276' into 'mainline'

See merge request GNOME/geary!524
2020-06-25 02:39:26 +00:00
Michael Gratton
bd0f154fa3 Merge branch 'mjog/discourse-migration' into 'mainline'
Discourse migration

See merge request GNOME/geary!522
2020-06-25 02:08:58 +00:00
Michael Gratton
afcefc32b4 Merge branch 'Vanadiae-gnome-3-36-patch-73276' into 'gnome-3-36'
help: stop making geary icon translatable

See merge request GNOME/geary!519

(cherry picked from commit b6907da0d42778584ba92c413631e65f8badb66b)

62499bdf help: stop making geary icon translatable
2020-06-25 02:06:27 +00:00
Michael Gratton
18993401af Merge branch 'mjog/vala-async-param-assert-fixes' into 'mainline'
Geary.RFC822.Message: Fix some missing nullable annotations

See merge request GNOME/geary!523
2020-06-25 01:15:38 +00:00
Michael Gratton
ea8778cf62 Geary.RFC822.Message: Fix some missing nullable annotations
Now that vala is assert-checking params on async methods
(GNOME/vala#1005), fix a few places where they turn up problems in the
engine.
2020-06-25 10:32:02 +10:00
Michael Gratton
00f355648d help: Rework support and bug reporting text
Prefer referring to getting support rather than bug reporting. Add a
section describing how to get support vs reporting bugs. Streamline the
contributing page.
2020-06-24 23:06:16 +10:00
Michael Gratton
cae09a0138 README.md, CONTRIBUTING.md: Mention discourse & update for consistency 2020-06-24 23:02:46 +10:00
Michael Gratton
bee0d2d39d README: Removed to reduce duplication
Gitlab uses `README.md` version anyway, so there's no point keeping both
around.
2020-06-24 23:00:47 +10:00
Thibault Martin
5606c47296 Update French translation
(cherry picked from commit 95b8de25463cf99e625bbae3242135e2c99c7859)
2020-06-19 19:51:23 +00:00
Federico Bruni
58f3fc6bd1 Update Italian translation 2020-05-31 13:52:26 +00:00
Daniel Șerbănescu
10e0d04f18 Update Romanian translation 2020-05-29 07:50:30 +00:00
Chris Heywood
971d40f576 Merge branch 'mainline' into remove-old-msgs-beyond-storage-pref 2020-05-29 17:00:18 +10:00
Chris Heywood
b080f8a49e Don't avoid scheduling a second set of background idle GC work
This only happens once a day
2020-05-29 16:51:27 +10:00
Yuri Chornoivan
2e707bc51a Update Ukrainian translation 2020-05-26 18:51:58 +00:00
Piotr Drąg
45308a6f9d Update Polish translation 2020-05-24 12:33:37 +02:00
Kukuh Syafaat
bf7ec700ca Update Indonesian translation 2020-05-22 03:56:38 +00:00
Chris Heywood
95c68710d5 Simplified GC class naming 2020-05-18 18:04:22 +10:00
Chris Heywood
2049d7aa6b Move queueing of idle garbage collection to calling method 2020-05-18 17:57:13 +10:00
Michael Gratton
7580ce49d8 Merge branch 'libytnef-fix-invalid-alloc-size-new-abi' into 'mainline'
libytnef: properly initialize struct

See merge request GNOME/geary!509
2020-05-18 01:52:03 +00:00
Michael Gratton
edb4e9c1bc Merge branch 'update-help' into 'mainline'
help: Update composer docs

See merge request GNOME/geary!496
2020-05-18 01:47:55 +00:00
Michael Gratton
86ba2d5545 Merge branch 'patch-1' into 'mainline'
Fix minor typo: read -> ready

See merge request GNOME/geary!516
2020-05-18 01:43:32 +00:00
Rafael Fontenelle
a6e1516b84 Update Brazilian Portuguese translation 2020-05-18 00:52:12 +00:00
Piotr Drąg
6d7de5739a Update Polish translation 2020-05-17 11:16:13 +02:00
Chris Heywood
71262f0e79 Merge branch 'mainline' into remove-old-msgs-beyond-storage-pref 2020-05-17 12:03:30 +10:00
Chris Heywood
a855359964 Switch monitor of background message cleanup to an AccountOperation 2020-05-17 12:00:19 +10:00
Yuri Chornoivan
9f6484ea59 Update Ukrainian translation 2020-05-16 21:56:29 +00:00
Yuri Chornoivan
4287d0bd8d Update Ukrainian translation 2020-05-16 21:01:26 +00:00
Yuri Chornoivan
2a5df0ec8a Fix minor typo: read -> ready 2020-05-16 19:57:13 +00:00