Zionetrix::Git
Repositories
Help
Report an Issue
postfix_scripts
Code
Commits
Branches
Tags
Search
Tree:
774e0ce
Branches
Tags
master
postfix_scripts
scripts
inspect_mail_from_sender
Initial commit
Benjamin Renard
commited
774e0ce
at 2016-01-19 19:51:30
inspect_mail_from_sender
Blame
History
Raw
#!/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 / K = keap mail / q = quit ) ? " read a case $a in c) postcat -q $ID|less ;; d) postsuper -d $ID break ;; k|"") break ;; q) exit 0 ;; *) echo "Bad choice !" esac done done