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

+ 1
- 1
src/imapdomo.skel View File

65
     #
65
     #
66
     # List recognized handlers
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
       | sed 's/.lua$//'
69
       | sed 's/.lua$//'
70
 }
70
 }
71
 
71