]> code.delx.au - dotfiles/commitdiff
Mutt config
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 30 Sep 2007 04:54:57 +0000 (14:54 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 30 Sep 2007 04:54:57 +0000 (14:54 +1000)
.hgignore
.mutt/colors [new file with mode: 0644]
.mutt/commands [new file with mode: 0644]
.mutt/composing [new file with mode: 0644]
.mutt/display [new file with mode: 0644]
.mutt/mailboxes [new file with mode: 0644]
.mutt/muttrc [new file with mode: 0644]

index 66d6cec03ac9e2d275c711d94bf1928eff4c211a..3d4f5c1cebce7f2019daddc99d7cd36eb6fa662e 100644 (file)
--- a/.hgignore
+++ b/.hgignore
@@ -1,3 +1,4 @@
+.mutt/header_cache
 .vim/abbrsout.vim
 .vim/viminfo
 .ssh/identity
diff --git a/.mutt/colors b/.mutt/colors
new file mode 100644 (file)
index 0000000..c004477
--- /dev/null
@@ -0,0 +1,35 @@
+# vim:ft=muttrc
+
+# General interface colours
+color normal default default
+color status black white
+color error brightred default
+color message brightred default
+
+# Index colours
+color index magenta default ~F
+color index red default "~N|~O"
+color tree default default
+color indicator brightyellow red
+
+# Pager colours
+color hdrdefault blue default
+color signature red default
+color attachment red default
+color markers red default
+color search white black
+color tilde default default
+
+# Different colours for different levels of quoting
+color quoted    blue            default
+color quoted1   red             default
+color quoted2   magenta         default
+color quoted3   yellow          default
+color quoted4   cyan            default
+color quoted5   blue            default
+color quoted6   magenta         default
+color quoted7   red             default
+color quoted8   yellow          default
+color quoted9   cyan            default
+color signature blue            default
+
diff --git a/.mutt/commands b/.mutt/commands
new file mode 100644 (file)
index 0000000..9c152c8
--- /dev/null
@@ -0,0 +1,25 @@
+# vim:ft=muttrc
+
+# Query the address book
+set query_command="lbdbq '%s'"
+
+# Vim for mail editing
+set editor="vim -c 'set tw=78 ft=mail noautoindent nosmartindent'"
+
+# Put messages into the junk folder
+macro index S "<clear-flag>N<clear-flag>O<save-message>=Junk<enter>" "move message to the Junk folder"
+macro pager S "<save-message>=Junk<enter>" "move message to the junk folder"
+
+# Go back to the inbox
+macro index I "<change-folder>=Inbox<enter>" "go back to the inbox"
+macro pager I "<change-folder>=Inbox<enter>" "go back to the inbox"
+# Go to the received mail folter
+macro index R "<change-folder>=Received<enter>" "go to the received mail folder"
+macro pager R "<change-folder>=Received<enter>" "go to the received mail folder"
+
+# Make copying and moving use the file browser by default
+macro index C "<copy-message>?" "copy a message to a mailbox"
+macro index s "<save-message>?" "move a message to a mailbox"
+macro pager C "<copy-message>?" "copy a message to a mailbox"
+macro pager s "<save-message>?" "move a message to a mailbox"
+
diff --git a/.mutt/composing b/.mutt/composing
new file mode 100644 (file)
index 0000000..d69c46a
--- /dev/null
@@ -0,0 +1,29 @@
+# vim:ft=muttrc
+
+# Use custom sendmail?
+#set sendmail="$HOME/bin/sendmail.py"
+
+# Generate a from address using the EMAIL environment variable
+set use_from=yes
+
+# Generate from addresses in replies based on the address that received the mail
+set reverse_name=yes
+
+# Ask about postponing messages
+set postpone=ask-yes
+
+# Always include messages in replies
+set include
+
+# Prefix for quotes in message replies
+set attribution="On %d, %n wrote:"
+
+# Don't ask for address or subject when replying
+set fast_reply
+
+# Forward emails as mime attachments
+set mime_forward
+
+# Subject line for forwarded messages
+set forward_format="Fwd: %s"
+
diff --git a/.mutt/display b/.mutt/display
new file mode 100644 (file)
index 0000000..1ff86c9
--- /dev/null
@@ -0,0 +1,37 @@
+# vim:ft=muttrc
+
+# Headers to show
+ignore *
+unignore date from to cc bcc reply-to subject x-mailer x-spam-score
+hdr_order date from to cc bcc reply-to subject x-mailer x-spam-score
+
+# Sort by threads then date received
+set sort=threads
+set sort_aux=date-received
+# When going to the Sent folder, sort by date-sent
+folder-hook . set sort_aux=date-received # And undo
+folder-hook "=Sent" set sort_aux=date-sent # And undo
+
+
+# Hide the help line at the top
+set help=no
+
+# Show 5 lines of index when viewing a message
+set pager_index_lines=5
+
+# Don't scroll past the current message in the pager
+set pager_stop
+
+# Format for messages in the index
+set index_format='%4C %Z %H %{%b %d} %-15.15L %s'
+
+# Format for mailboxes in the browser
+set folder_format="%2C %t %f %> %8s %d "
+
+# Character set stuff
+set charset=utf8
+set noallow_8bit
+
+# Prefer text to HTML
+alternative_order text/enriched text/plain text/html 
+
diff --git a/.mutt/mailboxes b/.mutt/mailboxes
new file mode 100644 (file)
index 0000000..365b104
--- /dev/null
@@ -0,0 +1,21 @@
+# vim:ft=muttrc
+
+# Mailbox settings
+set folder="$HOME/Mail/Links";
+set record="=Sent";
+set postponed="=Drafts";
+set spoolfile="=Inbox";
+set mbox="=Received";
+
+# Header caching
+set header_cache="$HOME/.mutt/header_cache"
+
+# Don't confirm when appending to an existing mailbox
+set noconfirmappend
+
+# List of mailboxes to check
+mailboxes =Inbox =Junk
+
+# List of email addresses
+alternates ^me@example.com$ ^me@example.org$
+
diff --git a/.mutt/muttrc b/.mutt/muttrc
new file mode 100644 (file)
index 0000000..df3b8a1
--- /dev/null
@@ -0,0 +1,12 @@
+# vim:ft=muttrc
+
+# Source other bits of config
+source "$HOME/.mutt/mailboxes"
+source "$HOME/.mutt/colors"
+source "$HOME/.mutt/commands"
+source "$HOME/.mutt/composing"
+source "$HOME/.mutt/display"
+
+# Get mutt to display its version on startup.
+push <show-version>
+