]> diplodocus.org Git - nmh/commitdiff
Added application/ics entries, and "file was generated" comment.
authorDavid Levine <levinedl@acm.org>
Sat, 19 Nov 2016 15:28:08 +0000 (10:28 -0500)
committerDavid Levine <levinedl@acm.org>
Sat, 19 Nov 2016 15:28:08 +0000 (10:28 -0500)
application/ics is odd but does appear in the wild, and sometimes
without a corresponding text/calendar part.

etc/mhn.defaults.sh

index dfe78d3..40b2359 100755 (executable)
@@ -182,7 +182,9 @@ else
 fi
 
 echo "mhshow-show-text/calendar: mhical -infile %F" >> $TMP
+echo "mhshow-show-application/ics: mhical -infile %F" >> $TMP
 echo "mhfixmsg-format-text/calendar: mhical -infile %F" >> $TMP
+echo "mhfixmsg-format-application/ics: mhical -infile %F" >> $TMP
 
 PGM=`$SEARCHPROG "$SEARCHPATH" ivs_replay`
 if [ ! -z "$PGM" ]; then
@@ -350,8 +352,11 @@ case "`uname`" in
        ;;
 esac
 
-# output a sorted version of the file
-sort < $TMP
+# Output a sorted version of the file, along with some comments in
+# appropriate places.
+echo '#: This file was generated by mhn.defaults.sh.'
+sort < $TMP | \
+    sed -e 's|^\(mhshow-show-application/ics:.*\)|#: might need -notextonly -noinlineonly or -part/-type to show application/ics parts\n\1|'
 
 exit 0