Commit 5bced518 authored by ale's avatar ale
Browse files

Fix logic of pqgrep -d

parent 439db73e
......@@ -35,11 +35,11 @@ if [ "$instances" = "all" ]; then
instances=$(postmulti -l | awk '$1 != "-" {print $1}')
fi
cmd="cat"
if [ $do_delete -eq 1 ]; then
cmd="xargs -n 1 postmulti -i $instance -x postsuper -d"
fi
for instance in $instances; do
cmd="cat"
if [ $do_delete -eq 1 ]; then
cmd="xargs -n 1 postmulti -i $instance -x postsuper -d"
fi
postmulti -i $instance -x mailq \
| awk "\$7 == \"${sender}\" {print \$1}" \
| $cmd
......
Supports Markdown
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