diff options
author | Robin Jarry <robin@jarry.cc> | 2024-06-10 12:57:36 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-06-25 15:28:11 +0200 |
commit | 4e920d1def515f2c6d7da5168e39fd89fb200f63 (patch) | |
tree | 0eb1ff1a5827d5035246561479f0c233e24de32d /config | |
parent | 7f66297c521fca8f9bc17280f0a96874598bde96 (diff) | |
download | aerc-4e920d1def515f2c6d7da5168e39fd89fb200f63.tar.gz |
threadbuilder: allow threading by subject
If no match were found in the References and In-Reply-To headers,
allow threading by looking at subjects.
This behaviour is disabled by default. Add a setting to enable it.
Changelog-added: Allow fallback to threading by subject with
`[ui].threading-by-subject`.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Matěj Cepl <mcepl@cepl.eu>
Diffstat (limited to 'config')
-rw-r--r-- | config/aerc.conf | 7 | ||||
-rw-r--r-- | config/ui.go | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index a7d763d7..4a83625a 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -392,7 +392,6 @@ # Default: 0 #msglist-scroll-offset = 0 -#[ui:account=foo] # # Enable a threaded view of messages. If this is not supported by the backend # (IMAP server or notmuch), threads will be built by the client. @@ -405,6 +404,12 @@ # Default: false #force-client-threads=false +# If no References nor In-Reply-To headers can be matched to build client side +# threads, fallback to similar subjects. +# +# Default: false +#threading-by-subject=false + # Show thread context enables messages which do not match the current query (or # belong to the current mailbox) to be shown for context. These messages can be # styled separately using "msglist_thread_context" in a styleset. This feature diff --git a/config/ui.go b/config/ui.go index 7c7f1869..ee8f7054 100644 --- a/config/ui.go +++ b/config/ui.go @@ -40,6 +40,7 @@ type UIConfig struct { MouseEnabled bool `ini:"mouse-enabled"` ThreadingEnabled bool `ini:"threading-enabled"` ForceClientThreads bool `ini:"force-client-threads"` + ThreadingBySubject bool `ini:"threading-by-subject"` ClientThreadsDelay time.Duration `ini:"client-threads-delay" default:"50ms"` ThreadContext bool `ini:"show-thread-context"` FuzzyComplete bool `ini:"fuzzy-complete"` |