Guest User

Untitled

a guest
Sep 18th, 2021
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.80 KB | None | 0 0
  1. # Global Options
  2.  
  3. set sort = reverse-date # Latest dates at the top
  4. set pager_stop = yes # Stop at the end instead of displaying next mail
  5. set ts_enabled = yes # Enable Setting Terminal Window Title
  6. set ts_status_format = "Mutt with %?m?%m messages&no messages?%?n? [%n NEW]?" # Terminal Window Title Format
  7. set header_cache = "$XDG_CACHE_HOME/mutt/hcache" # Where to cache the email headers
  8. set message_cachedir = "$XDG_CACHE_HOME/mutt/mcache" # Where to cache the emails
  9. set timeout = 5 # Wait this long for user input before aborting and checking for new mail or keeping the connection alive. Values lower than 5 cause it to lag too much
  10. set cursor_overlay = yes # The indicator will respect the bold in the email/mailbox under it
  11. set delete = yes # Don't ask for confirmation on delete
  12. set help = no # Don't show the help bar
  13. set resolve = no # Don't advance to next entry on delete
  14. set count_alternatives = yes # Also check multipart/alternatives for attachments
  15.  
  16. # Shortcuts
  17.  
  18. ## Index
  19. macro index d "<delete-message><sync-mailbox>"
  20. macro index h "<enter-command>source $XDG_CONFIG_HOME/mutt/activate-sidebar<enter>"
  21. bind index j next-entry
  22. bind index k previous-entry
  23. bind index l display-message
  24. bind index J half-down
  25. bind index K half-up
  26. bind index gg first-entry
  27. bind index G last-entry
  28. bind index / limit
  29. bind index x what-key
  30. bind index <Space> select-entry
  31.  
  32. ## Pager
  33. bind pager h exit
  34. bind pager j next-line
  35. bind pager k previous-line
  36. bind pager l view-attachments
  37. bind pager H display-toggle-weed
  38. bind pager J half-down
  39. bind pager K half-up
  40. bind pager L list-reply
  41. bind pager gg top
  42. bind pager G bottom
  43.  
  44. ## Attach
  45. bind attach h exit
  46. bind attach l view-attach
  47. macro attach v "<pipe_entry>iconv -c --to-code=UTF8 > $XDG_CACHE_HOME/mutt/mail.html<enter><shell-escape>xdg-open $XDG_CACHE_HOME/mutt/mail.html<enter>"
  48.  
  49. # Colors
  50. color normal default default
  51. color indicator black green
  52. color sidebar_highlight bold green default
  53. color sidebar_indicator bold black green
  54. color sidebar_new brightwhite default
  55. color status brightblue cyan
  56. color index bold default default ~U
  57.  
  58. set sidebar_format = "%B%?N? (%N)?"
  59. set sidebar_divider_char = "│"
  60. set sidebar_width = 30
  61. set mailcap_path = "$XDG_CONFIG_HOME/mutt/mailcap"
  62. set implicit_autoview = yes
  63.  
  64. set to_chars = "" # Don't put any message recipient flags
  65.  
  66. # ID, Attachments, Flags, Subject, Correspondent, Date
  67. set index_format = "%4C %?X?📎&  ?%-1.1@replied@%-2.2@encrypted@%-1.1@flagged@ %-92.92s %-64.64@correspondent@ %* %10@date@" # Fix the sizes to fully match a full screen window
  68.  
  69. index-format-hook replied "~Q" "↩"
  70.  
  71. index-format-hook encrypted "~G" "🔒"
  72.  
  73. index-format-hook flagged "~F" "⛧"
  74.  
  75. index-format-hook correspondent "~l" "%L" # Messages to mailing lists: Show "To <list-name>"
  76. index-format-hook correspondent "~p" "%f" # Messages to me: Show <author-name> (if available) and <author-email>
  77. index-format-hook correspondent "~P" "%r" # Messages from me: Show <recipient-name> (if available) and <recipient-email>
  78. index-format-hook correspondent "~A" "%f" # All other messages: Show <author-name> (if available) and <author-email>
  79.  
  80. index-format-hook date "~d<1d" "%[%H:%M]" # If it's from today - I only want the time
  81. index-format-hook date "~d<1w" "%[%d %a]" # If it's from this week - I only want the day and the date
  82. index-format-hook date "~d<1y" "%[%b %d]" # If it's from this year, I only want the date and the month
  83. index-format-hook date "~A" "%[%d/%m/%Y]" # If it's from a past year I only want the date, the month and the year
  84.  
  85. folder-hook . "set delete = yes"
  86. folder-hook Trash "set delete = ask-yes"
  87.  
  88. set ssl_force_tls = yes
  89. set ssl_verify_host = no # Don't care about wrong SSL Certificates.
  90. set use_from = yes # Generate From: header field
  91. set realname = 'IFo Hancroft' # Name value for the From: header field
  92.  
  93. # Mailing Lists
  94.  
  95. # Default
  96.  
  97. set my_username = "`pass show email/default/username`"
  98. set my_imap_server = "`pass show email/default/IMAP/server`"
  99. set imap_user = $my_username
  100. set imap_pass = "`pass show email/default/IMAP/password`"
  101. set folder = "imaps://$imap_user@$my_imap_server:993"
  102. set spoolfile = +INBOX
  103. set record = +INBOX.Sent
  104. set postponed = +INBOX.Drafts
  105. set trash = +INBOX.Trash
  106. mailboxes -label 'Inbox' +INBOX -label 'Sent' +INBOX.Sent -label 'Drafts' +INBOX.Drafts -label 'Trash' +INBOX.Trash
  107. set my_smtp_server = "`pass show email/default/SMTP/server`"
  108. set smtp_url  = "smtps://$my_username@$my_smtp_server:465"
  109. set smtp_pass = "`pass show email/default/SMTP/password`"
  110. set from = $my_username # Email value for the From: header field
  111.  
  112. # vim: syntax=muttrc
  113.  
Add Comment
Please, Sign In to add comment