diff options
Diffstat (limited to 'askbot/mail/__init__.py')
-rw-r--r-- | askbot/mail/__init__.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/askbot/mail/__init__.py b/askbot/mail/__init__.py index 739b147e..2d314dbc 100644 --- a/askbot/mail/__init__.py +++ b/askbot/mail/__init__.py @@ -158,8 +158,8 @@ def mail_moderators( try: msg = mail.EmailMessage( - subject_line, - body_text, + subject_line, + body_text, from_email, recipient_list, headers = headers or {} @@ -287,10 +287,11 @@ def process_attachment(attachment): def extract_user_signature(text, reply_code): """extracts email signature as text trailing the reply code""" - if reply_code in text: + striped_text = strip_tags(text) + if reply_code in striped_text: #extract the signature tail = list() - for line in reversed(text.splitlines()): + for line in reversed(striped_text.splitlines()): #scan backwards from the end until the magic line if reply_code in line: break |