summaryrefslogtreecommitdiffstats
path: root/askbot/utils/mail.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/utils/mail.py')
-rw-r--r--askbot/utils/mail.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/askbot/utils/mail.py b/askbot/utils/mail.py
index 744c54de..2d4d80b0 100644
--- a/askbot/utils/mail.py
+++ b/askbot/utils/mail.py
@@ -251,7 +251,7 @@ def process_parts(parts):
return body_markdown.strip(), stored_files
-def process_emailed_question(from_address, subject, parts):
+def process_emailed_question(from_address, subject, parts, tags = None):
"""posts question received by email or bounces the message"""
#a bunch of imports here, to avoid potential circular import issues
from askbot.forms import AskByEmailForm
@@ -275,6 +275,10 @@ def process_emailed_question(from_address, subject, parts):
title = form.cleaned_data['title']
body_text = form.cleaned_data['body_text']
+ #defect - here we might get "too many tags" issue
+ if tags:
+ tagnames += ' ' + ' '.join(tags)
+
user.post_question(
title = title,
tags = tagnames,