syncthing: copy/backup ~/.cache/evolution/mail

Good enough for email backups. Openable with neomutt with minimal
setup:

```
$ mkdir -p x/cur; cd x
$ cp -s ~/.cache/evolution/mail/*/folders/Debian/cur/*/* cur/
$ neomutt -f .
```
This commit is contained in:
Motiejus Jakštys 2023-12-27 12:23:27 +02:00
parent 78debfa8b7
commit 2564b3e863
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,11 @@
id = "8lk0n-mm63y"; id = "8lk0n-mm63y";
label = "Books"; label = "Books";
}; };
Mail = {
devices = ["fwminex" "vno1-oh2"];
id = "66fmz-x6f1a";
label = "Mail";
};
M-Active = { M-Active = {
devices = ["mxp10" "fwminex" "vno1-oh2" "mtwork"]; devices = ["mxp10" "fwminex" "vno1-oh2" "mtwork"];
id = "f6fma-unkxq"; id = "f6fma-unkxq";
@ -158,6 +163,7 @@ in {
"/var/www/dl/mykolo" = mykolo; "/var/www/dl/mykolo" = mykolo;
"${cfg.dataDir}/M-V" = M-V; "${cfg.dataDir}/M-V" = M-V;
"${cfg.dataDir}/annex2/Books" = Books; "${cfg.dataDir}/annex2/Books" = Books;
"${cfg.dataDir}/annex2/Mail" = Mail;
"${cfg.dataDir}/annex2/M-Active" = M-Active; "${cfg.dataDir}/annex2/M-Active" = M-Active;
"${cfg.dataDir}/annex2/M-Camera" = M-Camera; "${cfg.dataDir}/annex2/M-Camera" = M-Camera;
"${cfg.dataDir}/annex2/M-Documents" = M-Documents; "${cfg.dataDir}/annex2/M-Documents" = M-Documents;
@ -172,6 +178,7 @@ in {
) )
// ( // (
lib.optionalAttrs (config.networking.hostName == "fwminex") { lib.optionalAttrs (config.networking.hostName == "fwminex") {
"${cfg.dataDir}/.cache/evolution/mail" = Mail;
"${cfg.dataDir}/Books" = Books; "${cfg.dataDir}/Books" = Books;
"${cfg.dataDir}/M-Active" = M-Active; "${cfg.dataDir}/M-Active" = M-Active;
"${cfg.dataDir}/M-Documents" = M-Documents; "${cfg.dataDir}/M-Documents" = M-Documents;