+ case $1 in
+ -a) find $SPOOL/ack -type f -printf '%P\n' | sort -n
+ ;;
+ *) find $SPOOL/open -type f -printf '%P\n' | sort -n
+ ;;
+ esac
+ ;;
+ detail)
+ len=$(find $SPOOL/open -type f -printf "%P\n" | awk ' { if ( length > x ) { x = length } }END{ print x }')
+ find $SPOOL/open -type f -printf "%P\n" | sort -n | while read note ; do
+ subject=$(head -1 $SPOOL/open/$note)
+ date=$(stat -c '%y' $SPOOL/open/$note | cut -f1 -d' ')
+ printf '%*s %s %s\n' $len $note "$date" "$subject"
+ done