Here's the code that I promised to have a variable number of
MaillogTailBytes shown in the log. I followed same concept as was used for
variable wrapping.
Line numbers based on 2.0.1 RC 0.4.31
at line 26839, right below my $savWrap = $MaillogTailWrapColumn; insert:
my $savTailBytes = $MaillogTailBytes;
at line 26844, right below $MaillogTailWrapColumn = $currWrap; insert:
my $currTailBytes;
($currTailBytes) = $qs{tailbytes}=~/(\d+)/;
$currTailBytes = $MaillogTailBytes if ($MaillogTailBytes>0 && (!
$currTailBytes || $currTailBytes<1000));
$currTailBytes = 0 unless $currTailBytes;
$MaillogTailBytes = $currTailBytes;
at line 27305, right below <input type="text" name="wrap" value='$currWrap'
size="1"/> insert:
<br />
<label>show </label>
<input type="text" name="tailbytes" value='$currTailBytes' size="3"/>
bytes
at line 27281, right below $MaillogTailWrapColumn = $savWrap; insert:
$MaillogTailBytes = $savTailBytes;
...and make the formatting a bit more aligned
change line 27303 from <td align="right"> to
<td>
line 27310 replace <input type="submit" name="" value="Search" /> with:
<br /><input type="submit" name="Search / Update" value="Search" />
to make it clear that someone need not ender search criteria to change
wrapping or the number of bytes displayed. Also puts this on the line below
the search box.
change line 27313 from <td align="center"> to
<td>
change line 27320 from <label>Results</label> to
<br /><label>Results</label>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test