]> 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:

add simple icalendar handling
authormartin f. krafft <madduck@madduck.net>
Mon, 13 Aug 2018 04:26:27 +0000 (16:26 +1200)
committermartin f. krafft <madduck@madduck.net>
Mon, 13 Aug 2018 04:26:27 +0000 (16:26 +1200)
.mutt/mailcap.icalendar [new file with mode: 0644]
.mutt/muttrc

diff --git a/.mutt/mailcap.icalendar b/.mutt/mailcap.icalendar
new file mode 100644 (file)
index 0000000..ec374e0
--- /dev/null
@@ -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
index da9af1bdfca122ab8def44e37991827abe7d65f0..2e1b46c2f50f0aad00aafd8d211fc82225bfe1c4 100644 (file)
@@ -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/*