1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-11-24 16:50:06 +01:00
aerc/app
Terrance 1dd2508124 config: add contextual viewer configuration
This allows setting viewer options for specific message senders or
subjects via conditional `viewer` blocks in the main configuration file,
similar to contextual UI configuration.  Each block can target the
envelope sender and the From/Subject headers, as either an exact match
with `=` (on the email address for sender/from) or a regex with `~` (on
the full "$name <$email>" string representation).

For example, some senders like to include a useless plain text part in
their alternatives, telling you that your client doesn't support HTML.
The documented example would prefer plain text where present by default,
but switch to the HTML part for such senders.

Signed-off-by: Terrance <git@terrance.allofti.me>
Reviewed-by: Julio B <julio.bacel@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2025-10-30 21:17:44 +01:00
..
account-wizard.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
account.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
aerc.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
app.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
authinfo.go lint: update golangci-lint to 1.61.0 2024-09-20 09:23:36 +02:00
compose.go compose: create temp files in system's state dir 2025-10-30 21:17:44 +01:00
dialog.go aerc: add quake-mode terminal 2024-10-08 12:45:21 +02:00
dirlist.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
dirtree.go account: allow globs in folders-sort 2025-05-07 17:13:23 +02:00
exline.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
getpasswd.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
headerlayout.go widgets: rename package to app 2023-10-10 11:37:56 +02:00
listbox.go listbox: fix crash scrolling within empty selection 2025-10-30 21:10:09 +01:00
msglist.go msglist: make clicking messages work on initial load 2025-09-26 16:54:27 +02:00
msgviewer.go config: add contextual viewer configuration 2025-10-30 21:17:44 +01:00
partswitcher.go config: add contextual viewer configuration 2025-10-30 21:17:44 +01:00
pgpinfo.go lint: update golangci-lint to 1.61.0 2024-09-20 09:23:36 +02:00
providesmessage.go treewide: replace uint32 uids with opaque strings 2024-08-28 12:06:01 +02:00
quake.go aerc: add quake-mode terminal 2024-10-08 12:45:21 +02:00
scrollable.go chore: switch to using stdlib helper functions 2025-08-04 12:47:05 +02:00
selector.go chore: switch to using stdlib helper functions 2025-08-04 12:47:05 +02:00
spinner.go log: move package to lib 2024-02-14 23:04:38 +01:00
status.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
terminal.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00