--- imapfilter-1.2.2/pathnames.h	2006-08-01 14:11:20.000000000 +0200
+++ imapfilter-1.2.2/pathnames.h	2006-09-07 23:58:12.000000000 +0200
@@ -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"
@@ -18,7 +18,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 */
--- imapfilter-1.2.2/imapfilter.c        2006-09-08 00:02:11.000000000 +0200
+++ imapfilter-1.2.2/imapfilter.c       2006-09-08 00:02:32.000000000 +0200
@@ -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) {
