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

John Crispin john at phrozen.org
Mon Jun 6 00:34:18 PDT 2016


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



More information about the Lede-dev mailing list