Skip to content

Commit

Permalink
Fix the mailman script being unable to handle some mail
Browse files Browse the repository at this point in the history
  • Loading branch information
cbdevnet committed Sep 8, 2015
1 parent 9d3a9b2 commit b330687
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mailman/cmail_to_mailman2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
MAILMAN = "/var/lib/mailman/mail/mailman"
DATABASE = "/etc/cmail/databases/master.db3"
USER = 'mailman'
LISTS = [ "devel" ]
LISTS = [ "devel", "security", "announce" ]

handlers = { "":"post",
"-admin":"admin",
Expand Down Expand Up @@ -37,6 +37,9 @@ def handle(cursor, mail):

#get handler
info = handler(data[0])
if info is None:
print("Failed to handle mail for ", data[0])
return

#post mail
if info[1] is not None:
Expand Down

0 comments on commit b330687

Please sign in to comment.