]>
git.madduck.net Git - etc/mutt.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1f3e9c6 )
!/.mutt/bgview-fifo
!/.mutt/colours
!/.mutt/confvars
!/.mutt/bgview-fifo
!/.mutt/colours
!/.mutt/confvars
+!/.mutt/container-extractor
!/.mutt/edit-header
!/.mutt/filter-proxy
!/.mutt/get-timestamp
!/.mutt/edit-header
!/.mutt/filter-proxy
!/.mutt/get-timestamp
!/.mutt/list-mailboxes
!/.mutt/lists
!/.mutt/mailcap.backgrounding
!/.mutt/list-mailboxes
!/.mutt/lists
!/.mutt/mailcap.backgrounding
+!/.mutt/mailcap.containers
!/.mutt/mailcap.editing
!/.mutt/mailcap.htmldump
!/.mutt/mailcap.icalendar
!/.mutt/mailcap.editing
!/.mutt/mailcap.htmldump
!/.mutt/mailcap.icalendar
!/.mutt/sidebar
!/.mutt/spam
!/.mutt/supersede-header
!/.mutt/sidebar
!/.mutt/spam
!/.mutt/supersede-header
!/.mutt/viewmailattachments
!/.var/mutt/.gitignore
!/.var/mutt/header_cache/.gitignore
!/.mutt/viewmailattachments
!/.var/mutt/.gitignore
!/.var/mutt/header_cache/.gitignore
# This variable specifies which files to consult when attempting to display MIME
# bodies not directly supported by Mutt.
#
# This variable specifies which files to consult when attempting to display MIME
# bodies not directly supported by Mutt.
#
-set mailcap_path="$my_confdir/mailcap.tnef :$my_confdir/mailcap.icalendar:$my_confdir/mailcap.backgrounding:$my_confdir/mailcap.htmldump"
+set mailcap_path="$my_confdir/mailcap.containers :$my_confdir/mailcap.icalendar:$my_confdir/mailcap.backgrounding:$my_confdir/mailcap.htmldump"
# 3.139. mailcap_sanitize
# 3.139. mailcap_sanitize
-TMPDIR=$(mktemp -dp "$TMPDIR" tnef .XXXXXXXXXX)
+TMPDIR=$(mktemp -dp "$TMPDIR" cont .XXXXXXXXXX)
cleanup()
{
cd / && rm -r "$TMPDIR"
cleanup()
{
cd / && rm -r "$TMPDIR"
trap cleanup 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15
cd "$TMPDIR"
trap cleanup 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15
cd "$TMPDIR"
+
+case "$1" in
+ (application/ms-tnef) tnef;;
+ (application/x-zip-compressed) unzip /dev/stdin;;
+ (application/zip) unzip /dev/stdin;;
+esac
nfiles=$(ls -1 | wc -l)
if [ $nfiles -eq 1 ]; then
nfiles=$(ls -1 | wc -l)
if [ $nfiles -eq 1 ]; then
--- /dev/null
+#
+# Mutt mailcap for dumping HTML to text
+#
+
+application/ms-tnef; ~/.mutt/container-extractor '%t'; description=Microsoft NIH TNEF
+application/x-zip-compressed; ~/.mutt/container-extractor '%t'; description=Compressed ZIP files
+application/zip; ~/.mutt/container-extractor '%t'; description=Compressed ZIP files