aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2015-02-04 17:11:03 +0800
committerAaron LI <aaronly.me@outlook.com>2015-02-04 17:11:03 +0800
commit4403a73e1de25b09691f8f30ea0d6ad784f85f8b (patch)
tree8eb498d2bfedfa9941aabf7bffe2c14efbeba46e
parent158883aba19b1dced08ad02cb87bd07cb90dfb0c (diff)
downloaddotfiles-4403a73e1de25b09691f8f30ea0d6ad784f85f8b.tar.bz2
Updated mutt configuration files.
* Added compose.rc, compose.sh, updated muttrc; to support compose mail in new tmux window * Added mutt_bgrun.sh, updated mailcap; to view attachment without blocking mutt * deleted zh * updated colors
-rw-r--r--.mutt/colors17
-rw-r--r--.mutt/compose.rc15
-rwxr-xr-x.mutt/compose.sh14
-rw-r--r--.mutt/mailcap117
-rwxr-xr-x[-rw-r--r--].mutt/mutt-notmuch.py0
-rwxr-xr-x.mutt/mutt_bgrun.sh116
-rw-r--r--.mutt/muttrc84
-rw-r--r--.mutt/zh54
8 files changed, 305 insertions, 112 deletions
diff --git a/.mutt/colors b/.mutt/colors
index 0465acf..c709d50 100644
--- a/.mutt/colors
+++ b/.mutt/colors
@@ -100,11 +100,6 @@ color body brightwhite red "^gpg: BAD signature from.*"
mono body bold "^gpg: Good signature"
mono body bold "^gpg: BAD signature from.*"
-# Various smilies and the like
-color body brightwhite default "<[Gg]>" # <g>
-color body brightwhite default "<[Bb][Gg]>" # <bg>
-color body brightwhite default " [;:]-*[})>{(<|]" # :-) etc...
-
# *bold*
color body brightblue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
@@ -115,7 +110,19 @@ mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:]
color body brightblue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
+# Various smilies and the like
+color body brightwhite default "<[Gg]>" # <g>
+color body brightwhite default "<[Bb][Gg]>" # <bg>
+color body brightwhite default " [;:]-*[})>{(<|]" # :-) etc...
+
# Border lines.
color body blue default "( *[-+=#*~_]){6,}"
+## Custom highlights
+# arXiv number
+color body brightyellow default "(^|[[:space:]])arXiv:[[:space:]0-9\.]+$"
+# arXiv title
+color body brightwhite default "(^|[[:space:]])Title:\ .+$"
+
+
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=muttrc: #
diff --git a/.mutt/compose.rc b/.mutt/compose.rc
new file mode 100644
index 0000000..f2645d8
--- /dev/null
+++ b/.mutt/compose.rc
@@ -0,0 +1,15 @@
+# read main config
+source ~/.mutt/muttrc
+
+# remove hooks, headers and sig, they are already in the draft
+unhook send-hook
+unset signature
+unmy_hdr *
+
+set edit_headers # show headers when composing
+
+# call the right editor immediately
+set autoedit
+set editor = "vim +/^$/+1 -c 'set ft=mail enc=utf-8 tw=72'"
+
+# vim: set ts=8 sw=4 tw=0 fenc= ft=muttrc: #
diff --git a/.mutt/compose.sh b/.mutt/compose.sh
new file mode 100755
index 0000000..9172421
--- /dev/null
+++ b/.mutt/compose.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Compose mail in new tmux/screen window.
+#
+# Reference:
+# [1] Multi-window Mutt with Screen
+# http://op-co.de/blog/posts/mulit-window_mutt/
+#
+
+# set the screen window title to the message receiver
+#awk -F 'To: ' '/^To:/ { print "\033k" $2 "\033\\" }' "$1"
+
+mutt -F ~/.mutt/compose.rc -H "$1"
+rm "$1"
diff --git a/.mutt/mailcap b/.mutt/mailcap
index c9d3b03..fd1db6d 100644
--- a/.mutt/mailcap
+++ b/.mutt/mailcap
@@ -1,36 +1,111 @@
-# $Id$
#
-# mutt mailcap configuration file
+# mailcap - MIME configuration file
#
-# Weitian LI <liweitianux@gmail.com>
-# 2014/07/13
+# Reference:
+# [1] Gray Johnson's Mutt Page
+# http://www.spocom.com/users/gjohnson/mutt/
#
+# Modified: 2015/02/02
+#
+
+
+# From the attachment menu, if X is running, HTML attachments are sent
+# to netscape for viewing; otherwise, they are sent to w3m. For
+# in-line viewing, the HTML is converted to text.
+#
+# [Comment-out next line so that we can use w3m even within X.]
+#text/html; mutt_netscape %s; test=RunningX
+text/html; w3m -T text/html -I %{charset} -dump %s; \
+ nametemplate=%s.html; copiousoutput
+
+# Add capability to edit attachments from the compose menu.
+#
+# Mutt can only edit attachments if they have a mailcap edit entry.
+# (This would be a good thing to fix.) However, a mailcap entry
+# apparently must include the display function--it can't be defaulted.
+# The combination "cat; copiousoutput" comes close to the default in
+# that in invokes the default pager on the output of cat. However,
+# there is apparently no way to specify the default editor--a shell
+# environment variable such as $VISUAL or $EDITOR is as close as we can
+# get.
+#
+text/plain; ~/.mutt/mutt_bgrun.sh gvim -f %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+text/plain; vim %s
+text/*; cat; copiousoutput; edit=$EDITOR %s
-## 'copiousoutput' tells mutt the cmd passes possibly large amounts
-## of text, causes mutt to invoke a pager. also denote non-interactive.
+message/rfc822; cat; copiousoutput; edit=$EDITOR %s
-#text/html; firefox -remote 'openURL(%s)'; test=RunningFirefox
-text/html; w3m -T text/html -I %{charset} -dump %s; nametemplate=%s.html; copiousoutput
+# The following Microsoft application MIME attachments are viewed from
+# the attachment menu using LibreOffice.
+#
+application/msword; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/msword; word2text %s; copiousoutput
+application/vnd.msword; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/vnd.msword; word2text %s; copiousoutput
+#
+application/excel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/excel; excel2text %s; copiousoutput
+application/msexcel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/msexcel; excel2text %s; copiousoutput
+application/vnd.ms-excel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/vnd.ms-excel; excel2text %s; copiousoutput
+application/x-excel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/x-excel; excel2text %s; copiousoutput
+application/x-msexcel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/x-msexcel; excel2text %s; copiousoutput
+application/ms-Excel; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/ms-Excel; excel2text %s; copiousoutput
+#
+application/vnd.ms-powerpoint; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/vnd.ms-powerpoint; ppt2text %s; copiousoutput
+application/x-mspowerpoint; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/x-mspowerpoint; ppt2text %s; copiousoutput
+application/ppt; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/ppt; ppt2text %s; copiousoutput
-image/jpeg; feh %s
-image/png; feh %s
-image/gif; feh %s
-image/*; feh %s
-video/*; vlc %s
+application/pdf; ~/.mutt/mutt_bgrun.sh evince %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/pdf; pdftotext %s -; copiousoutput
+application/postscript; ~/.mutt/mutt_bgrun.sh evince %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/postscript; ps2ascii %s; copiousoutput
+
+application/rtf; ~/.mutt/mutt_bgrun.sh libreoffice %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+application/rtf; rtf2text %s; copiousoutput
+
+#application/ms-tnef; tnef -w %s
+
+#application/octet-stream; mutt_octet_view -x %s; test=RunningX
+#application/octet-stream; mutt_octet_view -v %s
+#application/octet-stream; mutt_octet_view %s; copiousoutput
+
+image/*; ~/.mutt/mutt_bgrun.sh feh %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+
+video/*; ~/.mutt/mutt_bgrun.sh vlc %s; \
+ test=sh -c 'test -n "${DISPLAY}"'
+
+# Show archive conents.
+#
application/x-compressed-tar; tar -tf %s; copiousoutput
application/x-gnuzip; gzcat; copiousoutput
application/x-bzip; bunzip2 -c %s | tar -tf -; copiousoutput
application/x-tar-gz; gunzip -c %s | tar -tf -; copiousoutput
application/x-7z-compressed; 7z l %s; copiousoutput
-# application/postscript; ps2ascii %s; copiousoutput
-# application/pdf; apvlv %s; copiousoutput
-# application/pdf; mupdf %s; copiousoutput
-application/pdf; pdftotext '%s' -; copiousoutput; description="PDF Document"; nametemplate="%s.pdf"
-application/msword; wvHtml --charset=gb2312 %s - | w3m -dump %s; nametemplate=%s.html; copiousoutput
-# application/vnd.ms-excel;
-
-
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=mailcap: #
diff --git a/.mutt/mutt-notmuch.py b/.mutt/mutt-notmuch.py
index 880b987..880b987 100644..100755
--- a/.mutt/mutt-notmuch.py
+++ b/.mutt/mutt-notmuch.py
diff --git a/.mutt/mutt_bgrun.sh b/.mutt/mutt_bgrun.sh
new file mode 100755
index 0000000..08d5e6b
--- /dev/null
+++ b/.mutt/mutt_bgrun.sh
@@ -0,0 +1,116 @@
+#!/bin/sh
+# @(#) mutt_bgrun $Revision: 1.4 $
+
+# mutt_bgrun - run an attachment viewer from mutt in the background
+# Copyright (C) 1999-2002 Gary A. Johnson
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+# SYNOPSIS
+# mutt_bgrun viewer [viewer options] file
+#
+# DESCRIPTION
+# Mutt invokes external attachment viewers by writing the
+# attachment to a temporary file, executing the pipeline specified
+# for that attachment type in the mailcap file, waiting for the
+# pipeline to terminate, writing nulls over the temporary file,
+# then deleting it. This causes problems when using graphical
+# viewers such as qvpview and acroread to view attachments.
+#
+# If qvpview, for example, is executed in the foreground, the mutt
+# user interface is hung until qvpview exits, so the user can't do
+# anything else with mutt until he or she finishes reading the
+# attachment and exits qvpview. This is especially annoying when
+# a message contains several MS Office attachments--one would like
+# to have them all open at once.
+#
+# If qvpview is executed in the background, it must be given
+# enough time to completely read the file before returning control
+# to mutt, since mutt will then obliterate the file. Qvpview is
+# so slow that this time can exceed 20 seconds, and the bound is
+# unknown. So this is again annoying.
+#
+# The solution provided here is to invoke the specified viewer
+# from this script after first copying mutt's temporary file to
+# another temporary file. This script can then quickly return
+# control to mutt while the viewer can take as much time as it
+# needs to read and render the attachment.
+#
+# EXAMPLE
+# To use qvpview to view MS Office attachments from mutt, add the
+# following lines to mutt's mailcap file.
+#
+# application/msword; mutt_bgrun qvpview %s
+# application/vnd.ms-excel; mutt_bgrun qvpview %s
+# application/vnd.ms-powerpoint; mutt_bgrun qvpview %s
+#
+# AUTHOR
+# Gary A. Johnson
+# <garyjohn@spk.agilent.com>
+#
+# ACKNOWLEDGEMENTS
+# My thanks to the people who have commented on this script and
+# offered solutions to shortcomings and bugs, especially Edmund
+# GRIMLEY EVANS <edmundo@rano.org> and Andreas Somogyi
+# <aso@somogyi.nu>.
+
+prog=${0##*/}
+
+# Check the arguments first.
+
+if [ "$#" -lt "2" ]
+then
+ echo "usage: $prog viewer [viewer options] file" >&2
+ exit 1
+fi
+
+# Separate the arguments. Assume the first is the viewer, the last is
+# the file, and all in between are options to the viewer.
+
+viewer="$1"
+shift
+
+while [ "$#" -gt "1" ]
+do
+ options="$options $1"
+ shift
+done
+
+file=$1
+
+# Create a temporary directory for our copy of the temporary file.
+#
+# This is more secure than creating a temporary file in an existing
+# directory.
+
+tmpdir=/tmp/$LOGNAME$$
+umask 077
+mkdir "$tmpdir" || exit 1
+tmpfile="$tmpdir/${file##*/}"
+
+# Copy mutt's temporary file to our temporary directory so that we can
+# let mutt overwrite and delete it when we exit.
+
+cp "$file" "$tmpfile"
+
+# Run the viewer in the background and delete the temporary files when done.
+
+(
+ "$viewer" $options "$tmpfile" > /dev/null 2>&1
+ rm -f "$tmpfile"
+ rmdir "$tmpdir"
+) &
+
+# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=sh: #
diff --git a/.mutt/muttrc b/.mutt/muttrc
index 93be99a..6c640b7 100644
--- a/.mutt/muttrc
+++ b/.mutt/muttrc
@@ -13,22 +13,27 @@
## https://wiki.archlinux.org/index.php/Mutt
## [4] Using Two IMAP Accounts in Mutt
## http://pbrisbin.com/posts/two_accounts_in_mutt
-## [5] The Mutt E-Mail Client: Reference
-## http://www.mutt.org/doc/manual/manual-6.html
+## [5] The Mutt E-Mail Client
+## http://www.mutt.org/doc/devel/manual.html
## [6] A Quick Guide to Mutt
## http://srobb.net/mutt.html
+## [7] Multi-window Mutt with Screen
+## http://op-co.de/blog/posts/mulit-window_mutt/
+## [8] Github - proycon/dotfiles - mutt with tmux
+## https://github.com/proycon/dotfiles
##
### Mail boxes
source ~/.mutt/mailboxes # Generated by OfflineIMAP
### Mail accounts
-folder-hook 'gmail-aaronly\.me.*' source ~/.mutt/accounts/gmail-aly
-folder-hook 'gmail-liweitianux.*' source ~/.mutt/accounts/gmail-li
-folder-hook 'outlook-aaronly\.me.*' source ~/.mutt/accounts/outlook-aly
-folder-hook 'outlook-liweitianux.*' source ~/.mutt/accounts/outlook-li
-folder-hook 'sjtu.*' source ~/.mutt/accounts/sjtu
-folder-hook 'autistici.*' source ~/.mutt/accounts/autistici
+folder-hook . source ~/.mutt/accounts/default
+folder-hook 'gmail-aly.*' source ~/.mutt/accounts/gmail-aly
+folder-hook 'gmail-li.*' source ~/.mutt/accounts/gmail-li
+folder-hook 'outlook-aly.*' source ~/.mutt/accounts/outlook-aly
+folder-hook 'outlook-li.*' source ~/.mutt/accounts/outlook-li
+folder-hook 'sjtu.*' source ~/.mutt/accounts/sjtu
+folder-hook 'autistici.*' source ~/.mutt/accounts/autistici
# Default account
source ~/.mutt/accounts/default
@@ -51,8 +56,9 @@ set wrap_search # searches wrap around the end
set copy # always save a copy of outgoing messages
set delete # purge deleted messages without asking
set use_from # always generate the `From:' header field
-set quit = ask-yes # ask for confirmation when quit mutt
-set history = 512
+set quit = ask-no # ask for confirmation when quit mutt
+set history = 256
+set save_history = 256
set sendmail_wait = 0 # Wait forever for sendmail to finish
unset wait_key
unset move
@@ -60,8 +66,7 @@ unset confirmappend
unset mark_old
### Compose view
-set editor = "vim +/^$ -c 'set syntax=mail ft=mail enc=utf-8 tw=72'"
-set visual = "vim +/^$ -c 'set syntax=mail ft=mail enc=utf-8 tw=72'"
+set editor = "vim +/^$/+1 -c 'set ft=mail enc=utf-8 tw=72'"
set envelope_from # which from?
set sig_dashes # dashes before my 'signature'
set autoedit # go to the editor right away when composing
@@ -88,26 +93,28 @@ unhdr_order *
hdr_order from: to: cc: date: subject:
### Encoding
-set send_charset = "utf-8"
-set assumed_charset = "iso-8859-1" # if no charset given on incoming messages
-#set rfc2047_parameters # attachment filename encoding
+set send_charset = "us-ascii:utf-8"
+# if no charset given on incoming messages
+set assumed_charset = "iso-8859-1:gb2312:gbk:gb18030:utf-8"
+set rfc2047_parameters # to fix attachment filename encoding
### Index view
-#set date_format = "%m/%d"
-set index_format = "%Z %{%a %d %b %Y} %3M %-15.15L (%4c) %s"
-set folder_format = "%2C %t %N %8s %f"
-set sort = threads
-set sort_aux = reverse-last-date-received
+# first bang ("!") to expand month week names in the C locale
+set date_format = "!%a %m/%d %I:%M"
+set index_format = "[%Z] %d %3M %-15.15L (%4c) %s"
+set folder_format = "%2C %t %N %8s %f"
+set sort = threads
+set sort_aux = reverse-last-date-received
set uncollapse_jump # don't collapse on an unread message
set sort_re # thread based on regex
-set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
+set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
### Status bar
set status_chars = " *%A"
-set status_format = "---[ Folder: %f ]---[ %r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]---%>-%?p?( %p postponed )?---"
+set status_format = "---[ Folder: %f %r ]---[ Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l? ]---%>-(%P)---"
### Pager
-set pager_format="-%S- %-20.20f %s"
+#set pager_format = "-%S- %-20.20f %s"
set pager_index_lines = 8 # number of index lines to show
set pager_context = 8 # number of context lines to show
set pager_stop # don't go to next message automatically
@@ -118,9 +125,6 @@ set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
unset markers # no ugly '+' signs for wrapped lines
alternative_order text/plain text/enriched text/html
-### Attachment view
-set attach_format = "[%D %t] %2n [%-7.7m/%10.10M] %.40d %> [%s] "
-
### Key bindings
bind index i noop
bind index <TAB> sync-mailbox
@@ -155,14 +159,14 @@ macro index \Cr "<tag-prefix><clear-flag>N" \
"mark tagged messages as read"
macro index C "<copy-message>?<toggle-mailboxes>" \
"copy a message to a mailbox"
-macro index M "<save-message>?<toggle-mailboxes>" \
+macro index S "<save-message>?<toggle-mailboxes>" \
"copy a message to a mailbox"
macro index B "<limit>~b " \
"search message bodies"
macro index I "<change-folder>!<enter>" \
"go to Inbox"
# Save a decoded copy in ~/
-macro index s "<pipe-message>cat > ~/" \
+macro index > "<pipe-message>cat > ~/" \
"save message as"
# Open in vim
macro index,pager V "<pipe-message>vim -c 'setlocal ft=mail buftype=nofile' -<enter>" \
@@ -177,18 +181,17 @@ macro browser <Tab> "<toggle-mailboxes><check-new>" \
macro compose Y pfy \
"send mail without GPG"
# urlview
-macro pager \Cu "<pipe-entry>urlview<enter>" \
+macro pager \Cu "<pipe-entry>urlview<enter>" \
"Follow links with urlview"
-macro pager ';' "<exit><tag-prefix>" \
+macro pager ';' "<exit><tag-prefix>" \
"q+ ;"
# notmuch
-macro index S "<enter-command>unset wait_key<enter><shell-escape>~/.mutt/mutt-notmuch.py -G $folder/search<enter><change-folder-readonly>+search<enter>" \
+macro index s "<enter-command>unset wait_key<enter><shell-escape>~/.mutt/mutt-notmuch.py -G $folder/search<enter><change-folder-readonly>+search<enter>" \
"search mail (using notmuch)"
### aliases
set sort_alias = alias # sort alias file by alias
set reverse_alias # show names from alias file in index
-#set alias_format = "%4n %t %-20a %r"
source $alias_file # enable auto-completion
### abook
@@ -202,6 +205,23 @@ set followup_to # generate 'Mail-Followup-To:' header field
set honor_followup_to # 'Mail-Followup-To' header is honored
source ~/.mutt/mailinglists
+## Multiplexing using tmux
+# compose mail in tmux window
+macro index,pager M '<enter-command>set my_oldeditor=$editor<enter><enter-command>set editor="cp %s %s.2; tmux new-window -a -t mutt \"~/.mutt/compose.sh %s.2\""<enter><enter-command>unset recall<enter><mail><enter-command>set editor=$my_oldeditor<enter>' \
+ "mail in new tmux window"
+#unset wait_key # already set above
+# forward messages
+# override the <recall-message> hotkey
+macro index,pager P "<shell-escape>tmux new-window -a -t mutt 'mutt -F ~/.mutt/compose.rc -p'<enter>" \
+ "recall postponed message in new tmux window"
+# Set the editor for for editing messages in-place,
+# allows re-editing before sending, e.g. for use in forwarding messages.
+macro compose E '<enter-command>set my_oldeditor=$editor<enter><enter-command>set editor="vim"<enter><edit-message><enter-command>set editor=$my_oldeditor<enter>' \
+ "edit message in-place"
+# open mailbox listing in a new window
+macro index,pager Y '<shell-escape>tmux new-window -a -t mutt "mutt -y"<enter>' \
+ "open mailbox listing in new tmux window"
+
## Attachment searching and counting
source ~/.mutt/attachments
diff --git a/.mutt/zh b/.mutt/zh
deleted file mode 100644
index e773420..0000000
--- a/.mutt/zh
+++ /dev/null
@@ -1,54 +0,0 @@
-#
-# mutt zh settings
-#
-
-## Ref: http://forum.ubuntu.org.cn/viewtopic.php?f=73&t=322014
-#set send_charset="us-ascii:iso-8859-1:gb2312:utf-8"
-set send_charset="gb2312"
-set assumed_charset="utf-8:gb2312:gb18030:gbk"
-set locale="zh_CN.UTF-8"
-charset-hook ^us-ascii$ GB2312
-charset-hook !UTF-8 GB2312
-auto_view text/html
-set rfc2047_parameters=yes
-
-## Ref: http://leeon.me/a/mutt-muttrc-chinese-configuration-note
-#当 Mutt 用 thread 方式显示时,是否用纯 ascii 表示树状列表。
-set ascii_chars=yes
-#回信的引文之前插入那个符号?
-set indent_str="> "
-#打分
-#新信件+4分,主题包含“通知”的+2,主题包含 “Circulation” +3, 已经标记删除的 -5,上次没有读的 +1,包含 “believe”的 -10(垃圾广告!)。
-score "~N" +4
-score "~s 通知" +2
-score "~s Circulation" +3
-score "~D" -5
-score "~O" +1
-score "~s believe" -10
-#排序方式。
-set sort=score
-#当用 thread 排序方式时,我们对各个 thread 的相对排序顺序。
-set sort_aux=date
-#你的终端支持哪一种编码的显示?这个必须和你的终端编码一样。推荐用utf8
-set charset="utf8"
-#send_charset
-#set send_charset="us-ascii:iso-8859-1:gb2312:utf-8"
-set send_charset="us-ascii:iso-8859-1:gb2312:utf-8"
-#外部程序退出时,是否要求用户按一个键才返回。这在察看某些shell命令输出时是比要的,
-#否则它们一下就消失了。
-set wait_key=yes
-#mutt显示日期为中文
-set locale="zh_CN"
-#有些没有设置字符编码时
-charset-hook ^us-ascii$ gb2312
-#Chinaren 等服务器发出来的信件使用了 quoted-printable 的 subject,
-#而且设置编码为 "iso8859-1",这显然是错误的。
-#对付这个错误的办法是把 iso-8859-1 变成 gb2312 的别名
-charset-hook ^iso-8859-1$ gb2312
-# evolution 发过来的 subject 为 utf-8 编码的邮件标题乱码!
-#那就把不是 utf-8 的编码都映射到 gb2312
-charset-hook !utf-8 gb2312
-charset-hook .* gb2312
-
-
-# vim: filetype=muttrc