Index: trunk/include/sh_error_min.h
===================================================================
--- trunk/include/sh_error_min.h	(revision 271)
+++ trunk/include/sh_error_min.h	(revision 272)
@@ -25,4 +25,10 @@
 		      long errnum, unsigned long  msg_index, ...);
 
+/* this function should be called to (only) send mail
+ */
+void sh_error_mail (const char * alias, int sev, 
+		    const char * file, long line, 
+		    long status, unsigned long msg_id, ...);
+
 /* convert a string to a numeric priority
  */ 
Index: trunk/include/sh_fifo.h
===================================================================
--- trunk/include/sh_fifo.h	(revision 271)
+++ trunk/include/sh_fifo.h	(revision 272)
@@ -68,5 +68,5 @@
 sh_string * tag_list (SH_FIFO * fifo, char * tag,
 		      int(*check)(int, const char*, const char*, const void*),
-		      const void * info);
+		      const void * info, int okNull);
 void rollback_list (SH_FIFO * fifo);
 void mark_list (SH_FIFO * fifo);
Index: trunk/include/sh_log_evalrule.h
===================================================================
--- trunk/include/sh_log_evalrule.h	(revision 271)
+++ trunk/include/sh_log_evalrule.h	(revision 272)
@@ -49,4 +49,5 @@
   enum policies     policy;
   int               severity;
+  sh_string       * alias;
   time_t            interval;        /* if EVAL_SUM, interval   */ 
   struct sh_qeval * next;
@@ -56,4 +57,5 @@
 
 int sh_log_lookup_severity(const char * str);
+sh_string * sh_log_lookup_alias(const char * str);
 
 #endif
Index: trunk/include/sh_mail_int.h
===================================================================
--- trunk/include/sh_mail_int.h	(revision 271)
+++ trunk/include/sh_mail_int.h	(revision 272)
@@ -25,5 +25,6 @@
   dnsrep           * mx_list;
   int                severity;
-  int                send_mail;
+  short              send_mail;
+  short              isAlias;
   sh_filter_type   * mail_filter;
   struct alias     * next;
Index: trunk/include/slib.h
===================================================================
--- trunk/include/slib.h	(revision 271)
+++ trunk/include/slib.h	(revision 272)
@@ -220,7 +220,9 @@
 
   /*
-   * robust strncmp replacement
+   * robust strn[case]cmp replacement
    */
   int sl_strncmp(const char * a, const char * b, size_t n);
+
+  int sl_strncasecmp(const char * a, const char * b, size_t n);
 
   /*
