# roban's .muttrc # Based on http://homepage.eircom.net/~sarunas/mutt/ # this is to avoid having my plain text password in this file #`cat ~/.mutt/ssmtp_command` set sendmail="/usr/sbin/sendmail -v" set certificate_file="~/.mutt/certificates" set imap_authenticators="gssapi" set realname="YOUR NAME HERE" #replace this with your name alternates you.email@your_domain.edu set from="YOUR NAME HERE " #replace this my_hdr From: YOUR NAME HERE set imap_authenticators="login" set spoolfile="imap://USERNAME@HOSTNAME.EDU/INBOX" set folder="imap://USERNAME@HOSTNAME.EDU/INBOX" set ssl_force_tls="yes" set record="=Sent" set postponed="=Drafts" set move="no" set mime_forward="no" #set mime_forward="yes" #set mime_forward_rest=yes ##################### #set include # always include messages when replying set editor="emacs -nw" #your favourite editor #set ispell="aspell -e -c" #copies my sent mail to mailbox sent_mail #set copy=yes # + is a mailbox shortcut. #set record="+sent-mail" # it expands to whatever you set in folder set allow_ansi=yes #set postponed="+postponed" # where postponed stuff goes #set mbox=+mbox # mail from spool gets copied in here mailboxes /var/mail/USERNAME /home/USERNAME/Mail/ #how mutt behaves: unset mark_old # unread old messages are still unread after quitting #set auto_tag # when tag articles, actions are default for all tagged messages set quit=ask-no # quit witout asking set delete=ask-no # delete without asking set move=no # move messages without asking unset confirmappend # don't ask me about appending messages to other boxes set save_empty=no unset beep # no beep set beep_new set abort_unmodified=no # automatically abort replies set check_new #################################################### #---------------------COLORS-----------------------# #################################################### color normal white black # pager body color attachment green black # .. color indicator brightred black color body cyan black "ftp://[^ ]*" color body green default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]" color body cyan default "(http|ftp|news|telnet|finger)://[^ >]*" color body cyan default "" color error red default #headers: color header green black "^to: " color header green black "^cc: " color header cyan black "^date: " color header red black "User-Agent:" color header brightgreen black "^from: " color header brightmagenta default "^subject: " color hdrdefault cyan black # color index green default ~N #color normal brightyellow default #color # status brightyellow red color tilde brightcyan default color tree yellow default #color indicator white blue # index color markers red default# index color message white blue # index # Coloring quoted text color quoted cyan default# pager body color quoted1 red default# pager body color quoted2 cyan default# pager body color quoted3 yellow default# pager body color quoted4 blue black color quoted5 magenta black color quoted6 red black color quoted7 yellow black color quoted8 cyan black color signature red default# pager body color status white blue # index status bar default: black white color tilde blue default #color tree red default# index color bold green default # .. color underline yellow default # color body blue red "<[Gg]>" color body blue red "<[Bb][Gg]>" color body yellow black "[;:]-[)/(|]" #################################################### #-------------------HEADERS------------------------# #################################################### #set arrow_cursor=no #highlight current line rather than having an arrow cursor, "->" # Date format will be displaid in the following order: # Hour:Minute, abbreviated weekday name, Day of the month in decimal, Abbreviated month name, Year in decimal # Example: 08:21, Sun 04 Jul 04 # Example: 16:53, Thu 08 Jul 04 set date_format="%H:%M, %a %d %b %y" # Mailbox format will be displayed in the following order: # 8 spaces for Size in bytes, date/time folder was last modified, N if folder has new mail, Filename. # Example: 148878 Jul 08 21:23 =osdn/slashdot # Example: 52409 Jul 09 10:15 N =mbox #set folder_format=" %-8s %d %N %f" # Index format will be displayd in the following order: # Current message number, Message status flag, date and time of the message in local timezone , (Message lenght), Sender, Subject # Example: 437 N 09:35, Fri 09 Jul 04 FreeBSD Tinderbox ( 49) [current tinderbox] failure on amd64/amd64 #set index_format="%2C %Z %D %-17.17n (%3l) %s" # Pager format will be displayed in the following order: # Current sorting method, [current message number/total messages in the mailbox], Message lenght, Author's name: Subject #set pager_format="%S [%C/%m] %l %n: %s" unset edit_headers # Edit headers when composing mail set pager_context=1 # paging shows me one line leftover set pager_stop # prevent pager from going to next message unlesss you say so set nomarkers # no wrap around markers ################################################# #------------------HOOKS------------------------# ################################################# #Example of a hook which automatically moves messages which are older then N #days from a mailbox to archive: #folder-hook ~/Mail/fbsd/current push 'T~R\ ~r\ >5d\n\;s=archive/current\n' #folder-hook ~/Mail/fbsd/hackers push 'T~R\ ~r\ >5d\n\;s=archive/hackers\n' #folder-hook ~/Mail/fbsd/cvs-src push 'T~R\ ~r\ >5d\n\;s=archive/cvs-src\n' # But I would recommend to use a dedicated mail archiver such as: # "archmbox" (http://adc-archmbox.sourceforge.net/) or # "archivemail" (http://archivemail.sourceforge.net/) #defaults for all folders are threaded w/ mini index of 11 lines "." means all mailboxes folder-hook . set sort=threads folder-hook . set pager_index_lines=8 # i get to see the index and pager together when paging #these don't get sorted by threads #folder-hook /var/spool/mail/sarunas set sort=date-received #folder-hook +sent set sort=date-sent ################################################# #-----------------KEYBINDINGS-------------------# ################################################# bind generic "#" tag-entry bind generic previous-entry #pressing left arrow key, "<-", will move to previous entry bind generic next-entry #pressing right arrow key, "->", will move to next entry #bind index "c" copy-message bind index "\Cx\Cf" change-folder #bind pager "c" copy-message bind pager "#" tag-message #vi-like movement, :) bind pager "k" previous-line #pressing "k", while in pager will move the cursor to the previous line bind pager "j" next-line #pressing "j", while in pager will move the cursor to the next line bind pager "K" previous-entry #pressing "K", while in pager will move the cursor to the previous entry bind pager "J" next-entry #pressing "J", while in pager will move the cursor to the next entry bind pager "<" top bind pager top bind pager ">" bottom bind pager bottom bind pager "{" previous-thread bind pager "}" next-thread bind pager "\Cx\Cf" change-folder bind browser "e" check-new ################################################## #------------------MACROS------------------------# ################################################## #macro index S ';spam;=Spam' macro index,pager S "=missed-spam" "move spam to missed-spam folder" #macro index "\Cx\Cb" "?" # Folder list. #macro index "w" "?" # Folder list #macro pager "\Cx\Cb" "?" # Folder list. #macro pager "w" "?" # Folder list. #macro index "\Cx\Cs" "|cat > ~/" # Save message #macro pager "\Cx\Cs" "|cat > ~/" # Save message #call fetchmail, by pressing "G", to get new mail #macro index G "!fetchmail\n" #macro pager G "!fetchmail\n" #macro pager \cb 'urlview' 'Follow links with urlview' #1 to use GnuPG #macro generic \e1 ":set pgp_default_version=gpg ?pgp_default_version\n"\ #"Switch to GNU-PG"