From 1e069e98c98f07e06e4994f22aa9f55d34de29be Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 10 Sep 2023 22:04:20 +0200 Subject: themes/sourcehut: fix sourcehut theme With the newer version of `go-imap` some properties got renamed and sourcehut theme stop working. --- themes/sourcehut/mailbox.html | 6 +++--- themes/sourcehut/message.html | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'themes/sourcehut') diff --git a/themes/sourcehut/mailbox.html b/themes/sourcehut/mailbox.html index e4bada5..e775b98 100644 --- a/themes/sourcehut/mailbox.html +++ b/themes/sourcehut/mailbox.html @@ -60,10 +60,10 @@ {{ range .Envelope.From }} - {{ if .PersonalName }} - {{ .PersonalName }} + {{ if .Name }} + {{ .Name }} {{ else }} - {{ .MailboxName }}@{{ .HostName }} + {{ .Addr }} {{ end }} {{ end }} diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html index 077d33c..f107e81 100644 --- a/themes/sourcehut/message.html +++ b/themes/sourcehut/message.html @@ -78,8 +78,8 @@ {{define "addr-list"}} {{range $i, $addr := .}} {{- if $i}},{{end}} - {{.PersonalName}} - <{{.Address}}> + {{.Name}} + <{{.Addr}}> {{- end}} {{end}} @@ -125,7 +125,7 @@
Move to another mailbox
- +
+

Are you sure?

@@ -154,7 +154,7 @@
Edit flags - +
{{range $name, $has := .Flags}} {{if ismutableflag $name}} -- cgit v1.2.3-59-g8ed1b