summaryrefslogtreecommitdiff
path: root/Mailman/Archiver/HyperArch.py
diff options
context:
space:
mode:
authorbwarsaw2002-12-26 17:24:36 +0000
committerbwarsaw2002-12-26 17:24:36 +0000
commit1b43222b7b230df7452a983a636d41cd8e847601 (patch)
tree8c76c20ead39dd7c9e20c12c1113ec16775e5ba1 /Mailman/Archiver/HyperArch.py
parent84d186952d7582ff8846ee35d01a2fd5ce47fcae (diff)
downloadmailman-1b43222b7b230df7452a983a636d41cd8e847601.tar.gz
mailman-1b43222b7b230df7452a983a636d41cd8e847601.tar.zst
mailman-1b43222b7b230df7452a983a636d41cd8e847601.zip
Diffstat (limited to 'Mailman/Archiver/HyperArch.py')
-rw-r--r--Mailman/Archiver/HyperArch.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py
index 60db2b0e6..98fb57383 100644
--- a/Mailman/Archiver/HyperArch.py
+++ b/Mailman/Archiver/HyperArch.py
@@ -1123,6 +1123,7 @@ class HyperArchive(pipermail.T):
k = kr.start(0)
if j != -1 and (j < k or k == -1):
text = jr.group(1)
+ length = len(text)
if mm_cfg.ARCHIVER_OBSCURES_EMAILADDRS:
text = re.sub('@', _(' at '), text)
URL = self.maillist.GetScriptURL(
@@ -1132,10 +1133,11 @@ class HyperArchive(pipermail.T):
pos = j
elif k != -1 and (j > k or j == -1):
text = URL = kr.group(1)
+ length = len(text)
pos = k
else: # j==k
raise ValueError, "j==k: This can't happen!"
- length = len(text)
+ #length = len(text)
#self.message("URL: %s %s %s \n"
# % (CGIescape(L[:pos]), URL, CGIescape(text)))
L2 += '%s<A HREF="%s">%s</A>' % (