From b5fb34f1920bc7af3a1f3476f979dbe6aa9d2c94 Mon Sep 17 00:00:00 2001
From: hno <>
Date: Tue, 10 Sep 2002 15:54:52 +0000
Subject: [PATCH] =?utf8?q?the=20mailto=20links=20on=20Squid's=20ERR=20page?=
=?utf8?q?s=20now=20contain=20data=20about=20the=20cccurred=20error=20by?=
=?utf8?q?=20default,=20so=20that=20the=20email=20will=20contain=20this=20?=
=?utf8?q?data=20in=20its=20body.=20This=20feature=20can=20be=20disabled?=
=?utf8?q?=20via=20the=20email=5Ferr=5Fdata=20directive.=20(Clemens=20L?=
=?utf8?q?=C3=B6ser)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
---
ChangeLog | 5 ++++
src/cf.data.pre | 14 ++++++++-
src/errorpage.cc | 75 +++++++++++++++++++++++++++++++++++++++++++++++-
src/structs.h | 3 +-
4 files changed, 94 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e33cc8c792..e6b631a4f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,11 @@ Changes to squid-2.6 ():
(Robert Cohren)
- Nuked num32 types, and made type detection more robust by the
use of typedefs rather than #defines.
+ - the mailto links on Squid's ERR pages now contain data about the
+ occurred error by default, so that the email will contain this data in
+ its body. This feature can be disabled via the email_err_data directive.
+ (Clemens Löser)
+
Changes to squid-2.5 ():
diff --git a/src/cf.data.pre b/src/cf.data.pre
index 4ae46c7e4c..a2b50839d1 100644
--- a/src/cf.data.pre
+++ b/src/cf.data.pre
@@ -1,6 +1,6 @@
#
-# $Id: cf.data.pre,v 1.283 2002/09/04 13:33:13 hno Exp $
+# $Id: cf.data.pre,v 1.284 2002/09/10 09:54:52 hno Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
@@ -2662,6 +2662,18 @@ DOC_START
insert a %L tag in the error template file.
DOC_END
+NAME: email_err_data
+COMMENT: on|off
+TYPE: onoff
+LOC: Config.onoff.emailErrData
+DEFAULT: on
+DOC_START
+ If enabled, information about the occurred error will be
+ included in the mailto links of the ERR pages (if %W is set)
+ so that the email body then contains the data.
+ Syntax is %w
+DOC_END
+
NAME: deny_info
TYPE: denyinfo
diff --git a/src/errorpage.cc b/src/errorpage.cc
index ec3cf44e27..d4ad5032d1 100644
--- a/src/errorpage.cc
+++ b/src/errorpage.cc
@@ -1,6 +1,6 @@
/*
- * $Id: errorpage.cc,v 1.174 2002/07/18 23:43:14 hno Exp $
+ * $Id: errorpage.cc,v 1.175 2002/09/10 09:54:53 hno Exp $
*
* DEBUG: section 4 Error Generation
* AUTHOR: Duane Wessels
@@ -65,7 +65,9 @@ static const struct {
ERR_SQUID_SIGNATURE,
"\n
\n"
"