From df37e63431530c2535e9c3d2ee6b6d88059832d7 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 8 Oct 2008 20:41:19 -0400 Subject: [PATCH 1/1] Initial commit. --- colors | 19 +++++++++++++ hooks | 13 +++++++++ keys | 22 +++++++++++++++ mailing_lists | 6 +++++ muttrc | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ ssl | 6 +++++ ssmtp.conf | 21 +++++++++++++++ 7 files changed, 161 insertions(+) create mode 100644 colors create mode 100644 hooks create mode 100644 keys create mode 100644 mailing_lists create mode 100644 muttrc create mode 100644 ssl create mode 100644 ssmtp.conf diff --git a/colors b/colors new file mode 100644 index 0000000..b0d721d --- /dev/null +++ b/colors @@ -0,0 +1,19 @@ +color normal white black +color quoted green black +color quoted1 cyan black +color quoted2 green black +color quoted4 cyan black +color indicator white red +color signature blue black +color hdrdefault yellow black +color status white blue +color message white black +color error red black +color body magenta black "(ftp|http|https)://[^ ]+" +color body magenta black "[-a-z_0-9.]+@[-a-z_0-9.]+" +color tree magenta black +color tilde magenta black +color markers brightcyan black +color attachment brightmagenta black +color search black green +color underline brightgreen black diff --git a/hooks b/hooks new file mode 100644 index 0000000..df31fc2 --- /dev/null +++ b/hooks @@ -0,0 +1,13 @@ +folder-hook . "set sort=date-received" + +folder-hook . "set index_format='%{%F %T} %Z %-25.25s %-24.24a %4.4c'" + +# I don't really need to see the "From" in my sent +# folder. "To" is probably a bit more useful. +folder-hook sent "set index_format='%{%F %T} %Z %-25.25s %-24.24t %4.4c'" + +# Sort any mailing list messages by thread. +# This assumes, of course, that all of your +# mailing list messages are stored under /lists/. +folder-hook ^lists/ "set sort=threads" + diff --git a/keys b/keys new file mode 100644 index 0000000..7a46022 --- /dev/null +++ b/keys @@ -0,0 +1,22 @@ +bind generic previous-page +bind generic next-page + +bind index imap-fetch-mail +bind index previous-entry +bind index next-entry +bind index "\Cp" previous-entry +bind index "\Cn" next-entry + +bind pager "\Cp" previous-line +bind pager "\Cn" next-line +bind pager "\ev" previous-page +bind pager "\Cv" next-page +bind pager previous-line +bind pager next-line +bind pager previous-entry +bind pager next-entry +bind pager "\Cb" previous-entry +bind pager "\Cf" next-entry +bind pager d delete-message +bind pager delete-message +bind pager r reply diff --git a/mailing_lists b/mailing_lists new file mode 100644 index 0000000..4ae95b9 --- /dev/null +++ b/mailing_lists @@ -0,0 +1,6 @@ +# List any mailing lists to which you subscribe +# in here. +# +# Format: subscribe {$list_name} +# + diff --git a/muttrc b/muttrc new file mode 100644 index 0000000..fb846fe --- /dev/null +++ b/muttrc @@ -0,0 +1,74 @@ +# Headers + +ignore * +unignore From To Cc Subject Date +hdr_order From: Date: To: Cc: Subject: + + +# Folders + +set folder="imaps://mail.example.com/" +set imap_user="user@example.com" +set realname="" +set from="user@example.com" + +# This little bit of magic finds the ssmtp binary. +# On many systems, it will be located under /usr/sbin, +# so we need to add that to the path before we invoke 'which'. +set sendmail="`PATH="$PATH:/usr/sbin" which ssmtp` -C $HOME/.mutt/ssmtp.conf" + +set spoolfile="+INBOX" +set mbox="+mbox" +set record="+sent/`date +%Y-%m`" +set postponed="+postponed" +set mbox_type="maildir" + + +# Miscellaneous + +set abort_nosubject=ask-yes +set abort_unmodified=yes +set attach_split=yes +set beep=no +set charset="utf8" +set confirmappend=no +set confirmcreate=no +set copy=yes +set delete=ask-yes +set edit_headers=yes +set fast_reply=yes +set forward_format="fwd: %s" +set followup_to=yes +set hidden_host=yes +set honor_followup_to=yes +set include=yes +set indent_str="> " +set mail_check=15 +set markers=yes +set move=no +set pager="builtin" +set pager_context=3 +set print=ask-yes + +# This is the command used to query your address book +# (if you have one). I need to come up with a better +# system for contacts. +set query_command= + +set reply_self=no +set reply_to=ask-yes +set reverse_name=yes +set reverse_realname=no +set send_charset="utf8" +set smart_wrap=yes +set sort_aux=date-received +set use_envelope_from=no +set use_from=yes + +# Pull in all of the other config files + +source "~/.mutt/ssl" +source "~/.mutt/mailing_lists" +source "~/.mutt/colors" +source "~/.mutt/keys" +source "~/.mutt/hooks" diff --git a/ssl b/ssl new file mode 100644 index 0000000..637e2ed --- /dev/null +++ b/ssl @@ -0,0 +1,6 @@ +# Don't connect unless TLS is available. +set ssl_force_tls=yes + +# And if we download certs from the POP/IMAP server, +# store them here. +set certificate_file="~/.mutt/.mutt.crt" diff --git a/ssmtp.conf b/ssmtp.conf new file mode 100644 index 0000000..b74895b --- /dev/null +++ b/ssmtp.conf @@ -0,0 +1,21 @@ +# Left blank to disable address rewriting. +root= + +mailhub=mail.example.com:587 +AuthUser=username@example.com +AuthPass= + +# Should probably be forced blank. We don't +# want anything rewritten ever. +rewriteDomain= + +# Determine the envelope sender address from +# the "From:" header. +FromLineOverride=YES + +# And we want some TLS. +UseTLS=YES +UseSTARTTLS=YES +UseTLSCert=NO + +Debug=NO -- 2.44.2