#!/bin/bashSENDER="$1"[ -z "$SENDER" ] && echo "Usage : $0 [sender]" && exit 1for ID in $( mail_from_sender "$SENDER" )doSUBJECT=$( postcat -q $ID|egrep '^Subject:' )while truedoecho $SUBJECTecho -n "$ID : (c = cat mail / d = delete mail / u = search username used to send this mail / K = keap mail / q = quit ) ? "read acase $a inc)postcat -q $ID|less;;d)postsuper -d $IDbreak;;u)mailid_to_username $ID;;k|"")break;;q)exit 0;;*)echo "Bad choice !"esacdonedone