about summary refs log tree commit diff
path: root/ops/nixos/dotfiles/offlineimaprc
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-01-04T15·08+0000
committerVincent Ambo <Vincent Ambo>2020-01-04T22·50+0000
commit1d687c53031277f72a5273b01dab9d4bf37bb862 (patch)
treeb09f359e4e950bc0d655db1241daae932142bf60 /ops/nixos/dotfiles/offlineimaprc
parent3638048c9bd3b1cc46685bb8a6a0c36c6532fdb5 (diff)
chore(ops/nixos): Move NixOS configuration one level up r/327
Diffstat (limited to 'ops/nixos/dotfiles/offlineimaprc')
-rw-r--r--ops/nixos/dotfiles/offlineimaprc39
1 files changed, 39 insertions, 0 deletions
diff --git a/ops/nixos/dotfiles/offlineimaprc b/ops/nixos/dotfiles/offlineimaprc
new file mode 100644
index 000000000000..78315447e4bd
--- /dev/null
+++ b/ops/nixos/dotfiles/offlineimaprc
@@ -0,0 +1,39 @@
+[general]
+accounts = tazjin, gmail
+
+[DEFAULT]
+ssl = yes
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+
+# Private GMail account (old):
+[Account gmail]
+maxage = 90
+localrepository = gmail-local
+remoterepository = gmail-remote
+synclabels = yes
+
+[Repository gmail-local]
+type = GmailMaildir
+localfolders = ~/mail/gmail
+
+[Repository gmail-remote]
+type = Gmail
+remoteuser = tazjin@gmail.com
+remotepassfile = ~/.config/mail/gmail-pass
+folderfilter = lambda folder: folder == 'INBOX'
+
+# Main private account:
+[Account tazjin]
+localrepository = tazjin-local
+remoterepository = tazjin-remote
+
+[Repository tazjin-local]
+type = Maildir
+localfolders = ~/mail/tazjin
+
+[Repository tazjin-remote]
+type = IMAP
+remotehost = mail.runbox.com
+remoteuser = mail@tazj.in
+remotepassfile = ~/.config/mail/tazjin-pass
+auth_mechanisms = LOGIN