diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-14T11·45+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-14T11·45+0000 |
commit | 74b5054a43132580fba7e834efc4a39e013a5957 (patch) | |
tree | 655e372096e6a9a09486a16d142fbbd8e86a4882 /infra/nixos/dotfiles/offlineimaprc | |
parent | 3071ffdc8afa83c9ddf04537943087ca71b8d097 (diff) | |
parent | 3f199f96506d2559dd51d8fff629790e057c9149 (diff) |
merge(nixos): Merge (unrelated) NixOS config history into infra/ r/132
Diffstat (limited to 'infra/nixos/dotfiles/offlineimaprc')
-rw-r--r-- | infra/nixos/dotfiles/offlineimaprc | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/infra/nixos/dotfiles/offlineimaprc b/infra/nixos/dotfiles/offlineimaprc new file mode 100644 index 000000000000..dd4752f4c36f --- /dev/null +++ b/infra/nixos/dotfiles/offlineimaprc @@ -0,0 +1,61 @@ +[general] +accounts = aprila, tazjin, gmail + +[DEFAULT] +ssl = yes +sslcacertfile = /etc/ssl/certs/ca-certificates.crt + +# Main work account: +[Account aprila] +localrepository = aprila-local +remoterepository = aprila-remote + +[Repository aprila-local] +type = Maildir +localfolders = ~/mail/aprila + +[Repository aprila-remote] +type = IMAP +remotehost = outlook.office365.com +remoteuser = vincent@aprila.no +remotepassfile = ~/.config/mail/aprila-pass +# Office365 is a naughty boy when it comes to IMAP. Even worse, they +# also seem to have decided that they should change IMAP folder names +# based on the UI language. +# +# I can't be bothered to implement the entire (relatively long) +# blacklist, so I'll instead whitelist relevant folders: +folderfilter = lambda folder: folder in ['INBOX', 'Arkiv', 'Sende element'] + +# 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 |