Skip to content

Commit a95ea17

Browse files
committed
update
1 parent b653968 commit a95ea17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mailman/MailList.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(self, name=None, lock=1):
9696
# pipe to the wrapper in an MTA alias or other delivery process
9797
# contains shell special characters so allow only defined characters
9898
# (default = '[-+_.=a-z0-9]').
99-
if len(re.sub(r'[%s]' % mm_cfg.ACCEPTABLE_LISTNAME_CHARACTERS, '', name)) > 0:
99+
if len(re.sub(r'[%s]' % mm_cfg.ACCEPTABLE_LISTNAME_CHARACTERS.replace('-', r'\-'), '', name)) > 0:
100100
raise Errors.BadListNameError(name)
101101
# Validate what will be the list's posting address
102102
postingaddr = '%s@%s' % (name, mm_cfg.DEFAULT_EMAIL_HOST)

0 commit comments

Comments
 (0)