This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
3
3
[PATCH alps] themes/alps: handle messages without text parts
From: Konstantinos Koukas <contact@koukas.org>
Fixes: https://todo.sr.ht/~migadu/alps/165
---
themes/alps/message.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/themes/alps/message.html b/themes/alps/message.html
index ee5aa02..93cc5c9 100644
--- a/themes/alps/message.html
+++ b/themes/alps/message.html
@@ -185,6 +185,7 @@
{{ $text := .Message.TextPart }}
<div class="tabs">
{{/* https://github.com/golang/go/issues/31103 */}}
+ {{ if $text }}
<a
href="?part={{$text.PathString}}"
{{ if eq $text.PathString .Part.PathString }}
@@ -197,7 +198,7 @@
Plain text
{{ end }}
</a>
- {{ if and $html $text }}
+ {{ if $html }}
{{ if ne $html.PathString $text.PathString }}
<a
href="?part={{$html.PathString}}"
@@ -207,6 +208,7 @@
>HTML</a>
{{ end }}
{{ end }}
+ {{ end }}
<a href="{{.Message.URL}}/raw?plain=1">Raw email</a>
</div>
--
2.38.5
[alps/patches/.build.yml] build success
Hm, what if an e-mail has only an HTML part without a text part?
Re: [PATCH alps] themes/alps: handle messages without text parts (re-sending with public cc)