mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-09 15:32:54 +01:00
The new messageID generated with #76 is a bit too long by default. This patch reduces the length
This commit is contained in:
parent
dd0e3a9a48
commit
d327ca73e4
1 changed files with 1 additions and 1 deletions
2
msg.go
2
msg.go
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue