Zionetrix::Git
Repositories
Help
Report an Issue
postfix_scripts
Code
Commits
Branches
Tags
Search
Tree:
663ab25
Branches
Tags
master
postfix_scripts
scripts
search_spammer_in_mailq
Add search_spammer_in_mailq script
Benjamin Renard
commited
663ab25
at 2016-01-20 09:34:03
search_spammer_in_mailq
Blame
History
Raw
#!/bin/bash IFS=" " for line in $( top_sender ) do count=$( echo "$line"|awk '{print $1}' ) mail=$( echo "$line"|awk '{print $2}' ) while true do echo -n "-> $mail ($count mails) (i = inspect mail from / d = delete mail from / K = keap / q = quit ) ? " read a case $a in i) inspect_mail_from_sender "$mail" ;; d) drop_mail_from "$mail" break ;; k|"") break ;; q) exit 0 ;; *) echo "Bad choice !" esac done done