Fix JAM active messages counter on restoring deleted messages

This commit is contained in:
Alexander S. Aganichev 2003-03-26 16:18:05 +00:00
parent 6d4938356e
commit 4b6129ddc0
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,9 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/ Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________ ______________________________________________________________________
- Fixed active messages counter for JAM messagebases if message
restored by removing DEL attribute.
! Ignore RRq attribute. We will process only Cfm now: RRq should be ! Ignore RRq attribute. We will process only Cfm now: RRq should be
processed by mailer/tosser/tracker according to the attribute processed by mailer/tosser/tracker according to the attribute
intension. intension.

View File

@ -386,7 +386,7 @@ void JamArea::save_message(int __mode, gmsg* __msg, JamHdr& __hdr) {
throw_release(_subfield); throw_release(_subfield);
// Update the header info // Update the header info
if(__mode & GMSG_NEW) if((__mode & GMSG_NEW) or (was_deleted and not __msg->attr.del()))
data->hdrinfo.activemsgs++; data->hdrinfo.activemsgs++;
data->hdrinfo.modcounter++; data->hdrinfo.modcounter++;
lseekset(data->fhjhr, 0); lseekset(data->fhjhr, 0);