Created
January 27, 2012 15:25
-
-
Save markshust/1689286 to your computer and use it in GitHub Desktop.
Delete email messages from certain domain in certain month out of mail queue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run directly in terminal. domain is domain name, month = three letter month code (Jan = January) | |
for i in $(mailq | grep DOMAIN | grep MONTH | awk '{ print $1 }') ; do postsuper -d $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment