]> git.pld-linux.org Git - packages/squid.git/blob - squid-2.5.STABLE10-mail_from.patch
- removed outdated squid patches, they're all in sources
[packages/squid.git] / squid-2.5.STABLE10-mail_from.patch
1 Index: squid/src/cf.data.pre
2 diff -c squid/src/cf.data.pre:1.245.2.96 squid/src/cf.data.pre:1.245.2.97
3 *** squid/src/cf.data.pre:1.245.2.96    Sun Aug 14 10:28:07 2005
4 --- squid/src/cf.data.pre       Sat Sep  3 03:14:43 2005
5 ***************
6 *** 2444,2449 ****
7 --- 2444,2461 ----
8   DOC_END
9   
10   
11 + NAME: mail_from
12 + TYPE: string
13 + DEFAULT: none
14 + LOC: Config.EmailFrom
15 + DOC_START
16 +       From: email-address for mail sent when the cache dies.
17 +       The default is to use 'appname@unique_hostname'.
18 +       Default appname value is "squid", can be changed into 
19 +       src/globals.h before building squid.
20 + DOC_END
21
22
23   NAME: mail_program
24   TYPE: eol
25   DEFAULT: mail
26 Index: squid/src/structs.h
27 diff -c squid/src/structs.h:1.408.2.47 squid/src/structs.h:1.408.2.48
28 *** squid/src/structs.h:1.408.2.47      Thu Sep  1 16:22:23 2005
29 --- squid/src/structs.h Sat Sep  3 03:14:43 2005
30 ***************
31 *** 480,485 ****
32 --- 480,486 ----
33         int rotateNumber;
34       } Log;
35       char *adminEmail;
36 +     char *EmailFrom;
37       char *EmailProgram;
38       char *effectiveUser;
39       char *effectiveGroup;
40 Index: squid/src/tools.c
41 diff -c squid/src/tools.c:1.213.2.17 squid/src/tools.c:1.213.2.18
42 *** squid/src/tools.c:1.213.2.17        Sun Aug 14 10:28:07 2005
43 --- squid/src/tools.c   Sat Sep  3 03:14:43 2005
44 ***************
45 *** 106,112 ****
46       if ((fp = fopen(filename, "w")) == NULL)
47         return;
48   #endif
49 !     fprintf(fp, "From: %s\n", appname);
50       fprintf(fp, "To: %s\n", Config.adminEmail);
51       fprintf(fp, "Subject: %s\n", dead_msg());
52       fclose(fp);
53 --- 106,115 ----
54       if ((fp = fopen(filename, "w")) == NULL)
55         return;
56   #endif
57 !     if (Config.EmailFrom)
58 !       fprintf(fp, "From: %s\n", Config.EmailFrom);
59 !     else
60 !       fprintf(fp, "From: %s@%s\n", appname, uniqueHostname());
61       fprintf(fp, "To: %s\n", Config.adminEmail);
62       fprintf(fp, "Subject: %s\n", dead_msg());
63       fclose(fp);
This page took 0.027419 seconds and 3 git commands to generate.