From e2d70ba6cab2e18063bd5b457cd861700cbbc9e7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 17 Dec 2019 13:02:38 +0100 Subject: Linkify address lists --- plugins/base/template.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'plugins/base/template.go') diff --git a/plugins/base/template.go b/plugins/base/template.go index 714ca3c..d867ff3 100644 --- a/plugins/base/template.go +++ b/plugins/base/template.go @@ -3,7 +3,6 @@ package koushinbase import ( "html/template" "net/url" - "strings" "time" "github.com/emersion/go-imap" @@ -16,13 +15,6 @@ var templateFuncs = template.FuncMap{ "pathescape": func(s string) string { return url.PathEscape(s) }, - "formataddrlist": func(addrs []*imap.Address) string { - l := make([]string, len(addrs)) - for i, addr := range addrs { - l[i] = addr.PersonalName + " <" + addr.Address() + ">" - } - return strings.Join(l, ", ") - }, "formatdate": func(t time.Time) string { return t.Format("Mon Jan 02 15:04") }, -- cgit v1.2.3