All pastes #761438 Raw Edit

Something

public text v1 · immutable
·published 2007-11-04 21:36 UTC
rendered paste body
## Of course use THE almighty editor
#
set editor = "vim"

## Nice colors for a dark/transparent terminal
# [generic]
color normal	white		default
color error		red		white
color message	blue		white
color search	red		white
color indicator	black		white
color status	white		blue

# [index]
color index	 magenta	default	"~A"		# all
color index	 yellow		default	"~l"		# lists
color index	 green		default	"~p"		# to me
color index	 red		default	"~P"		# by me
color index	 blue		default	"~D"		# deleted
color index	 white		default	"~T"		# tagged
color tree	 white		default

# [pager]
color hdrdefault cyan		blue
color header	 brightgreen	blue	"^from: "
color header	 green		blue	"^date: "
color header	 brightyellow	blue	"^subject: "
color body	 red		default	"(((ht|f)tp)s?|news|telnet|finger|mailto):(//)?[^ \)><\"\t\r\n]+"
color body	 red		default	"(www|ftp)\\.[-a-z0-9\\.]+"
color body	 red		default	"[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
color body	 brightwhite	default	"(^|[[:space:]])_[[:alpha:]]+_([[:space:]]|$)"
color body	 brightwhite	default	"(^|[[:space:]])\\*[[:alpha:]]+\\*([[:space:]]|$)"
color bold	 brightyellow	default
color underline	 brightcyan	default
color markers	 brightred	default
color quoted	 cyan		default
color quoted1	 green		default
color attachment yellow		default
color signature	 red		default
color tilde	 blue		default

## Enscript generates better output than muttprint
#
set print_command = "enscript -Email -2 -G -r"
set print_split

## Only care about certain headers
#
ignore *
unignore from: to cc bcc subject date x-mailer user-agent
hdr_order from: date: to: cc: subject: x-mailer user-agent

## Remap some stupidity in mutt
#
bind index x noop
bind index q noop
bind index Q quit
bind index M query
bind pager <Down> next-line
bind pager <Up> previous-line
bind pager <PageDown> next-entry
bind pager <PageUp> previous-entry
macro index,pager y "<change-folder>?<toggle-mailboxes>" "show mailbox list"
bind browser y exit

## Easy access to URLs
#
macro pager "\cu" "|urlview\n" "Extract URLs from the message"
macro index "\cu" "|urlview\n" "Extract URLs from the message"

# Macro to mark read all msgs in a folder
macro index "\ca" "T.*\n;WN;WO^T.*\n" "All them marked as read"

## Misc features, easy to figure out
#
set sort=threads
set sig_dashes = yes
# set use_from = yes
set header_cache=~/.mutt/.cache/
set pager_index_lines = 11
set index_format= "%Z %{%b %d} %-15.15F %s"
set mark_old = no
set signature = "~/.signature"
set mailcap_path = "~/.mutt/mailcap"
set certificate_file = ~/.mutt/certificados

## To be overriden by profiles. Keep for the sake of sanity
#
set sendmail = "/usr/bin/nbsmtp"

## Some general imap settings, nothing fancy
#
set imap_passive
set imap_peek
set mail_check = 30
set timeout = 15

## General initial settings. To be overriden by hooks anyway
#
set from="Jose Luis Rivero <yoswink@gentoo.org>"
set sendmail="/usr/bin/nbsmtp -h dev.gentoo.org -f yoswink@gentoo.org"

## Configure storage
#
set mbox_type=maildir
set folder=~/Mail
set spoolfile=+gentoo/INBOX
set record=+gentoo/Sent
set postponed=+gentoo/Drafts
set nomove

## Mailboxes (hacky but works). Idea from Aron Griffis
#
mailboxes \
	+gentoo/INBOX \
	`cd ~/Mail ; find gentoo -maxdepth 1 \
	-mindepth 1 -type d ! -name INBOX ! -name Trash \
	! -name Sent ! -name Drafts ! -name 'INBOX-Old*' \
	-printf "+%p "`

##
# folder-hooks to:
#   - set proper spoolfiles, record and postponed
#   - set proper from
#   - call nbsmtp apropiately
##
#
folder-hook . 'unset from; unset sendmail; unset record; unset postponed;'
folder-hook 'gentoo/' 'set from="Jose Luis Rivero <yoswink@gentoo.org>"; \
			set sendmail="/usr/bin/nbsmtp -S -h dev.gentoo.org -U lalala -P lololo"; \
			set record="+gentoo/Sent"; \
			set postponed="+gentoo/Drafts";'

##
# Mailing lists
##
#
lists @lists.gentoo.org \
	alpha@gentoo.org \

subscribe @lists.gentoo.org \
	alpha@gentoo.org \