Commit graph

4516 commits

Author SHA1 Message Date
Cédric Bellegarde
41394673d7 engine: Always use a TimeoutManager to check network is reachable 2023-02-28 20:22:37 +00:00
Thomas Jollans
e092be8f3a imap-deserializer: Allow ']' in atoms (e.g. folder names)
This permits IMAP folders to have names featuring square brackets. For
example, AirMail for iOS creates a folder called "[Airmail]", which
Geary should be able to handle.

Fixes #1169.
2023-02-28 17:44:35 +00:00
Cédric Bellegarde
80aa742686 tests: Disable sandboxing for now
https://bugs.webkit.org/show_bug.cgi?id=213174
2023-02-23 15:28:27 +00:00
Cédric Bellegarde
7eadb8396f Components.WebView: Enable WebKitGTK sandboxing again
https://bugs.webkit.org/show_bug.cgi?id=202363 fixed

Fix #1426
2023-02-10 15:41:49 +00:00
Daniel Y
e9f3ac5276 Gray out find in conversation button 2023-02-05 18:20:31 +00:00
Cédric Bellegarde
6416c2f6d1 engine: Remove workaround for GNOME/glib#1872 2023-02-05 15:18:44 +00:00
Cédric Bellegarde
71865d6529 engine: Add support for logind suspend/resume signal 2023-02-05 14:14:07 +00:00
Cédric Bellegarde
62ed7654a7 client: Fix account editor width on small screens 2022-12-12 23:38:57 +01:00
Cédric Bellegarde
bb19174921 client: Less secure apps work with 2FA enabled. #1422 2022-10-10 17:39:09 +02:00
Cédric Bellegarde
81bd51bdbc client: Fix setting service provider 2022-09-26 13:26:54 +02:00
Cédric Bellegarde
1a7a3a987a engine: Cancel any remote folders update before marking a message
When marking a message, a race condition can happen:
- A remote folders update is already running
- We mark the message locally and replay it remotely
- The previous remote update result restores invalid values locally
2022-09-26 11:03:13 +02:00
Cédric Bellegarde
f45afac091 components: Rework adapative layout by removing HdySwipeGroup
HdySwipeGroup is deprecated since libhandy 1.4.

- Split headerbar into 3 components
- Remove HdySwipeGroups/GtkSizeGroups used for syncing headerbar with content.
2022-09-26 08:59:44 +00:00
Richard Adenling
efca9615a6 engine: Fix flag being mistaken for a response code
The parser would think the flag was a response code if the flag started
with a '[' character. Flags like these are sometimes returned by Gmail
which broke fetching emails from Gmail.

This commit checks if the parser is already parsing flags and if so
treats any starting '[' characters as part of the flag string.
2022-09-20 18:32:37 +02:00
Cédric Bellegarde
394895afdc client: remove unused mark_manual_* methods
See 8e9f00295e
2022-09-20 13:55:42 +02:00
Cédric Bellegarde
864a3135e3 components: Rework Folder Popover
- Do not use tags for service providers not using this metaphor
- Do not show folders with a dedicated button: Trash, Archive, ...
- Do not show folders as an IMAP path but as a human readable path (>INBOX>Folder vs Boîte de reception/Folder)
2022-09-20 05:37:14 +00:00
Cédric Bellegarde
8348f2ef19 engine: Mark all email UIDs in remote replay
Local replay and remote replay were marking email based on email identifier.

Works locally, but remotely we need to work on all email UIDs.

Fix #364
2022-09-20 05:15:55 +00:00
Cédric Bellegarde
ddb8a273ce treewide: Removed unused Yahoo imap engine
This is not useful now we have autoconfig support
2022-09-07 12:10:06 +00:00
Cédric Bellegarde
a14f5d4799 client: accounts: Add support for Thunderbird autoconfig
- Auto detect server settings
- Rework accounts editor add panel

Fix #1390
Fix #1350
2022-09-07 12:10:06 +00:00
Cédric Bellegarde
14d5a4f510 client: Fix adding a new infobar to Components.InfoBarStack
- Previous code was not removing current widget on unrevealing
- Connect reveal signal on time, not for every infobar
- Remove allocation management as it does not seem useful now
2022-09-04 16:10:47 +00:00
Cédric Bellegarde
cce6ed1593 plugin: Only enable mail merge action for templates
Fix #1410
2022-09-04 16:10:47 +00:00
Cédric Bellegarde
7aa950deed client: Fix handling of 'mark messages' menu
- Replace unused show-mark-menu action
- Remove compact actions from conversation actions (not useful as only response
  buttons are enabled)
- Do not update trash button for compact actions (same reason as above)
- Add missing this for accessing some properties (Geary Vala
  Coding Conventions)
2022-08-27 19:05:02 +00:00
Cédric Bellegarde
31f79816e8 client: Add support for Background portal 2022-08-25 21:50:28 +00:00
Cédric Bellegarde
522cd43fe7 client: Remove deprecated hidden option 2022-08-25 21:50:28 +00:00
Cédric Bellegarde
786a9df536 client: startup notifications is a freedesktop.org concept
Do not use the same wording for our background mode
2022-08-25 21:50:28 +00:00
Cédric Bellegarde
f910b82a63 client: Running as a service does not mean running in the background indefinitely
This is wrong as Geary is mostly started via D-Bus activation: it will never quit.

