From 4b99b28a9765db711163cb2c5819a50740bb9b4e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 10 May 2024 17:38:19 +0800 Subject: [PATCH] 1 --- server/mailserver/mail/mailmgr.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/mailserver/mail/mailmgr.go b/server/mailserver/mail/mailmgr.go index 51555c24..17ddace3 100644 --- a/server/mailserver/mail/mailmgr.go +++ b/server/mailserver/mail/mailmgr.go @@ -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() }) }