Permalink
Browse files

Complete rework of mutt setup

Returning to mutt as a mail interface. Recreated setup to relearn it.
Deprecated prior setup.
  • Loading branch information...
1 parent 2a58d69 commit e571dfb8572962f074c2564490d020d08d152b66 @zanshin committed Jan 18, 2015
Showing with 1,919 additions and 0 deletions.
  1. 0 {mutt → mutt-deprecated}/.msmtprc
  2. 0 {mutt → mutt-deprecated}/.mutt/Equifax_Secure_CA.cert
  3. 0 {mutt → mutt-deprecated}/.mutt/accounts/chef
  4. 0 {mutt → mutt-deprecated}/.mutt/accounts/codeprole
  5. 0 {mutt → mutt-deprecated}/.mutt/accounts/mhn
  6. 0 {mutt → mutt-deprecated}/.mutt/mailcap
  7. 0 {mutt → mutt-deprecated}/.mutt/muttrc
  8. 0 {mutt → mutt-deprecated}/.mutt/offlineimap.py
  9. BIN {mutt → mutt-deprecated}/.mutt/offlineimap.pyc
  10. 0 {mutt → mutt-deprecated}/.mutt/themes/mutt-colors-solarized-dark-16.muttrc
  11. 0 {mutt → mutt-deprecated}/.mutt/themes/mutt-colors-solarized-dark-256.muttrc
  12. 0 {mutt → mutt-deprecated}/.mutt/themes/mutt-colors-solarized-light-16.muttrc
  13. 0 {mutt → mutt-deprecated}/.mutt/themes/mutt-colors-solarized-light-256.muttrc
  14. 0 {mutt → mutt-deprecated}/.mutt/themes/mutt-colors-solarized-template.muttrc
  15. 0 {mutt → mutt-deprecated}/.mutt/themes/tomorrow-night.muttrc
  16. 0 {mutt → mutt-deprecated}/.mutt/view_attachment.sh
  17. 0 {mutt → mutt-deprecated}/.notmuch-config
  18. 0 {mutt → mutt-deprecated}/.offlineimaprc
  19. 0 {mutt → mutt-deprecated}/.urlview
  20. +91 −0 mutt/README.markdown
  21. +52 −0 mutt/msmtprc
  22. +17 −0 mutt/mutt/Equifax_Secure_CA.cert
  23. +91 −0 mutt/mutt/README.markdown
  24. +14 −0 mutt/mutt/accounts/chef
  25. +14 −0 mutt/mutt/accounts/codeprole
  26. +14 −0 mutt/mutt/accounts/mark
  27. +14 −0 mutt/mutt/accounts/mhn
  28. +14 −0 mutt/mutt/accounts/root
  29. +21 −0 mutt/mutt/mailcap
  30. +225 −0 mutt/mutt/muttrc
  31. +19 −0 mutt/mutt/offlineimap.py
  32. BIN mutt/mutt/offlineimap.pyc
  33. +42 −0 mutt/mutt/themes/colors.muttrc
  34. +151 −0 mutt/mutt/themes/mutt-colors-solarized-dark-16.muttrc
  35. +151 −0 mutt/mutt/themes/mutt-colors-solarized-dark-256.muttrc
  36. +151 −0 mutt/mutt/themes/mutt-colors-solarized-light-16.muttrc
  37. +151 −0 mutt/mutt/themes/mutt-colors-solarized-light-256.muttrc
  38. +151 −0 mutt/mutt/themes/mutt-colors-solarized-template.muttrc
  39. +128 −0 mutt/mutt/themes/tomorrow-night.muttrc
  40. +97 −0 mutt/mutt/themes/vombatidae.muttrc
  41. +127 −0 mutt/mutt/view_attachment.sh
  42. +88 −0 mutt/notmuch-config
  43. +95 −0 mutt/offlineimaprc
  44. +1 −0 mutt/urlview
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -0,0 +1,91 @@
+Here be Dragons
+
+#Introduction
+The `mutt` directory in my dotfiles contains the configuration of my mutt mail setup. This is heavily influenced by [The Homely Mutt](http://stevelosh.com/blog/2012/10/the-homely-mutt/ "The Homely Mutt"). You should go read that from top to bottom several times before attempting to use or mimic my mutt setup.
+
+Unlike Git or Vim or tmux where lack of understanding us relatively harmless, screwing up mutt or offlineimap could result in permanently lost email.
+
+PROCEED AT YOUR OWN RISK.
+
+#Dependencies
+This configuration relies upon a number of tools. They are presented in the order The Homely Mutt introduces them. (You did read that, right?)
+
+* Offlineimap
+
+ git clone git://github.com/spaetz/offlineimap.git
+ cd offlineimap
+ git checkout 679c491c56c981961e18aa43b31955900491d7a3
+ python setup.py install
+
+Note: `sudo` may be required for the install step.
+
+* Mutt
+
+ $ brew install mutt --sidebar-patch
+
+At present the brew formula for mutt does not include the sidebar patch. Follow these steps to edit the formula:
+
+ $ brew edit mutt
+
+Scroll down to a section of commands that all start with "option", sort of like:
+
+ option "with-debug", "Build with debug option enabled"
+ option "with-trash-patch", "Apply trash folder patch"
+ option "with-s-lang", "Build against slang instead of ncurses"
+ option "with-ignore-thread-patch", "Apply ignore-thread patch"
+ option "with-pgp-verbose-mime-patch", "Apply PGP verbose mime patch"
+ option "with-confirm-attachment-patch", "Apply confirm attachment patch"
+
+Add this line to the bottom of the options:
+
+ option "with-sidebar-patch", "Apply sidebar patch"
+
+Scroll down further to the section with all the patches, e.g.
+
+ patch do
+ url "http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-6.2+deb7u1/features/trash-folder"
+ sha1 "6c8ce66021d89a063e67975a3730215c20cf2859"
+ end if build.with? "trash-patch"
+
+And add this block:
+
+ patch do
+ url "https://raw.github.com/nedos/mutt-sidebar-patch/7ba0d8db829fe54c4940a7471ac2ebc2283ecb15/mutt-sidebar.patch"
+ sha1 "1e151d4ff3ce83d635cf794acf0c781e1b748ff1"
+ end if build.with? "sidebar-patch"
+
+Exit the editor and run the `brew install mutt --with-sidebbar-patch` command.
+
+* urlview
+
+ $ brew install urlview
+
+* msmtp
+
+ $ brew install msmtp
+
+* contacts (requires full Xcode install)
+
+ $ brew install contacts
+
+* notmuch
+
+ $ brew install notmuch
+
+#Setup
+With the dependencies installled, symlinks can be created to the contents of the `~/.dotfiles/mutt` directory.
+
+ $ ln -s ~/.dotfiles/mutt ~/.mutt
+ $ ln -s ~/.dotfiles/mutt/offlineimaprc ~/.offlineimaprc
+ $ ln -s ~/.dotfile/mutt/msmtprc ~/.msmtprc
+ $ ln -s ~/.dotfiles/mutt/notmuch-config ~/.notmuch-config
+ $ ln -s ~/.dotfiles/mutt/urlview ~/.urlview
+
+To download mail:
+
+ $ mkdir ~/.mail
+ $ offlineimap
+
+Note, this will likely take a very long time.
+
+
View
@@ -0,0 +1,52 @@
+account mark
+host smtp.webfaction.com
+port 587
+protocol smtp
+auth on
+from mark@zanshin.net
+user mark_zanshin
+tls on
+tls_trust_file ~/.mutt/Equifax_Secure_CA.cert
+
+account root
+host smtp.webfaction.com
+port 587
+protocol smtp
+auth on
+from root@zanshin.net
+user root_zanshin
+tls on
+tls_trust_file ~/.mutt/Equifax_Secure_CA.cert
+
+account chef
+host smtp.webfaction.com
+port 587
+protocol smtp
+auth on
+from chef@zanshin.net
+user chef_zanshin
+tls on
+tls_trust_file ~/.mutt/Equifax_Secure_CA.cert
+
+account codeprole
+host smtp.gmail.com
+port 587
+protocol smtp
+auth on
+from code.prole@gmail.com
+user code.prole@gmail.com
+tls on
+tls_trust_file ~/.mutt/Equifax_Secure_CA.cert
+
+account mhn
+host smtp.office365.com
+port 587
+protocol smtp
+auth on
+from mhn@ksu.edu
+user mhn@ksu.edu
+tls on
+tls_starttls on
+tls_certcheck off
+
+account default : mark
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE-----
+MIIDIDCCAomgAwIBAgIENd70zzANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJVUzEQMA4GA1UE
+ChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5
+MB4XDTk4MDgyMjE2NDE1MVoXDTE4MDgyMjE2NDE1MVowTjELMAkGA1UEBhMCVVMxEDAOBgNVBAoT
+B0VxdWlmYXgxLTArBgNVBAsTJEVxdWlmYXggU2VjdXJlIENlcnRpZmljYXRlIEF1dGhvcml0eTCB
+nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwV2xWGcIYu6gmi0fCG2RFGiYCh7+2gRvE4RiIcPR
+fM6fBeC4AfBONOziipUEZKzxa1NfBbPLZ4C/QgKO/t0BCezhABRP/PvwDN1Dulsr4R+AcJkVV5MW
+8Q+XarfCaCMczE1ZMKxRHjuvK9buY0V7xdlfUNLjUA86iOe/FP3gx7kCAwEAAaOCAQkwggEFMHAG
+A1UdHwRpMGcwZaBjoGGkXzBdMQswCQYDVQQGEwJVUzEQMA4GA1UEChMHRXF1aWZheDEtMCsGA1UE
+CxMkRXF1aWZheCBTZWN1cmUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoG
+A1UdEAQTMBGBDzIwMTgwODIyMTY0MTUxWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUSOZo+SvS
+spXXR9gjIBBPM5iQn9QwHQYDVR0OBBYEFEjmaPkr0rKV10fYIyAQTzOYkJ/UMAwGA1UdEwQFMAMB
+Af8wGgYJKoZIhvZ9B0EABA0wCxsFVjMuMGMDAgbAMA0GCSqGSIb3DQEBBQUAA4GBAFjOKer89961
+zgK5F7WF0bnj4JXMJTENAKaSbn+2kmOeUJXRmm/kEd5jhW6Y7qj/WsjTVbJmcVfewCHrPSqnI0kB
+BIZCe/zuf6IWUrVnZ9NA2zsmWLIodz2uFHdh1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee95
+70+sB3c4
+-----END CERTIFICATE-----
@@ -0,0 +1,91 @@
+Here be Dragons
+
+#Introduction
+The `mutt` directory in my dotfiles contains the configuration of my mutt mail setup. This is heavily influenced by [The Homely Mutt](http://stevelosh.com/blog/2012/10/the-homely-mutt/ "The Homely Mutt"). You should go read that from top to bottom several times before attempting to use or mimic my mutt setup.
+
+Unlike Git or Vim or tmux where lack of understanding us relatively harmless, screwing up mutt or offlineimap could result in permanently lost email.
+
+PROCEED AT YOUR OWN RISK.
+
+#Dependencies
+This configuration relies upon a number of tools. They are presented in the order The Homely Mutt introduces them. (You did read that, right?)
+
+* Offlineimap
+
+ git clone git://github.com/spaetz/offlineimap.git
+ cd offlineimap
+ git checkout 679c491c56c981961e18aa43b31955900491d7a3
+ python setup.py install
+
+Note: `sudo` may be required for the install step.
+
+* Mutt
+
+ $ brew install mutt --sidebar-patch
+
+At present the brew formula for mutt does not include the sidebar patch. Follow these steps to edit the formula:
+
+ $ brew edit mutt
+
+Scroll down to a section of commands that all start with "option", sort of like:
+
+ option "with-debug", "Build with debug option enabled"
+ option "with-trash-patch", "Apply trash folder patch"
+ option "with-s-lang", "Build against slang instead of ncurses"
+ option "with-ignore-thread-patch", "Apply ignore-thread patch"
+ option "with-pgp-verbose-mime-patch", "Apply PGP verbose mime patch"
+ option "with-confirm-attachment-patch", "Apply confirm attachment patch"
+
+Add this line to the bottom of the options:
+
+ option "with-sidebar-patch", "Apply sidebar patch"
+
+Scroll down further to the section with all the patches, e.g.
+
+ patch do
+ url "http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-6.2+deb7u1/features/trash-folder"
+ sha1 "6c8ce66021d89a063e67975a3730215c20cf2859"
+ end if build.with? "trash-patch"
+
+And add this block:
+
+ patch do
+ url "https://raw.github.com/nedos/mutt-sidebar-patch/7ba0d8db829fe54c4940a7471ac2ebc2283ecb15/mutt-sidebar.patch"
+ sha1 "1e151d4ff3ce83d635cf794acf0c781e1b748ff1"
+ end if build.with? "sidebar-patch"
+
+Exit the editor and run the `brew install mutt --with-sidebbar-patch` command.
+
+* urlview
+
+ $ brew install urlview
+
+* msmtp
+
+ $ brew install msmtp
+
+* contacts (requires full Xcode install)
+
+ $ brew install contacts
+
+* notmuch
+
+ $ brew install notmuch
+
+#Setup
+With the dependencies installled, symlinks can be created to the contents of the `~/.dotfiles/mutt` directory.
+
+ $ ln -s ~/.dotfiles/mutt ~/.mutt
+ $ ln -s ~/.dotfiles/mutt/offlineimaprc ~/.offlineimaprc
+ $ ln -s ~/.dotfile/mutt/msmtp ~/.msmtp
+ $ ln -s ~/.dotfiles/mutt/notmuch-config ~/.notmuch-config
+ $ ln -s ~/.dotfiles/mutt/urlview ~/.urlview
+
+To download mail:
+
+ $ mkdir ~/.mail
+ $ offlineimap
+
+Note, this will likely take a very long time.
+
+
@@ -0,0 +1,14 @@
+# Account Settings ------------------------------
+
+set from = "chef@zanshin.net"
+set sendmail = "/usr/local/bin/msmtp -a chef"
+
+# Default inbox.
+set spoolfile = "+chef/INBOX"
+
+# Other special folders.
+set mbox = "+chef/archive"
+set postponed = "+chef/drafts"
+set record = "+chef/Sent Messages"
+
+color status yellow default
@@ -0,0 +1,14 @@
+# Account Settings ------------------------------
+
+set from = "code.prole@gmail.com"
+set sendmail = "/usr/local/bin/msmtp -a codeprole"
+
+# Default inbox.
+set spoolfile = "+codeprole/INBOX"
+
+# Other special folders.
+set mbox = "+codeprole/archive"
+set postponed = "+codeprole/drafts"
+set record = "+codeprole/sent"
+
+color status green default
@@ -0,0 +1,14 @@
+# Account Settings ------------------------------
+
+set from = "mark@zanshin.net"
+set sendmail = "/usr/local/bin/msmtp -a mark"
+
+# Default inbox.
+set spoolfile = "+mark/INBOX"
+
+# Other special folders.
+set mbox = "+mark/archive"
+set postponed = "+mark/drafts"
+set record = "+mark/Sent Messages"
+
+color status yellow default
@@ -0,0 +1,14 @@
+# Account Settings ------------------------------
+
+set from = "mhn@ksu.edu"
+set sendmail = "/usr/local/bin/msmtp -a mhn"
+
+# Default inbox.
+set spoolfile = "+mhn/INBOX"
+
+# Other special folders.
+set mbox = "+mhn/Archive"
+set postponed = "+mhn/Drafts"
+set record = "+mhn/Sent Items"
+
+color status yellow default
@@ -0,0 +1,14 @@
+# Account Settings -----
+
+set from = "root@zanshin.net"
+set sendmail = "/usr/local/bin/msmtp -a root"
+
+# Default inbox.
+set spoolfile = "+root/INBOX"
+
+# Other special folders.
+set mbox = "+root/archive"
+set postponed = "+root/drafts"
+set record = "+root/Sent Messages"
+
+color status yellow default
View
@@ -0,0 +1,21 @@
+# MS Word Documents
+application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app'
+
+# Images
+image/jpg; ~/.mutt/view_attachment.sh %s jpg
+image/jpeg; ~/.mutt/view_attachment.sh %s jpg
+image/pjpeg; ~/.mutt/view_attachment.sh %s jpg
+image/png; ~/.mutt/view_attachment.sh %s png
+image/gif; ~/.mutt/view_attachment.sh %s gif
+
+# PDFs
+application/pdf; ~/.mutt/view_attachment.sh %s pdf
+
+# HTML
+text/html; ~/.mutt/view_attachment.sh %s html
+
+# RTF
+text/rtf; ~/.mutt/view_attachment.sh %s rtf
+
+# Unidentified files
+application/octet-stream; ~/.mutt/view_attachment.sh %s "-"
Oops, something went wrong.

0 comments on commit e571dfb

Please sign in to comment.