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/
______________________________________________________________________
- 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
processed by mailer/tosser/tracker according to the attribute
intension.

View File

@ -386,7 +386,7 @@ void JamArea::save_message(int __mode, gmsg* __msg, JamHdr& __hdr) {
throw_release(_subfield);
// 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.modcounter++;
lseekset(data->fhjhr, 0);