From: Simon Horman Date: Fri, 6 Feb 2015 02:11:56 +0000 (+0900) Subject: MINOR: Remove trailing '.' from email alert messages X-Git-Tag: v1.6-dev1~146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00b69e08d5c95377ea6bd2f01492a4337c62d362;p=thirdparty%2Fhaproxy.git MINOR: Remove trailing '.' from email alert messages This removes the trailing '.' from both the header and the body of email alerts. The main motivation for this change is to make the format of email alerts generated from srv_set_stopped() consistent with those generated from set_server_check_status(). Signed-off-by: Simon Horman --- diff --git a/src/server.c b/src/server.c index 6acd332926..4458642e06 100644 --- a/src/server.c +++ b/src/server.c @@ -255,7 +255,7 @@ void srv_set_stopped(struct server *s, const char *reason) "%sServer %s/%s is DOWN", s->flags & SRV_F_BACKUP ? "Backup " : "", s->proxy->id, s->id); - send_email_alert(s, "%s.", trash.str); + send_email_alert(s, "%s", trash.str); srv_append_status(&trash, s, reason, xferred, 0); Warning("%s.\n", trash.str);