summaryrefslogtreecommitdiffstats
path: root/askbot/mail
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-24 04:17:20 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-24 04:17:20 -0400
commit40fbca07eddde96af55325afab329f354a94a7ea (patch)
tree97ff3ccca750ddda83d2104971bfd12d463cb5fb /askbot/mail
parent75050366da87747b7f7ec6a0c3213966c3bc8059 (diff)
downloadaskbot-40fbca07eddde96af55325afab329f354a94a7ea.tar.gz
askbot-40fbca07eddde96af55325afab329f354a94a7ea.tar.bz2
askbot-40fbca07eddde96af55325afab329f354a94a7ea.zip
corrected signature change detection
Diffstat (limited to 'askbot/mail')
-rw-r--r--askbot/mail/__init__.py5
1 files changed, 4 insertions, 1 deletions
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