From 320cb7313f9d02ed4047212e653d3629bde14432 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Sat, 16 Nov 2013 20:54:17 +0100 Subject: [PATCH] upgrade notifications for old configuration values --- isso/core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/isso/core.py b/isso/core.py index 061dfee..645fcde 100644 --- a/isso/core.py +++ b/isso/core.py @@ -144,6 +144,13 @@ class Config: if diff: for item in diff: logger.warn("no such option: [%s] %s", *item) + if item in (("server", "host"), ("server", "port")): + logger.warn("use `listen = http://$host:$port` instead") + + if rv.get("smtp", "username") and not rv.get("general", "notify"): + logger.warn(("SMTP is no longer enabled by default, add " + "`notify = smtp` to the general section to " + "enable SMTP nofications.")) return rv