This commit is contained in:
aozhiwei 2024-05-10 17:38:19 +08:00
parent 251bdb0e54
commit 4b99b28a97

View File

@ -274,6 +274,9 @@ func (this *mailMgr) addMail(m *mail) {
}
}
func (this *mailMgr) updateMail(m *mail) {
}
func (this *mailMgr) addGroup(g *userGroup) {
this.groupHash.Store(g.groupId, g)
}
@ -395,6 +398,13 @@ func (this* mailMgr) procMailUpdate(e *dbEvent) {
if err != nil {
return
}
if ds.Next() {
p := newMail()
p.loadFromDb(ds)
this.updateMail(p)
} else {
panic(fmt.Sprintf("procMailUpdate error:%s", err));
}
e.entry.DelInit()
})
}