Skip to content

Commit

Permalink
Make wiki an invalid recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
Mortal committed Dec 9, 2016
1 parent 5a94160 commit 139ab4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tutormail/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def translate_recipient(self, rcptto):
name, domain = rcptto.split('@')
if name == 'alle':
raise ForwardToAdmin('Mail til alle')
if name == 'wiki':
raise InvalidRecipient(name)
groups = self.get_groups(name)
if groups:
emails = self.get_group_emails(name, groups)
Expand Down

0 comments on commit 139ab4c

Please sign in to comment.