From: martin f. krafft Date: Mon, 13 Aug 2018 04:26:27 +0000 (+1200) Subject: add simple icalendar handling X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/1b8410edf904ad7386d207f0541ad691e3050aab?hp=8dc38a337af79fe836b7d31951088befa0dd6e1f add simple icalendar handling --- diff --git a/.mutt/mailcap.icalendar b/.mutt/mailcap.icalendar new file mode 100644 index 0000000..ec374e0 --- /dev/null +++ b/.mutt/mailcap.icalendar @@ -0,0 +1,7 @@ +# +# Mutt mailcap for iCalendar previewing/khal import + +text/calendar; ~/.mutt/icalparser; description=iCal details; copiousoutput; \ + print=khal import --batch +application/ics; ~/.mutt/icalparser; description=iCal details; copiousoutput; \ + print=khal import --batch diff --git a/.mutt/muttrc b/.mutt/muttrc index da9af1b..2e1b46c 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -1552,7 +1552,7 @@ set include=yes # This variable specifies which files to consult when attempting to # display MIME bodies not directly supported by Mutt. # -set mailcap_path="$my_confdir/mailcap.backgrounding:$my_confdir/mailcap.htmldump" +set mailcap_path="$my_confdir/mailcap.icalendar:$my_confdir/mailcap.backgrounding:$my_confdir/mailcap.htmldump" # # set mailcap_sanitize=yes # @@ -4534,7 +4534,7 @@ set xterm_set_titles=yes set xterm_title="mutt@%h [%?M?%M/?%m, n:%n]%?V? [%V]?" # -auto_view text/html +auto_view text/html application/ics text/calendar #auto_view application/x-gunzip application/x-tar-gz application/x-tar application/x-gtar #auto_view application/postscript alternative_order multipart/mixed multipart/related text/html text/enriched text/*