Correct subscribe/unsubscribe URLs
j3s j3s@c3f.net
Sun, 17 Nov 2019 12:29:05 -0600
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
main.go
→
main.go
@@ -369,8 +369,8 @@ newEmail.Headers["Precedence"] = []string{"list"}
newEmail.Headers["List-Id"] = []string{"<" + l.Id + ">"} newEmail.Headers["List-Post"] = []string{"<mailto:" + l.Address + ">"} newEmail.Headers["List-Help"] = []string{"<mailto:" + l.Address + "?subject=help>"} - newEmail.Headers["List-Subscribe"] = []string{"<mailto:" + gConfig.CommandAddress + "?subject=subscribe>"} - newEmail.Headers["List-Unsubscribe"] = []string{"<mailto:" + gConfig.CommandAddress + "?subject=unsubscribe>"} + newEmail.Headers["List-Subscribe"] = []string{"<mailto:" + gConfig.CommandAddress + "?subject=subscribe%20" + l.Id + ">"} + newEmail.Headers["List-Unsubscribe"] = []string{"<mailto:" + gConfig.CommandAddress + "?subject=unsubscribe%20" + l.Id + ">"} newEmail.Headers["List-Archive"] = []string{"<" + l.Archive + ">"} newEmail.Headers["List-Owner"] = []string{"<" + l.Owner + ">"} return newEmail