-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmailcap
More file actions
17 lines (13 loc) · 815 Bytes
/
mailcap
File metadata and controls
17 lines (13 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# First line is for attachment opening
text/html; /usr/bin/firefox %s >/dev/null 2>&1 &; needsterminal
# text/html; lynx %s; nametemplate=%s.html
# Second line is for auto_view
# text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput
text/html; elinks -dump %s; nametemplate=%s.html; copiousoutput
# application/pdf; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; evince /tmp/mutt/$(basename %s) > /dev/null 2>&1 &
# Open everything in background using xdg-open
# Source:
# https://unix.stackexchange.com/questions/65381/how-to-tell-mutt-not-to-wait-for-an-attachment-program-to-return
application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; xdg-open /tmp/mutt/$(basename %s) &
image/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; xdg-open /tmp/mutt/$(basename %s) &
text/calendar; printics %s; needsterminal