[packages] move packages to a new 'mail' section, cleanup
[openwrt/svn-archive/archive.git] / mail / imapfilter / patches / 010-pathnames.patch
1 --- imapfilter-1.2.2/pathnames.h 2006-08-01 14:11:20.000000000 +0200
2 +++ imapfilter-1.2.2/pathnames.h 2006-09-07 23:58:12.000000000 +0200
3 @@ -3,7 +3,7 @@
4
5
6 /* Program's home directory. */
7 -#define PATHNAME_HOME ".imapfilter"
8 +#define PATHNAME_HOME "/etc/imapfilter"
9
10 /* Program's configuration file. */
11 #define PATHNAME_CONFIG PATHNAME_HOME "/config.lua"
12 @@ -18,7 +18,7 @@
13 #define PATHNAME_CERTS PATHNAME_HOME "/certificates"
14
15 /* Debug temporary file template. */
16 -#define PATHNAME_DEBUG PATHNAME_HOME "/debug.XXXXXX"
17 +#define PATHNAME_DEBUG "/tmp/imapfilterdebug.XXXXXX"
18
19
20 #endif /* PATHNAMES_H */
21 --- imapfilter-1.2.2/imapfilter.c 2006-09-08 00:02:11.000000000 +0200
22 +++ imapfilter-1.2.2/imapfilter.c 2006-09-08 00:02:32.000000000 +0200
23 @@ -50,7 +50,7 @@
24 opts.config = NULL;
25 opts.oneline = NULL;
26
27 - env.home = getenv("HOME");
28 + env.home = "";
29 env.pathmax = -1;
30
31 while ((c = getopt(argc, argv, "Vc:de:il:v?")) != -1) {