summaryrefslogtreecommitdiffstats
path: root/askbot/conf/email.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/conf/email.py')
-rw-r--r--askbot/conf/email.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/askbot/conf/email.py b/askbot/conf/email.py
index 1f60c442..195f36e3 100644
--- a/askbot/conf/email.py
+++ b/askbot/conf/email.py
@@ -273,3 +273,42 @@ settings.register(
)
)
)
+
+
+
+settings.register(
+ livesettings.BooleanValue(
+ EMAIL,
+ 'REPLY_BY_EMAIL',
+ default = False,
+ description=_('Enable posting answers and comments by email'),
+ #TODO give a better explanation depending on lamson startup procedure
+ help_text=_(
+ 'To enable this feature make sure lamson is running'
+
+ )
+ )
+)
+
+settings.register(
+ livesettings.StringValue(
+ EMAIL,
+ 'REPLY_BY_EMAIL_HOSTNAME',
+ default = "",
+ description=_('Reply by email hostname'),
+ #TODO give a better explanation depending on lamson startup procedure
+
+ )
+)
+
+
+
+settings.register(
+ livesettings.IntegerValue(
+ EMAIL,
+ 'MIN_WORDS_FOR_ANSWER_BY_EMAIL',
+ default=14,
+ description=_('Email replies having fewer words than this number will be posted as comments instead of answers')
+ )
+)
+