#
-# $Id: cf.data.pre,v 1.391 2005/06/05 23:29:02 hno Exp $
+# $Id: cf.data.pre,v 1.392 2005/08/14 18:43:40 serassio Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
DOC_END
+NAME: mail_program
+TYPE: eol
+DEFAULT: mail
+LOC: Config.EmailProgram
+DOC_START
+ Email program used to send mail if the cache dies.
+ The default is "mail". The specified program must complain
+ with the standard Unix mail syntax:
+ mail_program recipient < mailfile
+ Optional command line options can be specified.
+DOC_END
+
+
NAME: cache_effective_user
TYPE: string
DEFAULT: nobody
/*
- * $Id: structs.h,v 1.520 2005/06/05 23:29:02 hno Exp $
+ * $Id: structs.h,v 1.521 2005/08/14 18:43:41 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
Log;
char *adminEmail;
+ char *EmailProgram;
char *effectiveUser;
char *visible_appname_string;
char *effectiveGroup;
/*
- * $Id: tools.cc,v 1.257 2005/07/09 20:02:49 serassio Exp $
+ * $Id: tools.cc,v 1.258 2005/08/14 18:43:41 serassio Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
fclose(fp);
- snprintf(command, 256, "mail %s < %s", Config.adminEmail, filename);
+ snprintf(command, 256, "%s %s < %s", Config.EmailProgram, Config.adminEmail, filename);
system(command); /* XXX should avoid system(3) */