small pixel drawing of a pufferfish clist

Assign list ID based on address
j3s j3s@c3f.net
Wed, 20 Nov 2019 23:36:00 -0600
commit

26996ace900330f0636b57996e67e1ff08403a5e

parent

6a82ccfe10eaf36d829e5a5765b59a70658fb0ff

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M main.gomain.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 + ">"}