Module: check_mk
Branch: master
Commit: 6be9e4e2c4cdd1e724bc4da123434aa064465bdf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6be9e4e2c4cdd1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jun 24 11:23:43 2014 +0200
Validate configuration of email addresses in notification plugins
---
web/plugins/wato/notifications.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/web/plugins/wato/notifications.py b/web/plugins/wato/notifications.py
index 45b525f..3e165b0 100644
--- a/web/plugins/wato/notifications.py
+++ b/web/plugins/wato/notifications.py
@@ -29,14 +29,14 @@ register_notification_parameters("mail",
elements = [
( "from",
TextAscii(
- title = _("From: Adress"),
+ title = _("From: Address"),
size = 40,
allow_empty = False,
)
),
( "reply_to",
TextAscii(
- title = _("Reply-To: Adress"),
+ title = _("Reply-To: Address"),
size = 40,
allow_empty = False,
)
@@ -96,15 +96,15 @@ register_notification_parameters("asciimail",
Dictionary(
elements = [
( "from",
- TextAscii(
- title = _("From: Adress"),
+ EmailAddress(
+ title = _("From: Address"),
size = 40,
allow_empty = False,
)
),
( "reply_to",
- TextAscii(
- title = _("Reply-To: Adress"),
+ EmailAddress(
+ title = _("Reply-To: Address"),
size = 40,
allow_empty = False,
)