Skip to content

Instantly share code, notes, and snippets.

@markshust
Created January 27, 2012 15:25
Show Gist options
  • Save markshust/1689286 to your computer and use it in GitHub Desktop.
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
# 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