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 or (eq .Reason "subscribe_noperm") (eq .Reason "subscribe_already") }} Unable to subscribe to {{.List.Address}}
 8{{else if eq .Reason "post_noperm"}} Unable to post a new thread to {{.List.Address}}
 9{{else if or (eq .Reason "reply_noperm") (eq .Reason "reply_to_none") }} Unable to reply to {{.List.Address}}
10{{end}}
11Hi!
12
13We got an email asking to {{if or (eq .Reason "subscribe_noperm") (eq .Reason "subscribe_already")}}subscribe{{else if eq .Reason "post_noperm"}}post{{else if or (eq .Reason "reply_noperm") (eq .Reason "reply_to_none") }}reply{{end}} to the {{.List.Address}} mailing list.
14{{if eq .Reason "subscribe_noperm"}}
15However, it looks like you have no permission to subscribe.
16{{else if eq .Reason "subscribe_already"}}
17However, it looks like you have already subscribed.
18{{else if eq .Reason "post_noperm"}}
19However, it looks like you have no permission to post new threads.
20{{else if eq .Reason "reply_noperm"}}
21However, it looks like you have no permission to reply.
22{{else if eq .Reason "reply_to_none"}}
23However, the message you replied to doesn't seem to exist.
24{{end}}