瀏覽代碼

Fix path to look for handlers

Alois Mahdal 7 年之前
父節點
當前提交
a39728dc63
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      src/common.lua
  2. 1
    1
      src/imapdomo.skel

+ 1
- 1
src/common.lua 查看文件

@@ -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 查看文件

@@ -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