# compilation of many sources, still quite a mess # # general # set mbox_type=Maildir # dont mark messages old set nomark_old set move=no set quote_regexp="^([A-Za-z ]+>|[]%>:|}-][]>:|}-]*)" # just scroll one line instead of full page (Gentoo howto) set menu_scroll=yes # http://www.mail-archive.com/mutt-users@mutt.org/msg44341.html # Real default: "-%Z- %C/%m: %-20.20n %s%* -- (%P)" #set pager_format="%4C %Z %[!%b %e at %I:%M %p] %.20n %s%* -- (%P)" set pager_format="%Z[%b] %[!%b %e at %I:%M %p] %C/%m: %-20.20n %s%* -- (%P)" # http://www.michnet.de/mutt/ # Also very useful in pager mode (even the number of scrolling lines can be set): set pager_context="1" # # # Mutt can split the screen into halves, so you can watch index + pager simultaneously: set pager_index_lines="5" # # # Don't jump to next message when at bottom of current message: set pager_stop="yes" set index_format = "%4C %Z %{%b %d} %-15.15F (%4l) %s" set date_format="%d/%m/%y %H:%M %Z" # # general - dirs and files # set folder = ~/Maildir set spoolfile = ~/Maildir/INBOX set record = ~/Maildir/Sent set tmpdir = ~/.mutt/temp # keep a cache of headers for faster loading (1.5.9+?) set header_cache=~/.mutt/hcache # # general - headers # ignore * unignore From To Cc Subject Date Reply-To Organization X-Mailer User-Agent # Order to display the headers in hdr_order From: Date: To: Cc: Subject: set edit_headers # # listing # # sort by thread set sort = threads; set sort_aux=reverse-date # mark messages as read (http://blog.jwcxz.com/?p=810) #macro index m "T~N;WNT~O;WO\CT~A" "mark all messages read" macro index m "T~N;WNT~O;WO" "mark all messages read" # listing - mutt-notmuch macro index \ "unset wait_keynotmuch-mutt --prompt search~/.cache/notmuch/mutt/results" \ "notmuch: search mail" macro index \ "unset wait_keynotmuch-mutt thread~/.cache/notmuch/mutt/resultsset wait_key" \ "notmuch: reconstruct thread" # # composing # set signature = "~/.mutt/sig" # also there is ~/.mutt/intro #set format=flowed set notext_flowed # Automatically quote message set include=yes # Set quotemark to 1 byte set indent_str="> " # Skip the bothering prompt for recipient and subject when replying and start immediately with writing your message: set fast_reply="yes" set forward_format="Fw: %s" # subject in forwarded messages # Use vim as the editor - this line will wrap # Set wordwrap on in vim to automatically wrap lines # -> no :gq all the time set editor="vim +':set textwidth=70' +':set wrap' +\":1,\$ s/^\\([>|]\\s\\?\\)\\+/\\=substitute(submatch(0),\'\\s\',\'\',\'g\').\' \'\" +:noh +\`awk '/^$/ {print i+1; exit} {i++}' %s\` +':r~/.mutt/intro' %s" # # sending # set hostname="redhat.com" set realname="Jan Pokorný" set from="jpokorny@redhat.com" # force envelope and sender set use_from set envelope_from set send_charset="us-ascii:utf-8" # set user_agent=no # dammit mutt, forward mime attachments by default and yes im aware SMTP is not an FTP client - shutup set mime_forward=yes set mime_forward_rest=yes # # jpokorny's tweaks # # view html emails # https://bbs.archlinux.org/viewtopic.php?pid=1123469 alternative_order text/enriched text/plain text/html text auto_view text/html # LDAP set query_command = "lbdbq %s 2>/dev/null" # urlview macro pager \cu 'urlview' 'Follow links with urlview' # # I/O bits # set smtp_url="smtp://smtp.corp.redhat.com" set sendmail="/usr/sbin/sendmail" # activate TLS if available on the server set ssl_starttls=yes # always use SSL when connecting to a server set ssl_force_tls=yes # Don't wait to enter mailbox manually unset imap_passive # Automatically poll subscribed mailboxes for new mail (new in 1.5.11) set imap_check_subscribed # Reduce polling frequency to a sane level ## trobert banhammer ##set mail_check=60 set mail_check=300 # And poll the current mailbox more often (not needed with IDLE in post 1.5.11) set timeout=10 # Display download progress every 5K set net_inc=5 # # imports # source ~/.mutt/folders #source ~/.mutt/gpg source ~/.mutt/solarize source ~/.mutt/sidepane