Browse Source

Fix path to look for handlers

Alois Mahdal 7 years ago
parent
commit
a39728dc63
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/common.lua
  2. 1
    1
      src/imapdomo.skel

+ 1
- 1
src/common.lua View File

@@ -34,7 +34,7 @@ function handle()
34 34
     -- Handle action if it's valid
35 35
     --
36 36
     local action = os.getenv("IMAPDOMO_ACTION")
37
-    local file = "handlers/" .. action .. ".lua"
37
+    local file = os.getenv("IMAPFILTER_HOME") .. "/handlers/" .. action .. ".lua"
38 38
     local valid = {
39 39
         newmail = true,
40 40
         rewind = true,

+ 1
- 1
src/imapdomo.skel View File

@@ -65,7 +65,7 @@ lshandlers() {
65 65
     #
66 66
     # List recognized handlers
67 67
     #
68
-    find "$IMAPDOMO_HOME/handlers" -name "*.lua" -printf "%f\n" \
68
+    find "$CfgDir/handlers" -name "*.lua" -printf "%f\n" \
69 69
       | sed 's/.lua$//'
70 70
 }
71 71