From ad74fdd061fcf4811d90458c2e29bbe124d3e12e Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 30 May 2012 16:06:08 -0400 Subject: added subject to the post with comment mailto link --- askbot/const/__init__.py | 2 +- askbot/models/__init__.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/askbot/const/__init__.py b/askbot/const/__init__.py index 0a36879e..8e7ba9e6 100644 --- a/askbot/const/__init__.py +++ b/askbot/const/__init__.py @@ -58,7 +58,7 @@ SIMPLE_REPLY_SEPARATOR_TEMPLATE = '==== %s -=-==' REPLY_SEPARATOR_TEMPLATE = '==== %(user_action)s %(instruction)s -=-==' REPLY_WITH_COMMENT_TEMPLATE = _( 'Note: to reply with a comment, ' - 'please use this link' + 'please use this link' ) REPLY_SEPARATOR_REGEX = re.compile(r'==== .* -=-==', re.MULTILINE|re.DOTALL) diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py index fadbe450..1583b2e5 100644 --- a/askbot/models/__init__.py +++ b/askbot/models/__init__.py @@ -2685,7 +2685,12 @@ def format_instant_notification_email( 'instruction': _('To reply, PLEASE WRITE ABOVE THIS LINE.') } if post.post_type == 'question' and alt_reply_address: - data = {'addr': alt_reply_address} + data = { + 'addr': alt_reply_address, + 'subject': urllib.quote( + ('Re: ' + post.thread.title).encode('utf-8') + ) + } reply_separator += '
' + \ const.REPLY_WITH_COMMENT_TEMPLATE % data else: -- cgit v1.2.3-1-g7c22