From: David Levine Date: Sat, 19 Nov 2016 15:28:08 +0000 (-0500) Subject: Added application/ics entries, and "file was generated" comment. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d807e761d3a99fc39d7999fed37074e865e888b5 Added application/ics entries, and "file was generated" comment. application/ics is odd but does appear in the wild, and sometimes without a corresponding text/calendar part. --- diff --git a/etc/mhn.defaults.sh b/etc/mhn.defaults.sh index dfe78d37..40b2359e 100755 --- a/etc/mhn.defaults.sh +++ b/etc/mhn.defaults.sh @@ -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