summaryrefslogtreecommitdiff
path: root/Mailman/Archiver/Archiver.py
diff options
context:
space:
mode:
authorbwarsaw2003-06-26 15:01:40 +0000
committerbwarsaw2003-06-26 15:01:40 +0000
commit5828d20e0761a20eaa4ac430c53c369a8ed14d8d (patch)
tree7fa5b70a489858abf9f7d2f53897c3dda618123d /Mailman/Archiver/Archiver.py
parent8fb2d5bc4406e6aa2d47b5e44ec8112dac69c557 (diff)
downloadmailman-5828d20e0761a20eaa4ac430c53c369a8ed14d8d.tar.gz
mailman-5828d20e0761a20eaa4ac430c53c369a8ed14d8d.tar.zst
mailman-5828d20e0761a20eaa4ac430c53c369a8ed14d8d.zip
ExternalArchive(): Add %(hostname)s to the substitution strings
allowed in the PUBLIC_EXTERNAL_ARCHIVER and_EXTERNAL_ARCHIVER variables.
Diffstat (limited to 'Mailman/Archiver/Archiver.py')
-rw-r--r--Mailman/Archiver/Archiver.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/Archiver/Archiver.py b/Mailman/Archiver/Archiver.py
index 903031cd2..8c41f0f85 100644
--- a/Mailman/Archiver/Archiver.py
+++ b/Mailman/Archiver/Archiver.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -166,7 +166,9 @@ class Archiver:
raise
def ExternalArchive(self, ar, txt):
- d = SafeDict({'listname': self.internal_name()})
+ d = SafeDict({'listname': self.internal_name(),
+ 'hostname': self.host_name,
+ })
cmd = ar % d
extarch = os.popen(cmd, 'w')
extarch.write(txt)