sync-mail: Warn user as part of prehook

If no hook should be run before syncing (or a user-defined hook) then
the warning should fall under that and not be run as part of it.

Additionally takes care of multiple decryption requirements in a row.
This commit is contained in:
Marty Oehme 2023-02-25 17:11:00 +01:00
parent 89ed4615a7
commit 5d2542db51
Signed by: Marty
GPG Key ID: EDBF2ED917B2EF6A
1 changed files with 1 additions and 1 deletions

View File

@ -47,6 +47,7 @@ prehook() {
eval "$MBSYNC_PRE"
return 0
fi
checkwarnuser
imapfilter -c "${XDG_CONFIG_HOME:-$HOME/.config}/imapfilter/config.lua"
}
@ -142,7 +143,6 @@ elif [ -n "$1" ]; then
fi
main() {
checkwarnuser
enablegpgagent
prehook