###################################################################### # # # Ailbhe's .muttrc # # # # This is my main config file. Mutt reads this first, # # and then any other files I call with the "source" command # # # # Sections: # # When Creating Messages Personalized Headers # # Managing and viewing mailboxes Mime-Forwarding # # Aliases Sourcing external config files # Miscellaneous settings # # # ###################################################################### ###################################################################### ####### When Creating Messages # When I send mail to "joe" it automagically expands to "joe@ossifrage.net" set hostname=ossifrage.net set use_domain # My real name, for the From line set realname="Ailbhe Leamy" # This is so that Outlook and Outlook Express won't get confused and # send replies to the wrong address set envelope_from # when you create a message and put nothing in the Subject, # it will ask if you want to abort the message set abort_nosubject=ask-yes # Before writing a message, decide if I want to cc it to anyone set askcc # input sig seperator set sig_dashes # this is where my sig is # set signature="~/signature/.urlsig" bind index '#' tag-entry # reply to a mailing list, not an individual, by default unset ignore_list_reply_to # ask to include a copy of the message to which I am replying set include=ask-yes # prefix quoted text with this set indent_string="> " # ask before aborting unedited messages set abort_unmodified=ask-yes # attribution format : on day, name wrote (alias=%a if you want to add that) set attribution="On %d, %n wrote:" # Save a copy of all my outgoing mail set copy=yes # When forwarding, Subject is Fwd: oldsubject set forward_format="Fwd: %s" # Forwarded messages included in the main body of the message using indent_string. set forward_quote # message headers will be weeded when forwarding # (doesn't work with latest version) # set forward_weed # This option allows you to edit the headers # along with the body of outgoing messages set edit_headers # Choose the editor you want to use to write mail. # I use emacs -nw, which runs emacs in the existing xterm # rather than in a new window set editor="emacs -nw" # replies and forwards with same names and subject # (option to change pre-send still exists) set fast_reply # If I mail a mailing list, it takes my address out of the # followup header and leaves the list address in set followup_to # Do not force me to save outgoing mail by username unset force_name # when postponing messages, ask where to save them set postpone=ask-yes # default file to save postponed messages set postponed="~/Mail/postponed" # ask if I want to recall postponed messages when I start a new message set recall=ask-yes # when replying to a bunch of people, # it will remove my own address from the reply-to list unset metoo # no need to reply to myself, is there? unset reply_self # asks if I want to reply to the reply-to address; # if not, it uses the From address set reply_to=ask-yes # When sending, wait until message is sent before continuing set sendmail_wait=0 ###################################################################### # Personalized headers # # add headers defined by my_hdr command to every outgoing message set hdrs # Include headers when editing the message to which I am replying # You may want to "unset" this set header # View headers in this order when reading mail hdr_order To Cc From Date Subject ###################################################################### # Managing and viewing mailboxes # # # # Sections: # # Index Threads # # Moving mail between boxes Reading Mail # # # ###################################################################### # Folder in which to put your mailboxes. Represented by = set folder=~/Mail # leave read messages in main mailbox, /var/mail/username set mbox="!" # all mailboxes are the standard, default type, whatever that is (mbox) set mbox_type=mbox # I want to access folders in do-stuff mode unset read_only ################################# # Index # ################################# # I like my index to show me # %C number of message; %Z is the message to me; 5d date; %F from; # %l number of lines in the message; %s subject line set index_format="%3C %Z %d %-15.15F (%4l) %s" # Help Bar set help # If set, gives an arrow instead of highlighting the line. # I use it at work because I am reading over slow telnet connection unset arrow_cursor ### If set, Mutt will use plain ASCII characters when displaying thread and ### attachment trees, instead of the default ACS characters. unset ascii_chars # When viewing the index, mails are marked # Z -not sent to me, T - sent only to me, G - sent to me # and others(Group), C - cc'ed to me, F - from me set to_chars="ZTGCF" # It's to do with an editor, so I stick with what I know set visual="emacs -nw" # if unset, treat unread old messages as new messages unset mark_old # do not beep when I err but do when I get new mail unset beep set beep_new # check for new mail when the mailbox is open unset check_new # When viewing the folder list # %N Mark N if folder contains new mail; %F file permissions; # %l hard links %u owner name; %g group name; %s size in bytes; # %d last modified; %f filename set folder_format="%N %F %2l %-8.8u %-8.8g %8s %d %f" # Sort files in alpha order in file browser set sort_browser=alpha # I like my dates to show as (31/12/00 17:52) set date_format="(%d/%m/%y %H:%M)" # STATUS BAR # status bar at top of screen set status_on_top # The status bar tells me about the current mailbox # # %r mailbox altered; %P percentage of the way down the list of messages; # %f filename; %?l?%l? size; (%?n?%n\/?%m) new/total no. of messages; # %?d? Del:%d? no. of deleted messages; %?F? Flag:%F? no. of flagged messages # %?t? Tag:%t? no. of tagged messages; %?p? Post:%p? no. of postponed messages # %>- right-align the following and pad the line with --- # (%s/%S) sort order; %?b?- %b folders? no. of folders containing new mail # # I set all this with "set status_format" set status_format="%r %P of %f %?l?%l? (%?n?%n\/?%m)%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p? %>-(%s/%S) %?b?- %b folders?" ################################# # Threads # ################################# # sort by thread set sort=threads # something to do with the way threads are sorted. Accept default set sort_aux=date-sent # thread properly, using all available info set strict_threads # enable threading by recognition of Re; in subject set reply_regexp="^((re):[ \t]*)*" # do not collapse a thread containing unread mail unset collapse_unread # do (not) jump to next unread message when current thread is uncollapsed set uncollapse_jump ################################################# # When moving mail between mailboxes # ################################################# # confirm before appending messages to an existing mailbox set confirmappend # confirm before moving things around set move=ask-yes # confirm before creating mailbox to append message to set confirmcreate # ask for confirmation before deleting messages when closing a mailbox set delete=ask-yes # to apply function to all tagged messages, type ";". # If this is unset, function is automatically applied # to all tagged messages, like in elm unset auto_tag # if message was sent to a known list, default save box is # I pre-sort everything using procmail anyway, so I don't use this # save-hook ~l +%B # do not save using full address instead of username for foldername unset save_address # do not save outgoing messages to recipient's username folder unset save_name # delete empty folders unset save_empty ################################# # Reading Mail # ################################# # view messages using builtin pager set pager=builtin # goodness knows, so I accept the default set pager_format="-%S- %C/%m: %-20.20n %s" # When viewing next page of info, retain last line of previous page set pager_context=1 # Works a bit like a "preview" screen; # you can see the pager and 5 lines of the index at the same time set pager_index_lines=5 # if set, when you reach the end of a message and hit next-page, # nothing will happen - it will not open the next message unset pager_stop # mark wrapped lines of text in the pager with a + set markers # when wrapping text, don't wrap mid-word set smart_wrap # Mark empty space at the bottom of the pager with a tilde, the way vi does it set tilde # identify quoted text in messages # # This regexp will catch everything, which is too much for me. # set quote_regexp="^([ \t]*[>|#:}%=-])+" # # This regexp catches just enough for me set quote_regexp="^([ \t]*[>])+" # recognise smileys as smileys not as quote marks set smileys="(>From)|(:[-^]?[][)(><}{|/DP])" # I allow 8-bit, I don't need to convert it to 7-bit data set allow_8bit # this is the advised setting for a slow link, so I use it at work # unset menu_scroll # Mutt treats attachments seperately instead of as one big attachment set attach_split # Managing and viewing mailboxes - end # ###################################################################### ###################################################################### # Mime-forwarding # # see also mime-forwarding notes in man muttrc # ###################################################################### ### This variable is only used, if mime_forward is unset, otherwise ### mime_forward_decode is used instead. set forward_decode ### set, the outer layer of encryption is stripped off. This variable ### is only used if mime_forward is set and mime_forward_decode is unset. set forward_decrypt ### When set, the message you are forwarding will be attached as a separate ### MIME part instead of included in the main body of the message. This is ### useful for forwarding MIME messages so the receiver can properly view ### the message as it was delivered to you. If you like to switch between ### MIME and not MIME from mail to mail, set this variable to ask-no or ### ask-yes. ### Also see forward_decode and mime_forward_decode. set mime_forward=ask-no ### Controls the decoding of complex MIME messages into text/plain when ### forwarding a message while mime_forward is set. Otherwise forward_decode ### is used instead. set mime_forward_decode ### Mime end ####### Aliases # where do you store aliases? set alias_file="~/.mutt/aliases" # My alias file contains joe's address, so I will see Joe Soap's name # in messages from joe.soap@example.com set reverse_alias # sort aliases in alpha order by alias name set sort_alias=alias ### Specifies the format of the data displayed for the `alias' menu. The ### following printf(3)-style sequences are available. ### %a alias name ### %n index number ### %r address which alias expands to ### %t character which indicates if the alias is tagged for inclusion ### (*/ ) set alias_format="%2n %t %-10a %r" # This means that mutt recognises every address beginning with "ailbhe" as me. set alternates="ailbhe" ####### End Aliases ####### Miscellaneous settings # setting this skips a step, which makes me uncomfortable unset hidden_host # greek to me set history=50 # confirm whether I want to print set print=ask-yes # confirm that I really want to quit set quit=ask-yes # store temporary files in $HOME/tmp/mutt - be sure that this file exists! set tmpdir="~/tmp/mutt" # no idea, accept the default set mask="^(\.\.$|[^.])" # something to do with piping messages, which I will not deliberately do unset pipe_decode unset pipe_split # apparently useful when running mutt in an xterm unset suspend # I'm unlikely to use a search function - set it anyway set thorough_search # if open and idle for this long, time out and check for new mail set timeout=60 # source files source ~/.mutt/colors source ~/.mutt/mailboxes source ~/.mutt/aliases source ~/.mutt/sendhooks source ~/.mutt/folder-hook source ~/.mutt/lists