summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-29 11:59:54 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-29 11:59:54 -0400
commita34d5ef02c4d0f6403aa4c6238b9ea0f36290f13 (patch)
tree3047bb3bc12fdb3233f65b43cf8e752278fbcbeb
parent1c1ecce363dbeb3e4ccca228a7af115ae1238ff2 (diff)
downloadaskbot-a34d5ef02c4d0f6403aa4c6238b9ea0f36290f13.tar.gz
askbot-a34d5ef02c4d0f6403aa4c6238b9ea0f36290f13.tar.bz2
askbot-a34d5ef02c4d0f6403aa4c6238b9ea0f36290f13.zip
a bug fix in replying by email
-rw-r--r--askbot/mail/lamson_handlers.py3
-rw-r--r--askbot/models/reply_by_email.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/askbot/mail/lamson_handlers.py b/askbot/mail/lamson_handlers.py
index 6f94c990..467493c7 100644
--- a/askbot/mail/lamson_handlers.py
+++ b/askbot/mail/lamson_handlers.py
@@ -187,7 +187,8 @@ def ASK(message, host = None, addr = None):
parts = get_parts(message)
from_address = message.From
- subject = message['Subject']#why lamson does not give it normally?
+ #why lamson does not give it normally?
+ subject = message['Subject'].strip('\n\t ')
body_text, stored_files, unused = mail.process_parts(parts)
if addr == 'ask':
mail.process_emailed_question(
diff --git a/askbot/models/reply_by_email.py b/askbot/models/reply_by_email.py
index ac96fc58..0db7244c 100644
--- a/askbot/models/reply_by_email.py
+++ b/askbot/models/reply_by_email.py
@@ -100,7 +100,7 @@ class ReplyAddress(models.Model):
else:
post = self.post
- if self.reply_action == 'append_content':
+ if reply_action == 'append_content':
body_text = post.text + '\n\n' + body_text
revision_comment = _('added content by email')
else: