/ Published in: Bash
Delete emails matching a phrase in the headers.
- cd /var/spool/mqueue
- for i in `grep -sl "<some common phrase in the headers>" qf*`
- j=`ls -1 "$i" | sed 's/qf\(.*\)$/df\1/'`
- echo "Deleting $i ($j)"
- rm $i $j
You need to login to post a comment.