From 4b6129ddc0ae7f7b1af8a227cd7b2ab1ac480b9f Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Wed, 26 Mar 2003 16:18:05 +0000 Subject: [PATCH] Fix JAM active messages counter on restoring deleted messages --- docs/notework.txt | 3 +++ goldlib/gmb3/gmojamm4.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/notework.txt b/docs/notework.txt index 08dc5f8..c19ceb7 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -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. diff --git a/goldlib/gmb3/gmojamm4.cpp b/goldlib/gmb3/gmojamm4.cpp index 47e79d1..77fd5bb 100644 --- a/goldlib/gmb3/gmojamm4.cpp +++ b/goldlib/gmb3/gmojamm4.cpp @@ -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);