summaryrefslogtreecommitdiff
path: root/modules/mm_archive.py
diff options
context:
space:
mode:
authormailman1998-03-18 22:39:40 +0000
committermailman1998-03-18 22:39:40 +0000
commit06f1bad239fd79d2cfb707d73f7d5380bd3d6ba6 (patch)
tree613265968c3e6658af1860898a8def4361217be0 /modules/mm_archive.py
parent90bf44d624d612403e2ca4a6be3c1da8c1d415bd (diff)
downloadmailman-06f1bad239fd79d2cfb707d73f7d5380bd3d6ba6.tar.gz
mailman-06f1bad239fd79d2cfb707d73f7d5380bd3d6ba6.tar.zst
mailman-06f1bad239fd79d2cfb707d73f7d5380bd3d6ba6.zip
Archive base url's have a .html appended, for compat with pipermail's
(new) list.html index.
Diffstat (limited to 'modules/mm_archive.py')
-rw-r--r--modules/mm_archive.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/mm_archive.py b/modules/mm_archive.py
index eab5fc223..268126803 100644
--- a/modules/mm_archive.py
+++ b/modules/mm_archive.py
@@ -24,8 +24,9 @@ class Archiver:
## mm_cfg.DEFAULT_ARCHIVE_RETAIN_TEXT_COPY
# Not configurable
+ # XXX klm - reconcile with .ArchiveFileName()
self._base_archive_url = os.path.join(mm_cfg.ARCHIVE_URL,
- self._internal_name)
+ self._internal_name + ".html")
self.clobber_date = 0
def GetConfigInfo(self):
@@ -103,6 +104,7 @@ class Archiver:
self.Save ()
def ArchiveFileName(self):
+ """The mbox name where messages are left for archive construction."""
if self.archive_private:
return os.path.join(mm_cfg.PRIVATE_ARCHIVE_FILE_DIR,
self._internal_name)
@@ -110,6 +112,7 @@ class Archiver:
return os.path.join(mm_cfg.PUBLIC_ARCHIVE_FILE_DIR,
self._internal_name)
def ArchiveFile(self, afn):
+ """Open (creating, if necessary) the named archive file."""
ou = os.umask(002)
try:
try: