reflect security = ... in docs and print warning if used

pull/50/merge
Martin Zimmermann 11 years ago
parent c50fe22eb1
commit 9dd066c6a6

@ -157,7 +157,7 @@ also can moderate (=activate or delete) comments. Don't forget to configure
password = password =
host = localhost host = localhost
port = 465 port = 465
ssl = on security = ssl
to = to =
from = from =
@ -174,10 +174,10 @@ host
port port
SMTP port SMTP port
ssl security
use SSL to connect to the server. Python probably does not validate the use a secure connection to the server, possible values: *none*, *starttls*
certificate. Needs research, though. But you should use a dedicated or *ssl*. Python 2.X probably does not validate certificates (needs
email account anyways. research). But you should use a dedicated email account anyways.
to to
recipient address, e.g. your email address recipient address, e.g. your email address

@ -1,5 +1,5 @@
# Isso configuration file # Isso configuration file
# vim: set filetype=ini # vim: set filetype=ini
[general] [general]
@ -20,7 +20,7 @@ name =
host = http://localhost/ host = http://localhost/
# time range that allows users to edit/remove their own comments. # time range that allows users to edit/remove their own comments.
# It supports years, weeks, days, hours, minutes, seconds. # It supports years, weeks, days, hours, minutes, seconds.
# 3h45m12s equals to 3 hours, 45 minutes and 12 seconds. # 3h45m12s equals to 3 hours, 45 minutes and 12 seconds.
max-age = 15m max-age = 15m
@ -80,10 +80,10 @@ host = localhost
# SMTP port # SMTP port
port = 465 port = 465
# use SSL to connect to the server. Python probably does not validate the # use a secure connection to the server, possible values: "none", "starttls"
# certificate. Needs research, though. But you should use a dedicated email # or "ssl". Python 2.X probably does not validate certificates (needs
# account anyways. # research). But you should use a dedicated email account anyways.
ssl = on security = ssl
# recipient address, e.g. your email address # recipient address, e.g. your email address
to = to =

@ -148,6 +148,8 @@ class Config:
logger.warn("no such option: [%s] %s", *item) logger.warn("no such option: [%s] %s", *item)
if item in (("server", "host"), ("server", "port")): if item in (("server", "host"), ("server", "port")):
logger.warn("use `listen = http://$host:$port` instead") logger.warn("use `listen = http://$host:$port` instead")
if item == ("smtp", "ssl"):
logger.warn("use `security = none | starttls | ssl` instead")
if rv.get("smtp", "username") and not rv.get("general", "notify"): if rv.get("smtp", "username") and not rv.get("general", "notify"):
logger.warn(("SMTP is no longer enabled by default, add " logger.warn(("SMTP is no longer enabled by default, add "

Loading…
Cancel
Save