Commit ca78eca6228a

Vincent Demeester <vincent@sbr.pm>
2025-01-27 18:15:16
users/vincent: re-enable gmail for backup and "moving" mails
I am forwaring everything to my main account (except work mails). This is more to have a local backup and be able to move mails from gmail to my main setup easily (the one that are not forwarded). Later, I will disable this one and *do it* manually on a backup server instead. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 5d4ec2e
Changed files (1)
users
users/vincent/default.nix
@@ -156,6 +156,23 @@ in
                 flavor = "gmail.com";
                 aerc.enable = true;
                 msmtp.enable = true;
+                # This is here for doing backup
+                mbsync = {
+                  enable = true;
+                  create = "both";
+                  expunge = "both";
+                  # Sync everything *but* "[Gmail] All Mail" to get the "organized" view.
+                  patterns = [ "*" "![Gmail]*" "[Gmail]Sent Mail" "[Gmail]Starred" "[Gmail]Trash" ];
+                  extraConfig = {
+                    channel = {
+                      Sync = "All";
+                    };
+                    account = {
+                      Timeout = 120;
+                      PipelineDepth = 1;
+                    };
+                  };
+                };
               };
               "redhat" = {
                 # primary = true; # because it's work, but it's really just for notmuch