From aec90650f63ff0195599dae817016db137964bcb Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Tue, 7 Mar 2023 00:29:20 +0100 Subject: 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 Tested-by: Bence Ferdinandy --- widgets/msglist.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'widgets/msglist.go') 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) -- cgit