Commit 6783395e authored by Vitaly Lipatov's avatar Vitaly Lipatov

add drop_mailq scripts

parent 4df8b4f3
#!/bin/sh
EMAIL=$1
#mailq | grep "$EMAIL" | sed -e "s| .*||g" | sed -e "s|\*\$||g" | sort -u | postsuper -d -
mailq | grep "$EMAIL" | sed -e "s| .*||g" | sed -e "s|\*\$||g" | postsuper -d -
#mailq | grep "^[0-9A-F]" | sed -e "s|.*||g" | sed -e "s|\*\$||g" | sort -un
mailq | grep -v '^ *(' | awk 'BEGIN { RS = "" }
# $7=sender, $8=recipient1, $9=recipient2
{ if ($8 == "'$1'" && $9 == "")
print $1 }
' | tr -d '*!' | postsuper -v -d -
#!/bin/sh
postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } / '$1'/ { print $1 }' | tr -d '*!' | postsuper -v -d -
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment