X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5ab36412b5fc49feb41fa816129c68fd6d946e8b..3a9d1ae106f135d9d6524284c02ae2bea424ca8b:/etc/mhn.defaults.sh diff --git a/etc/mhn.defaults.sh b/etc/mhn.defaults.sh index 25d7e4af..bfc7924f 100755 --- a/etc/mhn.defaults.sh +++ b/etc/mhn.defaults.sh @@ -42,6 +42,7 @@ fi cat >>"$TMP" <<'EOF' mhstore-store-text: %m%P.txt +mhstore-store-text/calendar: %m%P.ics mhstore-store-text/html: %m%P.html mhstore-store-text/richtext: %m%P.rt mhstore-store-video/mpeg: %m%P.mpg @@ -129,6 +130,7 @@ fi #### supported. mhbuild-convert-text/html is defined below. #### cat <>${TMP} +mhbuild-convert-text/calendar: mhical -infile %F -contenttype mhbuild-convert-text: charset=%{charset}; iconv -f \${charset:-us-ascii} -t utf-8 %F${replfmt} mhbuild-disposition-text/calendar: inline mhbuild-disposition-message/rfc822: inline @@ -179,6 +181,9 @@ else fi fi +echo "mhshow-show-text/calendar: mhical -infile %F" >> $TMP +echo "mhfixmsg-format-text/calendar: mhical %F" >> $TMP + PGM=`$SEARCHPROG "$SEARCHPATH" ivs_replay` if [ ! -z "$PGM" ]; then echo "mhshow-show-application/x-ivs: %l$PGM -o %F" >> $TMP @@ -277,8 +282,6 @@ EOF # but only once I've added a new %-escape that makes more permanent temp files, # so netscape -remote can be used (without -remote you get a complaint dialog # that another netscape is already running and certain things can't be done). -# -# The widths here correspond to the replfmt width, with par, above. PGM=`$SEARCHPROG "$SEARCHPATH" w3m` if [ ! -z "$PGM" ]; then echo 'mhshow-show-text/html: charset=%{charset}; '"\ @@ -286,7 +289,7 @@ if [ ! -z "$PGM" ]; then echo 'mhfixmsg-format-text/html: charset=%{charset}; '"\ $PGM "'-dump ${charset:+-I "$charset"} -O utf-8 -T text/html %F' >> $TMP echo 'mhbuild-convert-text/html: charset=%{charset}; '"\ -$PGM "'-dump ${charset:+-I "$charset"} -O utf-8 -T text/html -cols 62 %F '"\ +$PGM "'-dump ${charset:+-I "$charset"} -O utf-8 -T text/html %F '"\ ${replfmt}" >> $TMP else PGM=`$SEARCHPROG "$SEARCHPATH" lynx` @@ -299,7 +302,7 @@ $PGM "'-child -dump -force_html ${charset:+--assume_charset "$charset"} %F | '"\ expand | sed -e 's/^ //' -e 's/ *$//'" >> $TMP echo 'mhbuild-convert-text/html: charset=%{charset}; '"\ $PGM "'-child -dump -force_html ${charset:+--assume_charset "$charset"} '"\ --width=62 %F${replfmt}" >> $TMP +%F${replfmt}" >> $TMP else PGM=`$SEARCHPROG "$SEARCHPATH" elinks` if [ ! -z "$PGM" ]; then