Created
August 18, 2009 15:11
-
-
Save nailor/169771 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic setup (direct imap) | |
source ~/.mutt/imap-creds | |
set folder="imaps://mail.inoi.fi:993/" | |
set spoolfile="imaps://mail.inoi.fi:993/INBOX" | |
set postponed="+INBOX.Drafts" | |
set record="imaps://mail.inoi.fi:993/INBOX.Sent" | |
set query_command= "abook --mutt-query '%s'" | |
macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add the sender address to abook" | |
# mailboxes | |
source $HOME/.mutt/mailboxes | |
set use_from = yes | |
#set envelope_from = "yes" | |
auto_view text/html | |
# I have to set these defaults because when you first startup mutt | |
# it's not running folder hooks. It just starts in a folder | |
set from="[email protected]" | |
set realname="Jyrki Pulliainen" | |
my_hdr From: Jyrki Pulliainen <[email protected]> | |
set sendmail="/usr/bin/msmtp -a default" | |
set signature=$HOME/.mutt/signature-inoi | |
##### ##### | |
##### Now a bunch of other setup ##### | |
##### ##### | |
set copy=yes # Whether to save sent messages | |
set delete=ask-yes # ask when purging deleted message | |
#set record=+Sent # Where to save sent messages | |
set beep_new=yes # Beep when new messages arrive? | |
set move=no # Move read messages to another folder? | |
#set forward_quote=yes # Quote the email body when forwarding? | |
set include=yes # Quote the email body when replying? | |
set mime_forward=ask-no | |
set mime_forward_rest=yes | |
ignore * # this means "ignore all headers by default" | |
unignore From: | |
unignore To: | |
unignore Reply-To: | |
unignore Mail-Followup-To: | |
unignore Subject: | |
unignore Date: | |
unignore CC: | |
unignore BCC: | |
hdr_order From: Return-Path: \ | |
Reply-To: \ | |
Date: Subject: Importance: | |
set editor="emacsclient" | |
set header_cache =~/.mutt/cache/headers | |
set message_cachedir =~/.mutt/cache/bodies | |
set certificate_file =~/.mutt/certificates | |
set edit_headers=yes | |
set mail_check=120 # check mail every second minute | |
set timeout=15 # after 15 secs of no keypresses, start checking for new mail | |
set reverse_name # Reply with the address used in the TO/CC header | |
set ascii_chars=no # Use ASCII arrows | |
set charset=utf-8 | |
set reverse_realname=yes # Reply with the name used in FROM | |
set reverse_alias=yes | |
set fast_reply="yes" | |
set confirmappend=no # Confirm when appending messages to an existing mailbox? | |
set pager_index_lines=15 # Show 5 message headers from your message index above an email you are reading | |
set markers # mark wrapped lines of text in the pager with a + | |
set smart_wrap # Don't wrap mid-word | |
set pager_context=5 # Retain 5 lines of previous page when scrolling. | |
set pager_stop = yes | |
set status_on_top # Status bar on top. | |
set sort = 'threads' | |
set sort_aux = 'last-date-received' | |
set tilde | |
set sig_dashes # A signature must always start with a "-- " | |
unset collapse_unread | |
unset mark_old | |
unset ignore_list_reply_to | |
alternative_order text/plain text/html # Show the text mime firstly | |
# Sidebar Settings | |
set sidebar_visible | |
set sidebar_width = 30 | |
set sidebar_delim = "|" | |
macro index B '<enter-command>toggle sidebar_visible<enter>' | |
macro pager B '<enter-command>toggle sidebar_visible<enter>' | |
# Formating | |
set compose_format="-- %v-- Compose [Approximate Message Size: %l Attachments: %a]%>-" | |
set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " | |
set alias_format="%4n %2f %t %-12a %r" | |
set status_format="-%r-%v--[%?M?%M/?%m msgs%?n?, %n new?%?d?, %d del?%?F?, %F flag?%?t?, %t tag?%?p?, %p postp?%?b?, %b inc?%?l?, %l?]--(%f)--%s-%>-%P-" | |
set folder_format="%3C %t%N %F %-8.8u %-8.8g %8s %d %f" | |
set message_format="%-.16n: %s" | |
set pager_format="~~~~~~~~~ On %{%a, %d %b %Y} at [%[%H:%M]]: %s %|~" | |
set attribution='On %{%a, %d %b %Y}, %n wrote:\n' | |
set forward_format = "[Fwd: %s]" | |
#### Macros and such | |
# get the url view working | |
macro index \cb |urlview\n 'call urlview to extract URLs out of a message' | |
macro pager \cb |urlview\n 'call urlview to extract URLs out of a message' | |
# h will take you to the folder list in the index | |
macro index h "c?t" | |
# ctrl-n, ctrl-p to select next, prev folder | |
# ctrl-o to open selected folder | |
bind index \CP sidebar-prev | |
bind index \CN sidebar-next | |
bind index \CO sidebar-open | |
bind pager \CP sidebar-prev | |
bind pager \CN sidebar-next | |
bind pager \CO sidebar-open | |
# color of sidebar folders with new mail | |
color sidebar_new yellow default | |
# Dump all headers | |
macro index p "<display-toggle-weed> <print-message> <display-toggle-weed> <exit>" | |
macro pager p "<display-toggle-weed> <print-message> <display-toggle-weed>" | |
# SHORTCUTS for each of the main inboxes | |
# macro index ga "<change-folder>=INOI/INBOX<enter>" "Go to INOI inbox" | |
# macro index gb "<change-folder>=GROSSMEIER/INBOX<enter>" "Go to GROSSMEIER inbox" | |
# allow space characters in macros | |
# bind editor <space> noop | |
macro index,pager d "<save-message>+INBOX.Trash<enter>" "Trash" | |
macro index,pager y "<save-message>+INBOX.Archive<enter>" "Archive" | |
folder-hook . "push \eV" | |
##### ##### | |
##### Colors | |
##### ##### | |
# color header cyan default . | |
# color header yellow default ^From | |
# color header yellow default ^Subject | |
# color body yellow default [_a-z\.\$A-Z0-9-]+@[a-zA-Z0-9\./\-]+ | |
# color body yellow default (http|ftp)://[_a-zA-Z0-9\?\=\&\@\%\#\:\,\./~\-]+ | |
# color quoted green default | |
# color quoted1 cyan default | |
# color quoted2 magenta default | |
# color signature cyan black | |
# color attachment magenta default | |
# color tree white default | |
# color indicator black yellow | |
# color status blue black | |
# color tilde blue default | |
# color normal white default | |
color index white default "~p" | |
color index green default "! ~p" | |
color header yellow default "importance: " | |
color header blue default "importance: normal" | |
color header brightred default "importance: high" | |
color index brightyellow default "~h 'importance: high'" | |
color header yellow default "precedence: " | |
color header blue default "priority: " | |
color header brightred default "priority: high" | |
color header red default "priority: urgent" | |
color index brightyellow default "~h 'priority: high'" | |
color index brightyellow default "~h 'priority: urgent'" | |
color header blue default "priority: normal" | |
color header brightred default "x-priority: " | |
color header yellow default "X-MSMail-Priority: " | |
color index brightred default "~F" | |
color index yellow default "~N" | |
color index brightyellow default "~N ~p" | |
color index brightblue default "~T" # Tagged | |
color index red default "~D" # Delete | |
# New/old/flagged, not deleted and msgs from last week | |
macro index .i "l((~N|~O|~F)!~D)|(~d<1w!~Q)\n" | |
# New unread messages | |
macro index .n "l~N\n" | |
# New and old unread messages | |
macro index .o "l(~N|~O)\n" | |
# Reset limit filter (==all messages) | |
macro index .a "l~A\n" | |
# Today's messages | |
macro index .t "l~d<1d\n" | |
# Yesterday's messages | |
macro index .y "l~d<2d ~d>1d\n" | |
folder-hook . push '.i' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment