prepare for PR to mainstream (tests, docs, ...)

This commit is contained in:
nikolay.saskovets
2014-05-16 07:37:34 -04:00
parent c3420d156e
commit 0e27a62f3c
3 changed files with 16 additions and 2 deletions

View File

@@ -313,6 +313,7 @@ class DjrillBackend(BaseEmailBackend):
return mandrill_attachment, is_embedded_image
def _filter_msg_dict(self, message, msg_dict):
"""Filter message data (e.g. clear subject field, or from field)"""
if hasattr(message, 'clear_from') and message.clear_from:
msg_dict['from_name'] = ''
msg_dict['from_email'] = ''