|
|
|
|
49
|
echo -n " -v"
|
49
|
echo -n " -v"
|
50
|
fi
|
50
|
fi
|
51
|
echo -n " -c $IMAPDOMO_HOME/main.lua"
|
51
|
echo -n " -c $IMAPDOMO_HOME/main.lua"
|
|
|
52
|
+ if test -n "$Certs"
|
|
|
53
|
+ then
|
|
|
54
|
+ echo -n " -t $Certs"
|
|
|
55
|
+ fi
|
52
|
}
|
56
|
}
|
53
|
|
57
|
|
54
|
show_version() {
|
58
|
show_version() {
|
|
|
|
|
77
|
local LogDir # directory to store logs
|
81
|
local LogDir # directory to store logs
|
78
|
local HeaderDir # directory to store headers by save_header()
|
82
|
local HeaderDir # directory to store headers by save_header()
|
79
|
local CdTo # change dir to this before running imapfilter
|
83
|
local CdTo # change dir to this before running imapfilter
|
|
|
84
|
+ local Certs # certificate storage
|
80
|
CfgDir="$IMAPDOMO_CFGDIR"
|
85
|
CfgDir="$IMAPDOMO_CFGDIR"
|
81
|
LogDir="$IMAPDOMO_USER_CACHE/logs"
|
86
|
LogDir="$IMAPDOMO_USER_CACHE/logs"
|
82
|
HeaderDir="$IMAPDOMO_USER_CACHE/headers"
|
87
|
HeaderDir="$IMAPDOMO_USER_CACHE/headers"
|
|
|
88
|
+ Certs="$IMAPDOMO_CFGDIR/certificates"
|
83
|
Debug=false
|
89
|
Debug=false
|
84
|
#shellcheck disable=SC2034
|
90
|
#shellcheck disable=SC2034
|
85
|
while true; do case $1 in
|
91
|
while true; do case $1 in
|
86
|
- -c) CdTo="$2"; shift 2 || usage -w "missing value to: $1" ;;
|
|
|
|
|
92
|
+ -c) CdTo="$2"; shift 2 || usage -w "missing value to: $1" ;;
|
87
|
-d) Debug=true; PRETTY_DEBUG=true; shift ;;
|
93
|
-d) Debug=true; PRETTY_DEBUG=true; shift ;;
|
|
|
94
|
+ -t) Certs="$2"; shift 2 || usage -w "missing value to: $1" ;;
|
88
|
-l) lshandlers; exit ;;
|
95
|
-l) lshandlers; exit ;;
|
89
|
-V|--version-semver) show_semversion ;;
|
96
|
-V|--version-semver) show_semversion ;;
|
90
|
--version) show_version ;;
|
97
|
--version) show_version ;;
|