Benjamin Renard
Add option to search username
Benjamin Renard commited a74f886 at 2016-01-20 09:32:27
inspect_mail_from_sender
#!/bin/bash
SENDER="$1"
[ -z "$SENDER" ] && echo "Usage : $0 [sender]" && exit 1
for ID in $( mail_from_sender "$SENDER" )
do
SUBJECT=$( postcat -q $ID|egrep '^Subject:' )
while true
do
echo $SUBJECT
echo -n "$ID : (c = cat mail / d = delete mail / u = search username used to send this mail / K = keap mail / q = quit ) ? "
read a
case $a in
c)
postcat -q $ID|less
;;
d)
postsuper -d $ID
break
;;
u)
mailid_to_username $ID
;;
k|"")
break
;;
q)
exit 0
;;
*)
echo "Bad choice !"
esac
done
done
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX