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}}+confirm <{{addrWithAction .List.Address "confirm"}}>
 4To: {{.InHeader.Get "From"}}
 5Reply-To: {{addrWithAction .List.Address "confirm"}}
 6{{$msgId := .InHeader | messageId}}{{if $msgId}}In-Reply-To: <{{$msgId}}>
 7References: <{{$msgId}}>
 8{{end}}Subject: Confirm {{.Token}}
 9
10Hi!
11{{if eq .RequestType "subscribe"}}
12Somebody (and we hope it was you) has requested that your email address
13{{.InHeader.Get "From"}} be added to the list. This means every time a post is sent to
14the list, you will receive a copy of it.
15{{else if eq .RequestType "unsubscribe"}}
16Somebody (and we hope it was you) has requested that the email address
17{{.InHeader.Get "From"}} be removed from the list.
18{{end}}
19To confirm you want to do this, simply reply 
20to this message, keeping the Subject: header intact.
21
22Note that simply sending a reply to this message should work from 
23most mail readers, since that usually leaves the Subject: line in the 
24right form (additional "Re:" text in the Subject: is okay).
25
26After doing so, you should receive a reply informing you that the operation
27succeeded.
28
29If you do not want to do this, simply ignore this message.
30