Ignore --hidden option, it will be removed soon.

Fix #728
2022-08-25 21:50:28 +00:00
Cédric Bellegarde
253795b5d4 engine: If email not found in outbox, do not queue it again. Prevent an infinite loop. Fix #781 2022-08-18 17:43:07 +02:00
Cédric Bellegarde
29fd38728e engine: TlsCertificateFlags.VALIDATE_ALL is the default value
And setting another value is deprecated.
2022-07-23 19:44:37 +02:00
Cédric Bellegarde
a2e59b92a3 engine: Vala disallows using nullabe enum value as real GObject property 2022-07-23 19:08:43 +02:00
Michael Gratton
42fa8c9f0a engine: Fix GLib.Timezone deprecation warning in GLib 2.68 2022-07-15 23:49:19 +02:00
Maximiliano Sandoval R
fa99f13900
meson: Remove uses of get_pkgconfig_variable
It will throw warnings on 0.56 or newer.
2022-07-15 13:32:30 +02:00
Maximiliano Sandoval R
080ead9775 meson: Update to 0.59 2022-07-15 11:18:49 +00:00
Cédric Bellegarde
fcece2a649 client: composer: Remove workaround for GTK merge request !939 2022-07-15 10:47:31 +00:00
Alexander Mikhaylenko
3050e7809e editor: Set capture phase for the gesture 2022-07-15 01:29:08 +04:00
Alexander Mikhaylenko
b32adf7cd9 Fix touch input in composer
- button_*_event signals don't handle touch and are pointer-only; use a
  GtkGesture. Remove the button_release_event hack in ComposerWebView.

- The row's focus-on-click steals clicks and uses them to focus the row,
  stop doing that. Reimplement it for the webview manually.
2022-07-14 18:24:41 +04:00
Cédric Bellegarde
ef41ed374d Geary.RFC822.Message: Simplier regex for dkim/dmarc match
Previous regex was working with Google, Microsoft and OpenDKIM but fails
with Rspamd.

Using a simplier regex is safe enough.
2022-07-08 23:08:24 +02:00
Cédric Bellegarde
9f893adc47 client: Add more options for displaying images from messages
- An application setting allowing to always trust images
- An option to trust images from an email domain
- Replaces buttons by a menu in infobar
2022-07-08 22:02:18 +02:00
Cédric Bellegarde
bc4fe28a25 Geary.RFC822.Message: Add support for Authentication-Results field 2022-07-08 21:32:50 +02:00
Michael Catanzaro
c1cbd6e111 util-logging: fix fatal warnings logic
If fatal criticals are enabled, we should not crash on a simple warning,
because warnings are normal and less serious than criticals.

If fatal warnings are enabled, we should definitely crash on criticals,
because criticals indicate undefined behavior and are more serious than
warnings.
2022-07-07 22:09:55 +00:00
Cédric Bellegarde
7c0ad633a6 client: conversation-viewer: Give more room to composer in embedded mode 2022-07-06 00:15:57 +02:00
Cédric Bellegarde
51a82881b5 client: accounts: Do not fallback to previous id
This makes valac locked on build
2022-07-05 23:19:14 +02:00
Cédric Bellegarde
a405a55fb4 build: Remove missing imap-engine-outlook-drafts-folder.vala 2022-07-05 22:26:24 +02:00
Cédric Bellegarde
d9afe29b1c Merge branch 'goa_fix' into 'mainline'
client: accounts: Use new GNOME Settings app-id

Closes #1371

See merge request GNOME/geary!734
2022-07-05 19:51:02 +00:00
Cédric Bellegarde
1c5f021105 Merge branch '1387' into 'mainline'
engine: api: AccountInformation: Do not convert string to human-readable if looks like an ip

Closes #1387

See merge request GNOME/geary!732
2022-07-05 19:47:13 +00:00
Cédric Bellegarde
6bce01b81b Merge branch 'drafts_outlook' into 'mainline'
engine: imap-engine: Outlook now supports UIDPLUS

Closes #1382

See merge request GNOME/geary!733
2022-07-05 19:42:51 +00:00
Cédric Bellegarde
71c3100eec client: accounts: Use new GNOME Settings app-id
Fix #1371
2022-07-02 22:50:20 +02:00
Cédric Bellegarde
5f3b3ccd3f engine: imap-engine: Outlook now supports UIDPLUS
* OK The Microsoft Exchange IMAP4 service is ready. [QQBTADQAUAAxADkANQBDAEEAMAAwADEANwAuAEUAVQBSAFAAMQA5ADUALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
A001 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 LOGINDISABLED STARTTLS SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
A001 OK CAPABILITY completed.

Fix #1382
2022-07-02 17:46:31 +02:00
Cédric Bellegarde
e7e4be09bc engine: api: AccountInformation: Do not convert string to human-readable if looks like an ip
Fix #1387
2022-06-30 22:21:48 +02:00
Cédric Bellegarde
b96038ea3e client: match substrings while autocompleting contacts. Fix #1144. Fix #984. 2022-06-30 08:08:07 +02:00
Rico Tzschichholz
0f75e7a84a Util.Cache.Lru: Workaround missing generic type argument 2022-02-06 17:49:00 +01:00
Rico Tzschichholz
9bd4c82952 Fix accessibility issues with initializer of constants 2021-11-30 15:31:31 +01:00