Added limit for mailerhistory lines in web stats

This commit is contained in:
Michiel Broek 2005-08-10 19:48:48 +00:00
parent 84dc5e42fd
commit 5485d994d0
4 changed files with 13 additions and 11 deletions

View File

@ -5,6 +5,7 @@ v0.71.3 13-Jun-2005
upgrade:
Check mbsetup 7.n.3.14 and 7.n.3.15 settings.
You may limit the mailhistory.html by setting 1.15.8
mbselib.a:
Added a function to clean subject lines from garbage, trailing
@ -28,10 +29,13 @@ v0.71.3 13-Jun-2005
Added subject line clean in several places.
When message areas are autocreated, golded.inc and msg.txt are
recreated for the external editors.
The web stats can now limit the size of mailhistory.html
mbsetup:
Added setup switches per node to disable PLZ or GZ and BZ2
compression protocols with binkp.
Added setup entry 1.15.8 to set a limit on the size of the
mailer history html page.
v0.71.2 16-Jan-2005 - 13-Jun-2005

5
TODO
View File

@ -118,11 +118,6 @@ mbfido:
N: Someday make retoss from bad possible (volonteers?).
N: When creating mailhistory.html if a bbs name contains < and > the
characters are not converted to html entinities.
N: Make mailhistory.html a lot shorter, maybe day or week versions.
mbcico:
L: Implement binkp option ND.

View File

@ -14,7 +14,7 @@
</HEAD>
<BODY>
<BLOCKQUOTE>
<div align="right"><h5>Last update 20-Apr-2005</h5></div>
<div align="right"><h5>Last update 10-Aug-2005</h5></div>
<div align="center"><H1>MBSE BBS Setup - Global Setup</H1></div>
In this setup you can edit all global settings for MBSE BBS. All sections will
@ -419,6 +419,7 @@ there is no user authentication yet available.
<strong>Author name </strong>The author name you want in the HTTP headers.
<strong>Convert command </strong>The graphics convert command. (ImageMagick needed).
<strong>Files/page </strong>The number of files to display per web page.
<strong>Hist. limit </strong>Limit the number of mailhistory.html lines, 0 is unlimited.
</pre>
<P>

View File

@ -198,9 +198,9 @@ void MakeStat(void)
MacroVars("b", "d", Area);
html_massage(msgs.Name, name);
MacroVars("c", "s", name);
html_massage(fgroup.Tag, name);
html_massage(msgs.Tag, name);
MacroVars("d", "s", name);
html_massage(fgroup.Group, name);
html_massage(msgs.Group, name);
MacroVars("e", "s", name);
MacroVars("f", "s", adate(msgs.LastRcvd));
MacroVars("g", "d", msgs.Received.lweek);
@ -377,11 +377,11 @@ void MakeStat(void)
hist.aka.domain[0] = '\0';
MacroVars("c", "s", hist.aka.zone ? aka2str(hist.aka):"&nbsp;");
html_massage(hist.system_name, name);
MacroVars("d", "s", name);
MacroVars("d", "s", strlen(name) ? name:"&nbsp;");
html_massage(hist.sysop, name);
MacroVars("e", "s", name);
MacroVars("e", "s", strlen(name) ? name:"&nbsp;");
html_massage(hist.location, name);
MacroVars("f", "s", name);
MacroVars("f", "s", strlen(name) ? name:"&nbsp;");
MacroVars("g", "s", strlen(hist.tty) ? hist.tty:"&nbsp;");
MacroVars("h", "s", adate(hist.online));
MacroVars("i", "s", t_elapsed(hist.online, hist.offline));
@ -390,6 +390,8 @@ void MakeStat(void)
MacroVars("l", "d", hist.cost);
MacroVars("m", "s", hist.inbound ? "In":"Out");
MacroRead(fi, fw);
if (CFG.www_mailerlines && ((Total - i + 1) >= CFG.www_mailerlines))
break;
}
closepage(fw, (char *)"mailhistory", fi);
} else {