From anonymous, 7 Years ago, written in Bash.
Embed
  1. # GMail Account
  2. source ~/.mutt/accounts
  3. set from = "me@the-compiler.org"
  4. set realname = "Florian Bruhin"
  5. set folder = "imaps://imap.gmail.com:993"
  6. set spoolfile = "+INBOX"
  7. set postponed="+[Gmail]/Drafts"
  8. set query_command = "goobook query '%s'"
  9. # Timeouts
  10. set imap_keepalive = 300
  11. set timeout=15
  12. set mail_check=60
  13.  
  14. # Directories and Files
  15. set header_cache=~/.mutt/cache/headers
  16. set message_cachedir=~/.mutt/cache/bodies
  17. set certificate_file=~/.mutt/certificates
  18. set signature = "cat /home/florian/.mutt/sig; fortune -n 158 -s | tr '\n' ' ' | sed 's/[\t ][\t ]*/ /g' | fold -s -w 79|"
  19. set alias_file = ~/.mutt/alias
  20. set mailcap_path=~/.mutt/mailcap
  21.  
  22. # Attachment stuff
  23. auto_view text/html application/pdf image/*
  24. mime_lookup application/octet-stream
  25. alternative_order text/enriched text/plain text/html
  26.  
  27. # GMail-like shortcuts
  28. macro index,pager Y "<save-message>=[Gmail]/All<quote-char> Mail<enter><enter>" "Archive"
  29. macro index,pager x "<delete-message><sync-mailbox>" "Delete and expunge"
  30. macro index,pager S "<save-message>=[Gmail]/Spam<enter><enter>" "Spam"
  31. macro index,pager I "<save-message>=INBOX<enter><enter>" "Inbox"
  32. macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
  33. macro index ga "<change-folder>=[Gmail]/All<quote-char> Mail<enter>" "Go to all mail"
  34. macro index gt "<change-folder>=[Gmail]/Sent<quote-char> Mail<enter>" "Go to sent Mail"
  35. macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
  36. macro index gs "<change-folder>=[Gmail]/Spam<enter>" "Go to Spam"
  37.  
  38. # Sorting
  39. set sort = 'threads'
  40. set sort_aux = 'reverse-last-date-received'
  41.  
  42. # Vi-like keybindings
  43. bind generic l select-entry
  44. bind index l display-message
  45. macro index h '<change-folder>?'
  46. bind index H display-toggle-weed
  47. bind pager h exit
  48. bind pager H display-toggle-weed
  49. bind pager j next-line
  50. bind pager k previous-line
  51. bind pager l view-attachments
  52. bind attach l view-attach
  53. bind attach h exit
  54. bind attach H display-toggle-weed
  55. bind compose l view-attach
  56.  
  57. # Charset
  58. set charset="utf-8"
  59. set locale=`echo "${LC_ALL:-${LC_TIME:-${LANG}}}"`
  60. set send_charset="us-ascii:iso-8859-15:utf-8"
  61.  
  62. # Behaviour
  63. set allow_ansi
  64. set delete = yes
  65. set move = no
  66. set nobeep
  67. set quit = ask-yes
  68. set confirmappend = no
  69. push <show-version>
  70.  
  71. # Editing
  72. set editor="vim -c 'set filetype=mail' -c 'set fileencodings=' -c 'set fileencoding=' -c 'set nohlsearch' '+:silent+?^$' "
  73. set edit_headers=yes      # See the headers when editing
  74. set autoedit
  75.  
  76. # Replying
  77. set include
  78. set attribution="* %n <%a> [%{%Y-%m-%d %H:%M:%S %Z}]:"
  79. set reverse_name = yes
  80. set envelope_from = yes
  81. set use_domain = no
  82. set forward_format="Fwd: %s"
  83.  
  84. # Index
  85. set pager_index_lines = 10
  86. set pager_context = 5
  87. set mark_old = no
  88.  
  89. # Viewing
  90. set tilde
  91. set nomarkers
  92. ignore *
  93. unignore From To Subject Cc User-Agent X-Mailer Date List-Id
  94. hdr_order Date: From: List-Id: To: Cc: User-Agent: X-Mailer: Subject:
  95.  
  96. # Colors
  97. color   hdrdefault   color110   color234
  98. color   quoted       color244   color234
  99. color   signature    color150   color234
  100. color   attachment   color174   color234
  101. color   message      color252   color234
  102. color   error        color15    color1
  103. color   indicator    color252   color237
  104. color   status       color15    color239
  105. color   tree         color174   color234
  106. color   normal       color252   color234
  107. color   search       color0     color149
  108. color   tilde        color247   color234
  109. color   index        color180   color234 ~F # marked
  110. color   index        color150   color234 "~N|~O" # unread
  111. color   index        color15    color1 "~D" # deleted
  112. color   index        color255   color96 "~T" # toggled
  113.  
  114. color header color225 color234 ^Subject:
  115. color body color229 color234 '(^|\W)[\*]\w.*\w[\*]($|\W)' # *bold*
  116. color body color229 color234 '(^|\W)_\w[[:alpha:]]*\w_($|\W)' # _underlined_
  117. color body color229 color234 '(^|\W)/\w[^/]*\w/($|\W)' # /italics/
  118. color body color174 color234 '\w+://[a-z0-9.~_/%;@#?+&=-]+' # URL
  119. color body color174 color234 "www\\.[-.a-z0-9]+\\.[a-z]{2,3}[a-z0-9;.~_/%@#?+ +&=-]*"  # URL
  120. color body color229 color234 "[a-z0-9.+-]+@[a-z0-9.-]+\\.[a-z]{2,4}" # email
  121. color body red color234 '[-=+#_*~]{3,}.*' # lines
  122.  
  123. source /etc/Muttrc.gpg.dist