1#!/bin/sh 2 3path="$(cd $OUTDIR && mktemp parts/$MESSAGE_ID.XXXXXXXXXX)" 4 5# save the input 6cat > "$OUTDIR/$path" 7chmod a+r "$OUTDIR/$path" 8 9echo "<li><a href='/$path'>$(file -b "$OUTDIR/$path")</a></li>" >> $PARTS_PATH 10exit 0