From 40fbca07eddde96af55325afab329f354a94a7ea Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 24 Apr 2013 04:17:20 -0400 Subject: corrected signature change detection --- askbot/mail/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/askbot/mail/__init__.py b/askbot/mail/__init__.py index 37d10f8b..a2f53017 100644 --- a/askbot/mail/__init__.py +++ b/askbot/mail/__init__.py @@ -390,7 +390,10 @@ def process_emailed_question( #note that signature '' means it is unset and 'empty signature' is a sentinel #because there is no other way to indicate unset signature without adding #another field to the user model - signature_changed = (stripped_body_text == body_text and user.email_signature) + signature_changed = ( + stripped_body_text == body_text and + user.email_signature != 'empty signature' + ) need_new_signature = ( user.email_isvalid is False or -- cgit v1.2.3-1-g7c22