#115 Overly similar alert emails

open
nobody
5
2013-02-21
2013-02-21
No

Hi,

This came to me via Debian BTS [0], please consider this case:

UP and DOWN alert emails differ only by a prepended "UP" to the
subject line of the former. This means if you're reading using
a mail client, such as K-9 Mail for Google Android, which auto-
scrolls past the headers, you cannot differentiate easily between
a failure renotification and a recovery. I've applied the following
patch:

--- mail.alert.orig 2013-01-03 13:58:46.000000000 -0500
+++ mail.alert 2013-01-03 13:50:05.000000000 -0500
@@ -65,6 +65,8 @@
Secs until next alert : $opt_l
EOF

+print MAIL "Service Status : ", ($opt_u ? "UP" : "DOWN"), "\n";
+
print MAIL wrap ("", "\t\t\t", "Members : $opt_h"), "\n";

print MAIL <<EOF;

This includes a server status line in the message body, in a natural
location.

Regards,

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697302

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks