I am using IMAPFilter and I would like to save my global configuration to a public repository , keeping the local (and secret) configuration in a separate file. So I run imapfilterfrom some directory, it includes ~ / .imapfilter / config.lua, and it should include. / config _local.lua, where "." this is the config.lua directory, not the shell $PWDor location imapfilter. Here is what I have tried so far:
require "config_local"
require "./config_local"
Edit: the absolute path works:
dofile(os.getenv("HOME") .. "/.imapfilter/config_local.lua")
Not very elegant, but at least it is compatible with cron.
source
share