The new messageID generated with #76 is a bit too long by default. This patch reduces the length

This commit is contained in:
Winni Neessen 2022-10-26 15:48:48 +02:00
parent dd0e3a9a48
commit d327ca73e4
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

2
msg.go
View file

@ -382,7 +382,7 @@ func (m *Msg) SetMessageID() {
}
rn, _ := randNum(100000000)
rm, _ := randNum(10000)
rs, _ := randomStringSecure(25)
rs, _ := randomStringSecure(17)
pid := os.Getpid() * rm
mid := fmt.Sprintf("%d.%d%d.%s@%s", pid, rn, rm, rs, hn)
m.SetMessageIDWithValue(mid)