Fixes for handles in mbsebbs, fixes for areamgr listings

This commit is contained in:
Michiel Broek
2003-02-02 15:03:40 +00:00
parent 078a4e9d08
commit 063ee8e631
5 changed files with 49 additions and 12 deletions

View File

@@ -267,6 +267,16 @@ void A_List(faddr *t, char *replyid, int Notify)
fgetpos(fi,&fileptr2);
SubTot++;
Total++;
/*
* Panic message split
*/
if (((ftell(qp) - msgptr) / 1024) >= CFG.new_force) {
MacroVars("Z","d",1);
Syslog('-', " Forced splitting message at %ld bytes", ftell(qp) - msgptr);
CloseMail(qp, t);
qp = SendMgrMail(t, CFG.ct_KeepMgr, FALSE, (char *)"Areamgr", subject, replyid);
msgptr = ftell(qp);
}
}
} else
fseek(mp, msgshdr.syssize, SEEK_CUR);

View File

@@ -252,6 +252,16 @@ void F_List(faddr *t, char *replyid, int Notify)
fgetpos(fi,&fileptr2);
SubTot++;
Total++;
/*
* Panic message split
*/
if (((ftell(qp) - msgptr) / 1024) >= CFG.new_force) {
MacroVars("Z","d",1);
Syslog('-', " Forced splitting message at %ld bytes", ftell(qp) - msgptr);
CloseMail(qp, t);
qp = SendMgrMail(t, CFG.ct_KeepMgr, FALSE, (char *)"Filemgr", subject, replyid);
msgptr = ftell(qp);
}
}
} else
fseek(fp, tichdr.syssize, SEEK_CUR);