aboutsummaryrefslogtreecommitdiff
path: root/mbsync
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-10-23 17:20:22 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-10-23 17:20:46 +0200
commitc015093c27fcda3114c7f9d23ebecaec1830ae6e (patch)
treedce9979ffae9793e8ad202335fe25f493011af3c /mbsync
parent73a71b9ae04215d83a49357fb3de3134dbcc7424 (diff)
downloaddotfiles-c015093c27fcda3114c7f9d23ebecaec1830ae6e.tar.gz
dotfiles-c015093c27fcda3114c7f9d23ebecaec1830ae6e.zip
[mbsync] add systemd files
Diffstat (limited to 'mbsync')
-rw-r--r--mbsync/mbsync.service7
-rw-r--r--mbsync/mbsync.timer10
-rw-r--r--mbsync/mbsyncrc79
3 files changed, 96 insertions, 0 deletions
diff --git a/mbsync/mbsync.service b/mbsync/mbsync.service
new file mode 100644
index 0000000..e35116f
--- /dev/null
+++ b/mbsync/mbsync.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Mailbox synchronization service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/mbsync -Va
+ExecStartPost=/usr/bin/notmuch new
diff --git a/mbsync/mbsync.timer b/mbsync/mbsync.timer
new file mode 100644
index 0000000..82ebb83
--- /dev/null
+++ b/mbsync/mbsync.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Mailbox synchronization timer
+
+[Timer]
+OnBootSec=2m
+OnUnitActiveSec=5m
+Unit=mbsync.service
+
+[Install]
+WantedBy=timers.target
diff --git a/mbsync/mbsyncrc b/mbsync/mbsyncrc
new file mode 100644
index 0000000..5f19d10
--- /dev/null
+++ b/mbsync/mbsyncrc
@@ -0,0 +1,79 @@
+### FAU ###
+
+IMAPAccount FAU
+Host faumail.uni-erlangen.de
+User aj46ezos
+PassCmd "pass email/FAU"
+SSLType IMAPS
+CertificateFile /etc/ssl/certs/ca-certificates.crt
+
+# The following line should work. If get certificate errors, uncomment the two following lines and read the "Troubleshooting" section.
+#CertificateFile ~/.cert/imap.gmail.com.pem
+#CertificateFile ~/.cert/Equifax_Secure_CA.pem
+
+IMAPStore FAU-remote
+Account FAU
+
+MaildirStore FAU-local
+Subfolders Verbatim
+# The trailing "/" is important
+Path ~/.local/share/maildir/FAU/
+Inbox ~/.local/share/maildir/FAU/INBOX
+
+Channel FAU
+Master :FAU-remote:
+Slave :FAU-local:
+# Or include everything
+Patterns *
+# Automatically create missing mailboxes, both locally and on the server
+Create Both
+# Save the synchronization state files in the relevant directory
+SyncState *
+
+### MUHQ ###
+
+IMAPAccount MUHQ
+Host antares.uberspace.de
+User muhq
+PassCmd "pass email/MUHQ"
+SSLType IMAPS
+CertificateFile /etc/ssl/certs/ca-certificates.crt
+
+IMAPStore MUHQ-remote
+Account MUHQ
+
+MaildirStore MUHQ-local
+Subfolders Verbatim
+Path ~/.local/share/maildir/MUHQ/
+Inbox ~/.local/share/maildir/MUHQ/INBOX
+
+Channel MUHQ
+Master :MUHQ-remote:
+Slave :MUHQ-local:
+Patterns *
+Create Both
+SyncState *
+
+### SNFMT ###
+
+IMAPAccount SNFMT
+Host alnilam.uberspace.de
+User snfmt
+PassCmd "pass email/SNFMT"
+SSLType IMAPS
+CertificateFile /etc/ssl/certs/ca-certificates.crt
+
+IMAPStore SNFMT-remote
+Account SNFMT
+
+MaildirStore SNFMT-local
+Subfolders Verbatim
+Path ~/.local/share/maildir/SNFMT/
+Inbox ~/.local/share/maildir/SNFMT/INBOX
+
+Channel SNFMT
+Master :SNFMT-remote:
+Slave :SNFMT-local:
+Patterns *
+Create Both
+SyncState *