Keine Postfaecher eingetragen.
`
- }
+func renderTargetEmailBoxPage(w http.ResponseWriter, accounts []Account) {
+ w.Header().Set("Content-Type", "text/html; charset=utf-8")
+ fmt.Fprintf(w, ``)
- for _, value := range values {
- fmt.Fprintf(&b, `
%s
`, html.EscapeString(value))
+ b.WriteString(`
Quell-Postfach
`)
+ if len(sourceAccounts) == 0 {
+ b.WriteString(`
Keine Quell-Postfaecher eingetragen.
`)
+ return b.String()
+ }
+ for _, a := range sourceAccounts {
+ fmt.Fprintf(&b, `
%s
`, html.EscapeString(a.SrcUser))
+ fmt.Fprintf(&b, `
%s%s
`,
+ html.EscapeString(strings.ToUpper(accountProto(a))), html.EscapeString(a.SrcHost))
}
- b.WriteString(`
`)
return b.String()
}
+func renderEmailBoxTargetPane(accounts []Account) string {
+ var b strings.Builder
+ b.WriteString(`Keine Ziel-Postfaecher eingetragen.
`)
+ return b.String()
+ }
+ for _, target := range targets {
+ fmt.Fprintf(&b, `