From a34d5ef02c4d0f6403aa4c6238b9ea0f36290f13 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 29 May 2012 11:59:54 -0400 Subject: a bug fix in replying by email --- askbot/mail/lamson_handlers.py | 3 ++- askbot/models/reply_by_email.py | 2 +- 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: -- cgit v1.2.3-1-g7c22