summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
authorbwarsaw2002-12-02 14:05:20 +0000
committerbwarsaw2002-12-02 14:05:20 +0000
commit63ab2b510f475add32df86d753397bcd005ad958 (patch)
tree8d1218b0aa12b6e4d54c65c652106511964b869a /Mailman/Utils.py
parent03316c59645be79c73d0c802f5d552ef2f7eff4d (diff)
downloadmailman-63ab2b510f475add32df86d753397bcd005ad958.tar.gz
mailman-63ab2b510f475add32df86d753397bcd005ad958.tar.zst
mailman-63ab2b510f475add32df86d753397bcd005ad958.zip
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py26
1 files changed, 4 insertions, 22 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 7b2729c4e..b814f3d0f 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -535,27 +535,6 @@ def is_administrivia(msg):
-def rmdirhier(dir):
- """Like `rm -r'
-
- Completely and recursively removes a directory and all its contents,
- unlike os.removedirs().
- """
- files = []
- def ls(arg, dirname, names):
- for name in names:
- arg.append(os.path.join(dirname, name))
- os.path.walk(dir, ls, files)
- files.reverse()
- for file in files:
- if os.path.isdir(file):
- os.rmdir(file)
- else:
- os.unlink(file)
- os.rmdir(dir)
-
-
-
def GetRequestURI(fallback=None, escape=1):
"""Return the full virtual path this CGI script was invoked with.
@@ -622,7 +601,10 @@ def get_domain():
if mm_cfg.VIRTUAL_HOST_OVERVIEW and host:
return host.lower()
else:
- return mm_cfg.DEFAULT_HOST_NAME.lower()
+ # See the note in Defaults.py concerning DEFAULT_HOST_NAME
+ # vs. DEFAULT_EMAIL_HOST.
+ hostname = mm_cfg.DEFAULT_HOST_NAME or mm_cfg.DEFAULT_EMAIL_HOST
+ return hostname.lower()
def get_site_email(hostname=None, extra=None):