A bunch of changes

This commit is contained in:
Alexander Rosenberg 2023-05-26 21:10:38 -07:00
parent 2111b7f937
commit b613c5b5c5
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
8 changed files with 25 additions and 9 deletions

View File

@ -8,4 +8,4 @@ notmuch tag +spam folder:Spam
notmuch tag -starred not folder:Starred notmuch tag -starred not folder:Starred
hy ~/scripts/notify-mail.hy hy "${HOME}/scripts/mail/notify-mail.hy"

View File

@ -1,5 +0,0 @@
#!/usr/bin/env zsh
mbsync -a
notmuch new
~/scripts/notmuch-post.sh

View File

@ -1,7 +1,6 @@
[Unit] [Unit]
Description=Copy KeePassXC database file to Nextcloud for backup Description=Copy KeePassXC database file to Nextcloud for backup
Wants=default.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/home/zander/scripts/backup-keepassxc-db.sh %i ExecStart=%h/scripts/backup-keepassxc-db.sh %i

11
systemd/sync-mail.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Sync mail with mbsync and notmuch
[Service]
Type=oneshot
ExecStart=-mbsync -a ; notmuch new
RuntimeMaxSec=3m
Restart=on-failure
[Install]
WantedBy=default.target

12
systemd/sync-mail.timer Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Sync mail every minute with mbsync and notmuch
[Timer]
OnCalendar=*-*-* *:*:00
FixedRandomDelay=true
AccuracySec=10s
RandomizedDelaySec=45m
Persistent=yes
[Install]
WantedBy=default.target

View File

@ -1,6 +1,5 @@
[Unit] [Unit]
Description=Sync calendar %i with vdirsyncer Description=Sync calendar %i with vdirsyncer
Wants=default.target
[Service] [Service]
Type=simple Type=simple