summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: