1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2026-03-26 19:07:58 +01:00
aerc/config
Robin Jarry 9e77103592 notmuch: simplify source URL and use automatic discovery
Replace the explicit database path and config file in the source URL
with automatic discovery via libnotmuch (environment variables
NOTMUCH_CONFIG, NOTMUCH_DATABASE, NOTMUCH_PROFILE and XDG conventions).
The source URL hostname is now interpreted as an optional profile name:

    source = notmuch://
    source = notmuch://work

Replace the maildir-store path option with an enable-maildir boolean
(default: true). The maildir root is now always obtained from the
notmuch API via notmuch_config_get(NOTMUCH_CONFIG_MAIL_ROOT) instead
of being specified manually.

Deprecation warnings are emitted when old-style source URLs with
database paths or the maildir-store option are detected in
accounts.conf. Legacy database paths are identified by checking if
the URL hostname+path resolves to an existing file or directory on
disk; if it does not exist, it is treated as a profile name.

The account wizard no longer shells out to "notmuch config get" to
pre-fill the database path. The server field now accepts an optional
profile name instead.

Remove dead code from lib/notmuch/ related to database and config paths.

Implements: https://todo.sr.ht/~rjarry/aerc/325
Changelog-changed: The notmuch maildir-store option has been replaced
 by enable-maildir (default: true). The maildir root is always obtained
 from the notmuch database configuration.
Changelog-changed: The notmuch source URL no longer accepts an explicit
 database path or config query parameter. Database and configuration
 are now discovered automatically. An optional profile name can be
 specified as the URL hostname.
Changelog-deprecated: The notmuch maildir-store option and explicit
 database paths in the source URL now emit deprecation warnings.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: septante <septante@memeware.net>
Acked-by: septante <septante@memeware.net>
2026-03-07 21:39:01 +01:00
..
accounts.conf Copy sent emails to the Sent folder 2019-05-15 19:41:21 -04:00
accounts.go notmuch: simplify source URL and use automatic discovery 2026-03-07 21:39:01 +01:00
aerc.conf ui: allow centering the message viewer and composer 2026-02-10 11:11:33 +01:00
binds.conf dirtree: add toggle-folder command 2026-03-07 21:15:56 +01:00
binds.go wizard: enable c-x key binding to enter command mode 2026-02-09 14:48:43 +01:00
binds_test.go binds: fix format of special keys 2025-01-24 09:28:09 +01:00
cmds.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
columns.go config: remove deprecated settings 2024-01-08 00:07:51 +01:00
compose.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
config.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
converters.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
filters.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
general.go config: create temporary-directory if it does not exist 2025-11-02 18:01:13 +01:00
hooks.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
openers.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
parse.go treewide: run go modernize 2025-12-20 18:06:30 +01:00
reload.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
statusline.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
style.go viewer: add support for special headers styling 2026-02-13 09:08:31 +01:00
style_test.go style: add back support for valid header patterns 2025-01-16 20:55:16 +01:00
templates.go templates: add missing methods to TemplateData interface 2026-01-07 11:10:49 +01:00
ui.go ui: allow centering the message viewer and composer 2026-02-10 11:11:33 +01:00
viewer.go viewer: add html-inline-images option 2025-12-04 13:52:37 +01:00