ADMINDB_PAGE_TEXT_LIMIT = -1 is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Unassigned |
Bug Description
ADMINDB_
anymore (it's advertised to be "no limit").
Here's a patch that makes it work; there
may be a more-elegant way to code it:
Index: admindb.py
=======
RCS file:
/cvsroot/
retrieving revision 2.20
diff -u -r2.20 admindb.py
--- admindb.py 2001/10/10 04:26:29 2.20
+++ admindb.py 2001/10/17 21:49:03
@@ -247,12 +247,16 @@
# Get the header text and the message body excerpt
lines = []
chars = 0
+ limit = mm_cfg.
for line in
email.Iterators
chars += len(line)
- if chars > mm_cfg.
+ if (limit > 0) and (chars > limit):
break
- body =
EMPTYSTRING.
+ if limit > 0:
+ body = EMPTYSTRING.
+ else:
+ body = EMPTYSTRING.
hdrtxt = NL.join(['%s: %s' % (k, v) for k, v in
msg.items()])
# Okay, we've reconstituted the message just
fine. Now for the fun part!
[http://
Fixed (finally!) with the upcoming new features in admindb.py