From e0612d7f0fb1961ec10282d19374d52eec4fcda3 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 2 Feb 2003 15:13:52 +0000 Subject: [PATCH] Added forced split to flow reports --- mbfido/areamgr.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mbfido/areamgr.c b/mbfido/areamgr.c index 67df61a6..f86381ae 100644 --- a/mbfido/areamgr.c +++ b/mbfido/areamgr.c @@ -451,6 +451,13 @@ void A_Flow(faddr *t, char *replyid, int Notify) plm += msgs.Posted.month[lmonth]; plw += msgs.Posted.lweek; plt += msgs.Posted.total; + 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); }