From 5d2542db517f9946d6348737e6be32ec444657d9 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 25 Feb 2023 17:11:00 +0100 Subject: [PATCH] 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. --- office/.local/bin/sync-mail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/office/.local/bin/sync-mail b/office/.local/bin/sync-mail index 098052b..d52ce92 100755 --- a/office/.local/bin/sync-mail +++ b/office/.local/bin/sync-mail @@ -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