aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msglist.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-03-07 00:29:20 +0100
committerRobin Jarry <robin@jarry.cc>2023-03-31 21:02:26 +0200
commitaec90650f63ff0195599dae817016db137964bcb (patch)
tree6510fb8b209819a71e3dcf3d21e48c7d382015b7 /widgets/msglist.go
parent2f46f64b0b0b93e99b4754a566c84a08d4563078 (diff)
downloadaerc-aec90650f63ff0195599dae817016db137964bcb.tar.gz
config: remove subject contextual ui sections
We have been wanting to remove this for a while now. The only use case is styleset and changing the whole styleset based on an email subject does not make much sense. The same feature can be achieve with dynamic msglist* styles based on any email header value in the stylesets now. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'widgets/msglist.go')
-rw-r--r--widgets/msglist.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index 0937b786..161dcadc 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -222,7 +222,7 @@ func addMessage(
msg := store.Messages[uid]
cells := make([]string, len(table.Columns))
- params := messageRowParams{uid: uid}
+ params := messageRowParams{uid: uid, uiConfig: uiConfig}
if msg == nil || msg.Envelope == nil {
params.needsHeaders = true
@@ -267,9 +267,6 @@ func addMessage(
}
}
- // TODO deprecate subject contextual UIs? Only related setting is
- // styleset, should implement a better per-message styling method
- params.uiConfig = uiConfig.ForSubject(msg.Envelope.Subject)
params.headers = msg.RFC822Headers
return table.AddRow(cells, params)