diff --git a/backend/08-viewer.go b/backend/08-viewer.go
index ab12020..886b893 100644
--- a/backend/08-viewer.go
+++ b/backend/08-viewer.go
@@ -97,7 +97,7 @@ func targetSelectHandler(w http.ResponseWriter, r *http.Request) {
func sourceSelectHandler(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
- fmt.Fprint(w, renderInitialSourceSelectPane(`
Nachricht waehlen.
`))
+ fmt.Fprint(w, renderInitialReadPane(`Nachricht waehlen.
`))
}
func forwardHandler(w http.ResponseWriter, r *http.Request) {
@@ -307,12 +307,7 @@ func renderReadPaneWithSource(w http.ResponseWriter, account, folder, targetAcco
}
func renderReadPane(w io.Writer, title, account, folder, targetAccount string, index int, subject, from, date, body string) {
- if subject == "" {
- subject = "(ohne Betreff)"
- }
- fmt.Fprint(w, renderSourcePaneHead(account, folder, targetAccount, index))
- fmt.Fprintf(w, ``,
- html.EscapeString(subject), html.EscapeString(from), html.EscapeString(date), html.EscapeString(body))
+ renderMailboxReadPane(w, title, account, folder, index, subject, from, date, body)
}
func renderTargetPane(account, folder, targetAccount string, index int, raw []byte, note string) string {
@@ -359,14 +354,14 @@ func renderTargetMatch(b *strings.Builder, match forwardedMatch) {
}
func renderInitialTargetPane() string {
- return renderInitialSourceSelectPane(`Nachricht waehlen.
`)
+ return renderInitialReadPane(`Nachricht waehlen.
`)
}
func renderInitialReadPane(body string) string {
if strings.TrimSpace(body) == "" {
body = `Nachricht waehlen.
`
}
- return renderInitialSourceSelectPane(body)
+ return `Vorschau
` + body + `
`
}
func renderInitialSourceSelectPane(body string) string {