We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b653968 commit a95ea17Copy full SHA for a95ea17
1 file changed
Mailman/MailList.py
@@ -96,7 +96,7 @@ def __init__(self, name=None, lock=1):
96
# pipe to the wrapper in an MTA alias or other delivery process
97
# contains shell special characters so allow only defined characters
98
# (default = '[-+_.=a-z0-9]').
99
- if len(re.sub(r'[%s]' % mm_cfg.ACCEPTABLE_LISTNAME_CHARACTERS, '', name)) > 0:
+ if len(re.sub(r'[%s]' % mm_cfg.ACCEPTABLE_LISTNAME_CHARACTERS.replace('-', r'\-'), '', name)) > 0:
100
raise Errors.BadListNameError(name)
101
# Validate what will be the list's posting address
102
postingaddr = '%s@%s' % (name, mm_cfg.DEFAULT_EMAIL_HOST)
0 commit comments