From d838e6ca7d8e5ab24c19ec18143704de2e124669 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Wed, 3 Jul 2002 20:01:33 +0000 Subject: [PATCH] Fixed writing *mail.jam files --- mbsebbs/offline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mbsebbs/offline.c b/mbsebbs/offline.c index 2c80284c..de12664d 100644 --- a/mbsebbs/offline.c +++ b/mbsebbs/offline.c @@ -214,6 +214,7 @@ void Add_Kludges(fidoaddr dest, int IsReply, char *fn) Add_Footkludges(FALSE, newtear); Msg_AddMsg(); + Msg_UnLock(); } @@ -1706,7 +1707,6 @@ void BlueWave_Fetch() sprintf(temp, "%s/%s/%s", CFG.bbs_usersdir, exitinfo.Name, Upr.filename); unlink(temp); i++; - Close_Msgbase(); fseek(mf, - (msgshdr.recsize + msgshdr.syssize), SEEK_CUR); msgs.Posted.total++; msgs.Posted.tweek++; @@ -1726,6 +1726,7 @@ void BlueWave_Fetch() fclose(fp); } } + Msg_Close(); } } else { /* No Write access to area */ @@ -2594,10 +2595,10 @@ void QWK_Fetch() Add_Footkludges(FALSE, NULL); Msg_AddMsg(); + Msg_UnLock(); Syslog('+', "Msg (%ld) to \"%s\", \"%s\", in %s", Msg.Id, Msg.To, Msg.Subject, msgs.QWKname); nPosted++; - Close_Msgbase(); Syslog('m', "Msgbase closed again"); fseek(mf, ((Area -1) * (msgshdr.recsize + msgshdr.syssize)) + msgshdr.hdrsize, SEEK_SET); msgs.Posted.total++; @@ -2618,6 +2619,7 @@ void QWK_Fetch() fclose(fp); } } + Msg_Close(); } } else { Syslog('+', "Can't post messages in area %u", Area);