]> git.pld-linux.org Git - packages/squid.git/blob - squid-2.5.STABLE10-mail_program.patch
- removed outdated squid patches, they're all in sources
[packages/squid.git] / squid-2.5.STABLE10-mail_program.patch
1 Index: squid/src/cf.data.pre
2 diff -c squid/src/cf.data.pre:1.245.2.95 squid/src/cf.data.pre:1.245.2.96
3 *** squid/src/cf.data.pre:1.245.2.95    Thu Jun  9 01:51:46 2005
4 --- squid/src/cf.data.pre       Sun Aug 14 10:28:07 2005
5 ***************
6 *** 2444,2449 ****
7 --- 2444,2462 ----
8   DOC_END
9   
10   
11 + NAME: mail_program
12 + TYPE: eol
13 + DEFAULT: mail
14 + LOC: Config.EmailProgram
15 + DOC_START
16 +       Email program used to send mail if the cache dies.
17 +       The default is "mail". The specified program must complain
18 +       with the standard Unix mail syntax:
19 +       mail_program recipient < mailfile
20 +       Optional command line options can be specified.
21 + DOC_END
22
23
24   NAME: cache_effective_user
25   TYPE: string
26   DEFAULT: nobody
27 Index: squid/src/structs.h
28 diff -c squid/src/structs.h:1.408.2.44 squid/src/structs.h:1.408.2.45
29 *** squid/src/structs.h:1.408.2.44      Thu Jun  9 01:51:47 2005
30 --- squid/src/structs.h Sun Aug 14 10:28:07 2005
31 ***************
32 *** 480,485 ****
33 --- 480,486 ----
34         int rotateNumber;
35       } Log;
36       char *adminEmail;
37 +     char *EmailProgram;
38       char *effectiveUser;
39       char *effectiveGroup;
40       struct {
41 Index: squid/src/tools.c
42 diff -c squid/src/tools.c:1.213.2.16 squid/src/tools.c:1.213.2.17
43 *** squid/src/tools.c:1.213.2.16        Mon Jun 13 16:26:22 2005
44 --- squid/src/tools.c   Sun Aug 14 10:28:07 2005
45 ***************
46 *** 110,116 ****
47       fprintf(fp, "To: %s\n", Config.adminEmail);
48       fprintf(fp, "Subject: %s\n", dead_msg());
49       fclose(fp);
50 !     snprintf(command, 256, "mail %s < %s", Config.adminEmail, filename);
51       system(command);          /* XXX should avoid system(3) */
52       unlink(filename);
53   }
54 --- 110,116 ----
55       fprintf(fp, "To: %s\n", Config.adminEmail);
56       fprintf(fp, "Subject: %s\n", dead_msg());
57       fclose(fp);
58 !     snprintf(command, 256, "%s %s < %s", Config.EmailProgram, Config.adminEmail, filename);
59       system(command);          /* XXX should avoid system(3) */
60       unlink(filename);
61   }
This page took 0.031143 seconds and 3 git commands to generate.