Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Global Options
- set sort = reverse-date # Latest dates at the top
- set pager_stop = yes # Stop at the end instead of displaying next mail
- set ts_enabled = yes # Enable Setting Terminal Window Title
- set ts_status_format = "Mutt with %?m?%m messages&no messages?%?n? [%n NEW]?" # Terminal Window Title Format
- set header_cache = "$XDG_CACHE_HOME/mutt/hcache" # Where to cache the email headers
- set message_cachedir = "$XDG_CACHE_HOME/mutt/mcache" # Where to cache the emails
- 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
- set cursor_overlay = yes # The indicator will respect the bold in the email/mailbox under it
- set delete = yes # Don't ask for confirmation on delete
- set help = no # Don't show the help bar
- set resolve = no # Don't advance to next entry on delete
- set count_alternatives = yes # Also check multipart/alternatives for attachments
- # Shortcuts
- ## Index
- macro index d "<delete-message><sync-mailbox>"
- macro index h "<enter-command>source $XDG_CONFIG_HOME/mutt/activate-sidebar<enter>"
- bind index j next-entry
- bind index k previous-entry
- bind index l display-message
- bind index J half-down
- bind index K half-up
- bind index gg first-entry
- bind index G last-entry
- bind index / limit
- bind index x what-key
- bind index <Space> select-entry
- ## Pager
- bind pager h exit
- bind pager j next-line
- bind pager k previous-line
- bind pager l view-attachments
- bind pager H display-toggle-weed
- bind pager J half-down
- bind pager K half-up
- bind pager L list-reply
- bind pager gg top
- bind pager G bottom
- ## Attach
- bind attach h exit
- bind attach l view-attach
- 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>"
- # Colors
- color normal default default
- color indicator black green
- color sidebar_highlight bold green default
- color sidebar_indicator bold black green
- color sidebar_new brightwhite default
- color status brightblue cyan
- color index bold default default ~U
- set sidebar_format = "%B%?N? (%N)?"
- set sidebar_divider_char = "│"
- set sidebar_width = 30
- set mailcap_path = "$XDG_CONFIG_HOME/mutt/mailcap"
- set implicit_autoview = yes
- set to_chars = "" # Don't put any message recipient flags
- # ID, Attachments, Flags, Subject, Correspondent, Date
- 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
- index-format-hook replied "~Q" "↩"
- index-format-hook encrypted "~G" "🔒"
- index-format-hook flagged "~F" "⛧"
- index-format-hook correspondent "~l" "%L" # Messages to mailing lists: Show "To <list-name>"
- index-format-hook correspondent "~p" "%f" # Messages to me: Show <author-name> (if available) and <author-email>
- index-format-hook correspondent "~P" "%r" # Messages from me: Show <recipient-name> (if available) and <recipient-email>
- index-format-hook correspondent "~A" "%f" # All other messages: Show <author-name> (if available) and <author-email>
- index-format-hook date "~d<1d" "%[%H:%M]" # If it's from today - I only want the time
- index-format-hook date "~d<1w" "%[%d %a]" # If it's from this week - I only want the day and the date
- index-format-hook date "~d<1y" "%[%b %d]" # If it's from this year, I only want the date and the month
- 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
- folder-hook . "set delete = yes"
- folder-hook Trash "set delete = ask-yes"
- set ssl_force_tls = yes
- set ssl_verify_host = no # Don't care about wrong SSL Certificates.
- set use_from = yes # Generate From: header field
- set realname = 'IFo Hancroft' # Name value for the From: header field
- # Mailing Lists
- # Default
- set my_username = "`pass show email/default/username`"
- set my_imap_server = "`pass show email/default/IMAP/server`"
- set imap_user = $my_username
- set imap_pass = "`pass show email/default/IMAP/password`"
- set folder = "imaps://$imap_user@$my_imap_server:993"
- set spoolfile = +INBOX
- set record = +INBOX.Sent
- set postponed = +INBOX.Drafts
- set trash = +INBOX.Trash
- mailboxes -label 'Inbox' +INBOX -label 'Sent' +INBOX.Sent -label 'Drafts' +INBOX.Drafts -label 'Trash' +INBOX.Trash
- set my_smtp_server = "`pass show email/default/SMTP/server`"
- set smtp_url = "smtps://$my_username@$my_smtp_server:465"
- set smtp_pass = "`pass show email/default/SMTP/password`"
- set from = $my_username # Email value for the From: header field
- # vim: syntax=muttrc
Add Comment
Please, Sign In to add comment