about summary refs log tree commit diff
path: root/debian/.config/systemd/user/mbsync-primary.service
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-05-30 14:59:12 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-05-30 14:59:12 +0700
commit7f29a1e519d51934ecf86ddd6fc7d080b2eaaf91 (patch)
tree2c3dc15e5882fdd61636d714cc877727f2261970 /debian/.config/systemd/user/mbsync-primary.service
parente36712f2b02e77080e255c7775852577b51010ad (diff)
downloaddotfiles-7f29a1e519d51934ecf86ddd6fc7d080b2eaaf91.tar.gz
Set up mbsync
Diffstat (limited to 'debian/.config/systemd/user/mbsync-primary.service')
-rw-r--r--debian/.config/systemd/user/mbsync-primary.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/.config/systemd/user/mbsync-primary.service b/debian/.config/systemd/user/mbsync-primary.service
new file mode 100644
index 0000000..8ce0e6f
--- /dev/null
+++ b/debian/.config/systemd/user/mbsync-primary.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Synchronize IMAP and MailDir for primary account
+Documentation=man:mbsync(1)
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/mbsync primary
+Type=oneshot
+
+[Install]
+WantedBy=default.target