about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-07-02 13:47:45 -0700
committerFranck Cuny <franck@fcuny.net>2022-07-02 14:39:21 -0700
commit33a6564091b90f71168ed3dbb276f76bbc8f4f3c (patch)
treed1de1cb6a8d79ad86225457ffc986118b3f48ec9
parentfeat(home/mail): add more rules for afew (diff)
downloadworld-33a6564091b90f71168ed3dbb276f76bbc8f4f3c.tar.gz
feat(home/mail): run afew before mbsync
Move the mails based on some rules, then we can synchronize local and
remote stores.

Change-Id: Iae46d94b14606c54a05efa0aa7eb5ca1eb1deb90
Reviewed-on: https://cl.fcuny.net/c/world/+/603
Tested-by: CI
Reviewed-by: Franck Cuny <franck@fcuny.net>
-rw-r--r--home/mail/accounts/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/home/mail/accounts/default.nix b/home/mail/accounts/default.nix
index 97a5bbd..c827850 100644
--- a/home/mail/accounts/default.nix
+++ b/home/mail/accounts/default.nix
@@ -72,6 +72,7 @@ in
         Environment = [
           "PASSWORD_STORE_DIR=${config.programs.password-store.settings.PASSWORD_STORE_DIR}"
         ];
+        ExecStartPre = "${pkgs.afew}/bin/afew -m -v";
         ExecStart = "${pkgs.isync}/bin/mbsync -a";
         ExecStartPost = "${pkgs.notmuch}/bin/notmuch new --quiet";
       };