offlineimaprc 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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 = blinkenlights
  20. ## ui = quiet
  21. ##accounts = root,sdf,gmail,emu
  22. accounts = emu,sdf,gmail
  23. pythonfile=~/.mutt/offlineimap.py
  24. fsync = False
  25. ### End Main ### }}}
  26. ### sdf ### {{{
  27. [Account sdf]
  28. localrepository = sdf-Local
  29. remoterepository = sdf-Remote
  30. postsynchook = [ -e $HOME/.notmuch-config ] && notmuch new
  31. [Repository sdf-Local]
  32. type = Maildir
  33. localfolders = ~/.mail/sdf
  34. [Repository sdf-Remote]
  35. ## This is set due to an annoying error by the exparimental xoauth2
  36. # https://bbs.archlinux.org/viewtopic.php?id=206424
  37. auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
  38. maxconnections = 3
  39. type = IMAP
  40. remoteuser = demure
  41. remotehost = ma.sdf.org
  42. remoteport = 993
  43. ssl = yes
  44. ## temp setting due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907079
  45. ## Left in place due to issue with MA cert size?
  46. ssl_version = tls1_2
  47. #cert_fingerprint = 5c3c0973316f28669c7c7f91dd3cc1698475e8b0ccb54267da99018bf5f2878018ef0d7ce1dad3868d57cc4be0d0c4c439c224403640b4eac0f03736f46dbe47
  48. cert_fingerprint = 76ff9a3e19ed7e7b7a40d1ef2b82177a65d41d09419ba0a584b891e18eb03aa0967cddd649388b845e63501637d56f8653303396d6d6576ec0e69bb59b473ac9
  49. remotepasseval = get_pass("mail-sdf-imap")
  50. realdelete = True
  51. ### End sdf### }}}
  52. ### gmail ### {{{
  53. [Account gmail]
  54. localrepository = gmail-Local
  55. remoterepository = gmail-Remote
  56. ## Needs GmailMaildir set
  57. synclabels = yes
  58. ## Where sync labels are stored
  59. labelsheader = X-Keywords
  60. postsynchook = [ -e $HOME/.notmuch-config ] && notmuch new
  61. [Repository gmail-Local]
  62. type = GmailMaildir
  63. localfolders = ~/.mail/gmail
  64. nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
  65. 'sent': '[Gmail]/Sent Mail',
  66. 'flagged': '[Gmail]/Starred',
  67. 'trash': '[Gmail]/Trash',
  68. 'archive': '[Gmail]/All Mail',
  69. }.get(folder, folder)
  70. [Repository gmail-Remote]
  71. ## This is set due to an annoying error by the exparimental xoauth2
  72. # https://bbs.archlinux.org/viewtopic.php?id=206424
  73. auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
  74. maxconnections = 1
  75. type = Gmail
  76. remoteuser = demuredemeanor@gmail.com
  77. ssl = yes
  78. sslcacertfile = /etc/ssl/certs/ca-certificates.crt
  79. remotepasseval = get_pass("mail-gmail")
  80. ## This setting removes mail for good, default of 'no' just strips gmail label (think inbox)
  81. realdelete = True
  82. nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
  83. '[Gmail]/Sent Mail': 'sent',
  84. '[Gmail]/Starred': 'flagged',
  85. '[Gmail]/Trash': 'trash',
  86. '[Gmail]/All Mail': 'archive',
  87. }.get(folder, folder)
  88. folderfilter = lambda folder: folder in ['[Gmail]/Drafts',
  89. '[Gmail]/Sent Mail',
  90. '[Gmail]/Starred',
  91. '[Gmail]/Trash',
  92. '[Gmail]/All Mail',
  93. 'INBOX',
  94. 'People',
  95. 'Orders',
  96. 'News Letters',
  97. ]
  98. ### End gmail ### }}}
  99. ### EMU ### {{{
  100. [Account emu]
  101. localrepository = emu-Local
  102. remoterepository = emu-Remote
  103. postsynchook = [ -e $HOME/.notmuch-config ] && notmuch new
  104. [Repository emu-Local]
  105. type = Maildir
  106. localfolders = ~/.mail/emu
  107. nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
  108. 'sent': '[Gmail]/Sent Mail',
  109. 'flagged': '[Gmail]/Starred',
  110. 'trash': '[Gmail]/Trash',
  111. 'archive': '[Gmail]/All Mail',
  112. }.get(folder, folder)
  113. [Repository emu-Remote]
  114. ## This is set due to an annoying error by the exparimental xoauth2
  115. # https://bbs.archlinux.org/viewtopic.php?id=206424
  116. auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
  117. maxconnections = 1
  118. type = Gmail
  119. remoteuser = amcbean@emich.edu
  120. ssl = yes
  121. sslcacertfile = /etc/ssl/certs/ca-certificates.crt
  122. remotepasseval = get_pass("mail-emu")
  123. realdelete = True
  124. nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
  125. '[Gmail]/Sent Mail': 'sent',
  126. '[Gmail]/Starred': 'flagged',
  127. '[Gmail]/Trash': 'trash',
  128. '[Gmail]/All Mail': 'archive',
  129. }.get(folder, folder)
  130. folderfilter = lambda folder: folder in ['[Gmail]/Drafts',
  131. '[Gmail]/Sent Mail',
  132. '[Gmail]/Starred',
  133. '[Gmail]/Trash',
  134. '[Gmail]/All Mail',
  135. 'INBOX',
  136. ]
  137. ### End EMU ### }}}