offlineimaprc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. ##### My (demuredemeanor) offlineimaprc
  2. # Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
  3. # https://notabug.org/demure/dotfiles
  4. # legacy repo http://github.com/demure/dotfiles
  5. # vim:set syntax=sh:
  6. ## This is heavily inspired by Mark H. Nichols's post
  7. # http://zanshin.net/2015/01/19/teaching-a-homely-mutt-new-tricks/
  8. #
  9. # which in turn was inspired by Steve Losh's post
  10. # http://stevelosh.com/blog/2012/10/the-homely-mutt/
  11. #
  12. # Aside from using my accounts, and eventually a few tweaks,
  13. # I am /not/ using OS X's keychain...
  14. # I am using pass now, which is working quite well
  15. # https://github.com/sup-heliotrope/sup/wiki/Securely-Store-Password
  16. ### Main Settings ### {{{
  17. [general]
  18. ## ui = ttyui
  19. ui = ttyui
  20. #ui = blinkenlights # This is my preferred, but it is currently horribly broken...
  21. ## ui = quiet
  22. ##accounts = root,sdf,gmail,emu
  23. accounts = emu,sdf,gmail
  24. pythonfile=~/.mutt/offlineimap.py
  25. fsync = False
  26. ### End Main ### }}}
  27. ### sdf ### {{{
  28. [Account sdf]
  29. localrepository = sdf-Local
  30. remoterepository = sdf-Remote
  31. status-backend = sqlite
  32. [Repository sdf-Local]
  33. type = Maildir
  34. localfolders = ~/.mail/sdf
  35. [Repository sdf-Remote]
  36. ## This is set due to an annoying error by the exparimental xoauth2
  37. # https://bbs.archlinux.org/viewtopic.php?id=206424
  38. auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
  39. maxconnections = 3
  40. type = IMAP
  41. remoteuser = demure
  42. remotehost = ma.sdf.org
  43. remoteport = 993
  44. ssl = yes
  45. cert_fingerprint = 64742c3c557b49d0787d091c99223f13d6143b5d
  46. #remotepasseval = keyring.get_password('offlineimap', 'demure@sdf.org')
  47. remotepasseval = get_pass("sdf")
  48. realdelete = yes
  49. ### End sdf### }}}
  50. ### gmail ### {{{
  51. [Account gmail]
  52. localrepository = gmail-Local
  53. remoterepository = gmail-Remote
  54. status_backend = sqlite
  55. [Repository gmail-Local]
  56. type = Maildir
  57. localfolders = ~/.mail/gmail
  58. nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
  59. 'sent': '[Gmail]/Sent Mail',
  60. 'flagged': '[Gmail]/Starred',
  61. 'trash': '[Gmail]/Trash',
  62. 'archive': '[Gmail]/All Mail',
  63. }.get(folder, folder)
  64. [Repository gmail-Remote]
  65. ## This is set due to an annoying error by the exparimental xoauth2
  66. # https://bbs.archlinux.org/viewtopic.php?id=206424
  67. auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
  68. maxconnections = 1
  69. type = Gmail
  70. remoteuser = demuredemeanor@gmail.com
  71. ssl = yes
  72. sslcacertfile = /etc/ssl/certs/ca-certificates.crt
  73. #remotepasseval = keyring.get_password('offlineimap', 'demuredemeanor@gmail.com')
  74. remotepasseval = get_pass("gmail")
  75. realdelete = yes
  76. nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
  77. '[Gmail]/Sent Mail': 'sent',
  78. '[Gmail]/Starred': 'flagged',
  79. '[Gmail]/Trash': 'trash',
  80. '[Gmail]/All Mail': 'archive',
  81. }.get(folder, folder)
  82. folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
  83. '[Gmail]/Important',
  84. '[Gmail]/Spam',
  85. ]
  86. ### End gmail ### }}}
  87. ### emu ### {{{
  88. [Account emu]
  89. localrepository = emu-Local
  90. remoterepository = emu-Remote
  91. status_backend = sqlite
  92. [Repository emu-Local]
  93. type = Maildir
  94. localfolders = ~/.mail/emu
  95. nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
  96. 'sent': '[Gmail]/Sent Mail',
  97. 'flagged': '[Gmail]/Starred',
  98. 'trash': '[Gmail]/Trash',
  99. 'archive': '[Gmail]/All Mail',
  100. }.get(folder, folder)
  101. [Repository emu-Remote]
  102. ## This is set due to an annoying error by the exparimental xoauth2
  103. # https://bbs.archlinux.org/viewtopic.php?id=206424
  104. auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
  105. maxconnections = 1
  106. type = Gmail
  107. remoteuser = amcbean@emich.edu
  108. ssl = yes
  109. sslcacertfile = /etc/ssl/certs/ca-certificates.crt
  110. #remotepasseval = keyring.get_password('offlineimap', 'amcbean@emich.edu')
  111. remotepasseval = get_pass("emu")
  112. realdelete = yes
  113. nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
  114. '[Gmail]/Sent Mail': 'sent',
  115. '[Gmail]/Starred': 'flagged',
  116. '[Gmail]/Trash': 'trash',
  117. '[Gmail]/All Mail': 'archive',
  118. }.get(folder, folder)
  119. folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
  120. '[Gmail]/Important',
  121. '[Gmail]/Spam',
  122. ]
  123. ### End gmail ### }}}