diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-04-05 17:03:57 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-04-05 17:03:57 +0200 |
commit | f86950966d6715ee95f49f44c45c1eba26d030c0 (patch) | |
tree | 79cb185b834c38ac201d6c79c3fee400719c7513 /.muttrc | |
parent | 1185e6a3dc4aa7cfc9640e4a46c49fc2e32a3a13 (diff) | |
download | dotfiles-f86950966d6715ee95f49f44c45c1eba26d030c0.tar.gz dotfiles-f86950966d6715ee95f49f44c45c1eba26d030c0.tar.xz dotfiles-f86950966d6715ee95f49f44c45c1eba26d030c0.zip |
Add mutt config
(well, some details omitted)
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '.muttrc')
-rw-r--r-- | .muttrc | 177 |
1 files changed, 177 insertions, 0 deletions
@@ -0,0 +1,177 @@ +# 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.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 + +# 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 <Esc>m "T~N<enter>;WNT~O<enter>;WO\CT~A<enter>" "mark all messages read" +macro index <Esc>m "T~N<enter>;WNT~O<enter>;WO" "mark all messages read" + + +# listing - mutt-notmuch + +macro index <F8> \ + "<enter-command>unset wait_key<enter><shell-escape>notmuch-mutt --prompt search<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter>" \ + "notmuch: search mail" +macro index <F9> \ + "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt thread<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter><enter-command>set wait_key<enter>" \ + "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 <pipe-entry>'urlview'<enter> '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 |