mime checks in spam_pattern.py and common