Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- from Mailman import Errors
- def process(mlist, msg, msgdata):
- if msgdata.get('approved'): # does this make sense?
- return
- subject = msg.get("subject", "")
- if not re.search(r"^(Re:|AW:)", subject, re.I):
- return # not a reply
- if not (msg.get("in-reply-to") or msg.get("references")):
- raise Errors.RejectMessage("Your MUA sucks.")
Add Comment
Please, Sign In to add comment