Assign list ID based on address
j3s j3s@c3f.net
Wed, 20 Nov 2019 23:36:00 -0600
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
main.go
→
main.go
@@ -362,7 +362,7 @@ newEmail.Headers["Return-Path"] = []string{"bounce-" + l.Address}
newEmail.Headers["Date"] = e.Headers["Date"] newEmail.Headers["Reply-To"] = []string{e.From} newEmail.Headers["Precedence"] = []string{"list"} - newEmail.Headers["List-Id"] = []string{"<" + l.Id + ">"} + newEmail.Headers["List-Id"] = []string{"<" + strings.Replace(l.Address, "@", ".", -1) + ">"} 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%20" + l.Id + ">"}