mhfold   [plain text]


# To: chet@ins.CWRU.Edu
# Subject: Bash functions
# From: Sandeep Mehta <sxm@philabs.Philips.Com>

# print MH folders, useful only because folders(1) doesn't print
# mod date/times

mhfold()
{
	list=`folders | awk '{if (1 < NR) print $1}'`
	/bin/ls -lag ~/Mail > /tmp/fold$$
	for i in $list; do
		grep $i /tmp/fold$$
	done
	/bin/rm -f /tmp/fold$$
}