From 8667d64fedefb3e3ca4c96b400523a5bf7d895d0 Mon Sep 17 00:00:00 2001
From: Benedikt Peetz <benedikt.peetz@b-peetz.de>
Date: Sat, 29 Mar 2025 12:28:53 +0100
Subject: fix(modules/legacy/conf/neomutt): Upload changed imap boxes again

Otherwise, newly added Sent mail stays not-synced.
---
 modules/home.legacy/conf/neomutt/default.nix | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'modules/home.legacy')

diff --git a/modules/home.legacy/conf/neomutt/default.nix b/modules/home.legacy/conf/neomutt/default.nix
index e4fbcb39..10da8f0e 100644
--- a/modules/home.legacy/conf/neomutt/default.nix
+++ b/modules/home.legacy/conf/neomutt/default.nix
@@ -2,8 +2,13 @@
   programs.neomutt = {
     enable = true;
     package = pkgs.writeShellScriptBin "neomutt" ''
+      # Download newest mail
       systemctl --user start mbsync.service;
+
       ${pkgs.neomutt}/bin/neomutt;
+
+      # Upload changed things (e.g., new mail in Sent)
+      systemctl --user start mbsync.service;
     '';
     vimKeys = false; # see the modified ones below
     checkStatsInterval = 60;
-- 
cgit 1.4.1