123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- ##### My (demuredemeanor) offlineimaprc
- # Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
- # https://notabug.org/demure/dotfiles
- # legacy repo http://github.com/demure/dotfiles
- # vim:set syntax=sh:
- ## This is heavily inspired by Mark H. Nichols's post
- # http://zanshin.net/2015/01/19/teaching-a-homely-mutt-new-tricks/
- #
- # which in turn was inspired by Steve Losh's post
- # http://stevelosh.com/blog/2012/10/the-homely-mutt/
- #
- # Aside from using my accounts, and eventually a few tweaks,
- # I am /not/ using OS X's keychain...
- # I am using pass now, which is working quite well
- # https://github.com/sup-heliotrope/sup/wiki/Securely-Store-Password
- ### Main Settings ### {{{
- [general]
- #ui = ttyui
- ui = blinkenlights
- ## ui = quiet
- #accounts = emu,sdf,gmail,vps
- accounts = sdf,gmail,vps
- pythonfile=~/.config/neomutt/offlineimap.py
- fsync = False
- ### End Main ### }}}
- ### sdf ### {{{
- [Account sdf]
- localrepository = sdf-Local
- remoterepository = sdf-Remote
- postsynchook = [ -e $HOME/.notmuch-config ] && notmuch new
- [Repository sdf-Local]
- type = Maildir
- localfolders = ~/.mail/sdf
- [Repository sdf-Remote]
- ## This is set due to an annoying error by the exparimental xoauth2
- # https://bbs.archlinux.org/viewtopic.php?id=206424
- auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
- maxconnections = 3
- type = IMAP
- remoteuser = demure
- remotehost = ma.sdf.org
- remoteport = 993
- ssl = yes
- ## temp setting due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907079
- ## Left in place due to issue with MA cert size?
- ssl_version = tls1_2
- sslcacertfile = /etc/ssl/certs/ca-certificates.crt
- remotepasseval = get_pass("mail-sdf-imap")
- realdelete = True
- ### End sdf ### }}}
- ### vps ### {{{
- [Account vps]
- localrepository = vps-Local
- remoterepository = vps-Remote
- postsynchook = [ -e $HOME/.notmuch-config ] && notmuch new
- [Repository vps-Local]
- type = Maildir
- localfolders = ~/.mail/vps
- [Repository vps-Remote]
- maxconnections = 3
- type = IMAP
- remoteuser = demure@demu.red
- remotehost = mail.gandi.net
- remoteport = 993
- ssl = yes
- sslcacertfile = /etc/ssl/certs/ca-certificates.crt
- remotepasseval = get_pass("mail-vps")
- realdelete = True
- ### End vps ### }}}
- ### gmail ### {{{
- [Account gmail]
- localrepository = gmail-Local
- remoterepository = gmail-Remote
- ## Needs GmailMaildir set
- synclabels = yes
- ## Where sync labels are stored
- labelsheader = X-Keywords
- postsynchook = [ -e $HOME/.notmuch-config ] && notmuch new
- [Repository gmail-Local]
- type = GmailMaildir
- localfolders = ~/.mail/gmail
- nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
- 'sent': '[Gmail]/Sent Mail',
- 'flagged': '[Gmail]/Starred',
- 'trash': '[Gmail]/Trash',
- 'archive': '[Gmail]/All Mail',
- }.get(folder, folder)
- [Repository gmail-Remote]
- ## This is set due to an annoying error by the exparimental xoauth2
- # https://bbs.archlinux.org/viewtopic.php?id=206424
- auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
- maxconnections = 1
- type = Gmail
- remoteuser = demuredemeanor@gmail.com
- ssl_version = tls1_2
- ssl = yes
- sslcacertfile = /etc/ssl/certs/ca-certificates.crt
- remotepasseval = get_pass("mail-gmail")
- ## This setting removes mail for good, default of 'no' just strips gmail label (think inbox)
- realdelete = True
- nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
- '[Gmail]/Sent Mail': 'sent',
- '[Gmail]/Starred': 'flagged',
- '[Gmail]/Trash': 'trash',
- '[Gmail]/All Mail': 'archive',
- }.get(folder, folder)
- folderfilter = lambda folder: folder in ['[Gmail]/Drafts',
- '[Gmail]/Sent Mail',
- '[Gmail]/Starred',
- '[Gmail]/Trash',
- '[Gmail]/All Mail',
- 'INBOX',
- 'People',
- 'Orders',
- 'Bulletin',
- ]
- ### End gmail ### }}}
|