MINOR: mailers/hlua: disable email sending from lua

Exposing a new hlua function, available from body or init contexts, that
forcefully disables the sending of email alerts even if the mailers are
defined in haproxy configuration.

This will help for sending email directly from lua.
(prevent legacy email sending from intefering with lua)
diff --git a/src/mailers.c b/src/mailers.c
index 601e8b9..c09e73c 100644
--- a/src/mailers.c
+++ b/src/mailers.c
@@ -31,6 +31,11 @@
 
 struct mailers *mailers = NULL;
 
+/* Set to 1 to disable email sending through checks even if the
+ * mailers are configured to do so. (e.g.: disable from lua)
+ */
+int send_email_disabled = 0;
+
 DECLARE_STATIC_POOL(pool_head_email_alert,   "email_alert",   sizeof(struct email_alert));
 
 /****************************** Email alerts ******************************/
@@ -305,6 +310,9 @@
 	int len;
 	struct proxy *p = s->proxy;
 
+	if (send_email_disabled)
+		return;
+
 	if (!p->email_alert.mailers.m || level > p->email_alert.level || format == NULL)
 		return;