[LEDE-DEV] [PATCH 1/2] mail: imapfiler: use default imapfilter config options

Tomasz Duszynski tduszyns at gmail.com
Sun Jun 5 06:03:46 PDT 2016


IMAP filtering is setup per user so it makes sense
to use settings defined under user's home directory.

Signed-off-by: Tomasz Duszynski <tduszyns at gmail.com>
---
 mail/imapfilter/patches/010-pathnames.patch | 31 -----------------------------
 1 file changed, 31 deletions(-)
 delete mode 100644 mail/imapfilter/patches/010-pathnames.patch

diff --git a/mail/imapfilter/patches/010-pathnames.patch b/mail/imapfilter/patches/010-pathnames.patch
deleted file mode 100644
index 6e9a43f..0000000
--- a/mail/imapfilter/patches/010-pathnames.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- a/pathnames.h
-+++ b/pathnames.h
-@@ -3,7 +3,7 @@
- 
- 
- /* Program's home directory. */
--#define PATHNAME_HOME			".imapfilter"
-+#define PATHNAME_HOME			"/etc/imapfilter"
- 
- /* Program's configuration file. */
- #define PATHNAME_CONFIG			PATHNAME_HOME "/config.lua"
-@@ -39,7 +39,7 @@
- #define PATHNAME_CERTS			PATHNAME_HOME "/certificates"
- 
- /* Debug temporary file template. */
--#define PATHNAME_DEBUG			PATHNAME_HOME "/debug.XXXXXX"
-+#define PATHNAME_DEBUG			"/tmp/imapfilterdebug.XXXXXX"
- 
- 
- #endif				/* PATHNAMES_H */
---- a/imapfilter.c
-+++ b/imapfilter.c
-@@ -50,7 +50,7 @@
- 	opts.config = NULL;
- 	opts.oneline = NULL;
- 
--	env.home = getenv("HOME");
-+	env.home = "";
- 	env.pathmax = -1;
- 
- 	while ((c = getopt(argc, argv, "Vc:de:il:v?")) != -1) {
-- 
2.8.3




More information about the Lede-dev mailing list