mlisting

Mailing list service

git clone git://git.lin.moe/go/mlisting.git

 1Content-Type: text/plain; charset="UTF-8"
 2MIME-Version: 1.0
 3From: {{.List.Name}} <{{.List.Address}}>
 4To: {{.InHeader.Get "From"}}
 5{{$msgId := .InHeader | messageId}}{{if $msgId}}In-Reply-To: <{{$msgId}}>
 6References: <{{$msgId}}>
 7{{end}}Subject: {{if eq .RequestType "subscribe"}}Welcome to {{.List.Address}}
 8{{else if eq .RequestType "unsubscribe"}}Goodbye from {{.List.Address}}
 9{{end}}
10{{if eq .RequestType "subscribe"}}
11Your subscription to {{.List.Address}} is confirmed!
12
13To unsubscribe in the future, send an email to this address:
14{{addrWithAction .List.Address "unsubscribe"}}
15{{else if eq .RequestType "unsubscribe"}}
16Thank you for confirming your unsubscribe. You have now been removed from
17the list {{.List.Address}}.
18
19If you wish to re-subscribe, send an email to:
20{{ addrWithAction .List.Address "subscribe"}}
21{{end}}