Skip to content

Commit

Permalink
Run MTA-specific list creation tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ioparaskev committed Apr 24, 2017
1 parent bc1983a commit b5605b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mailmanapi/apiv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ def create_list(listname):
mail_list = MailList.MailList()
try:
mail_list.Create(listname, admin, password)
# Now do the MTA-specific list creation tasks
if mm_cfg.MTA:
modname = 'Mailman.MTA.' + mm_cfg.MTA
__import__(modname)
mail_list.archive_private = archive_private
mail_list.subscribe_policy = subscribe_policy
mail_list.Save()
Expand Down

0 comments on commit b5605b4

Please sign in to comment.