diff mbox

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

Message ID 20160605130347.10573-1-tduszyns@gmail.com
State Awaiting Upstream
Headers show

Commit Message

Tomasz Duszynski June 5, 2016, 1:03 p.m. UTC
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@gmail.com>
---
 mail/imapfilter/patches/010-pathnames.patch | 31 -----------------------------
 1 file changed, 31 deletions(-)
 delete mode 100644 mail/imapfilter/patches/010-pathnames.patch

Comments

John Crispin June 6, 2016, 7:34 a.m. UTC | #1
Hi Tomasz,

these need to be submitted via a PRS to the openwrt packages feed on github

	John

On 05/06/2016 15:03, Tomasz Duszynski wrote:
> 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@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) {
>
diff mbox

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) {