~sircmpwn/aerc

3c14c2cb3494766d39e22c852a6a8f8b965dea92 — Shaw Vrana 13 days ago 889d89b
Reapply 'Fix nil pointer deref on Envelope'

The commit bf16ccde484ce3b6d2a4b843e7ebc04a9b2a957d appears to have been
unintentionally dropped by commit 905cb9dfd3ef197bb4b59039a1be76ce2c8e3099
(Implement style configuration).
1 files changed, 6 insertions(+), 3 deletions(-)

M widgets/msglist.go
M widgets/msglist.go => widgets/msglist.go +6 -3
@@ 102,11 102,14 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
			continue
		}

		uiConfig := ml.conf.GetUiConfig(map[config.ContextType]string{
		confParams := map[config.ContextType]string{
			config.UI_CONTEXT_ACCOUNT: ml.aerc.SelectedAccount().AccountConfig().Name,
			config.UI_CONTEXT_FOLDER:  ml.aerc.SelectedAccount().Directories().Selected(),
			config.UI_CONTEXT_SUBJECT: msg.Envelope.Subject,
		})
		}
		if msg.Envelope != nil {
			confParams[config.UI_CONTEXT_SUBJECT] = msg.Envelope.Subject
		}
		uiConfig := ml.conf.GetUiConfig(confParams)

		msg_styles := []config.StyleObject{}
		// unread message