a74f886eccd7d197d233d5b30b90826a38241d2c
Benjamin Renard Initial commit

Benjamin Renard authored 8 years ago

1) #!/bin/bash
2) 
3) SENDER="$1"
4) [ -z "$SENDER" ] && echo "Usage : $0 [sender]" && exit 1
5) 
6) for ID in $( mail_from_sender "$SENDER" )
7) do
8) 	SUBJECT=$( postcat -q $ID|egrep '^Subject:' )
9) 	while true
10) 	do
11) 		echo $SUBJECT
Benjamin Renard Add option to search username

Benjamin Renard authored 8 years ago

12) 		echo -n "$ID : (c = cat mail / d = delete mail / u = search username used to send this mail / K = keap mail / q = quit ) ? "
Benjamin Renard Initial commit

Benjamin Renard authored 8 years ago

13) 		read a
14) 		case $a in
15) 			c)
16) 				postcat -q $ID|less
17) 			;;
18) 			d)
19) 				postsuper -d $ID
20) 				break
21) 			;;
Benjamin Renard Add option to search username

Benjamin Renard authored 8 years ago

22) 			u)
23) 				mailid_to_username $ID
24) 			;;