From 1b8410edf904ad7386d207f0541ad691e3050aab Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 13 Aug 2018 16:26:27 +1200 Subject: [PATCH] add simple icalendar handling --- .mutt/mailcap.icalendar | 7 +++++++ .mutt/muttrc | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .mutt/mailcap.icalendar 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/* -- 2.39.2