~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.config/mutt/mailcap -rw-r--r-- 1.0 KiB
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
text/plain; view %s; test=command -v view
text/plain; less -R %s
text/html; open -a firefox '%s' && sleep 3; test=test -n "$DISPLAY"; nametemplate=%s.html
text/html; w3m -I %{charset} -T text/html -dump -o display_image=false -o display_link_number=true; copiousoutput
text/x-diff; cat %s | colordiff; copiousoutput
text/x-patch; cat %s | colordiff; copiousoutput

# Install mutt-ics with pipx install mutt_ics
text/calendar; mutt-ics; copiousoutput
application/ics; mutt-ics; copiousoutput

# Images
image/*; feh %s; test=command -v feh
image/*; anytopnm %s | pnmscale -xsize 80 -ysize 50 | ppmtopgm | pgmtopbm | pbmtoascii; test=command -v anytopnm; copiousoutput
image/*; catimg %s; test=command -v catimg; copiousoutput

# PDFs
application/pdf; pdftotext "%s" -; copiousoutput; description=PDF Document; nametemplate=%s.pdf

# Word files
application/msword; antiword "%s"; copiousoutput; description=Word Document; nametemplate=%s.doc
application/msword; docx2text.pl "%s" -; copiousoutput; description=Word Document; nametemplate=%s.docx