add script to remove frozen mail from mailq

This commit is contained in:
Jakobus Schürz 2020-08-13 22:29:54 +02:00
parent 165ca1a8e3
commit 45dcf0cdb3

7
bin/rmfrozen Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
echo remove frozen mails from mailq
sudo bash <<"EOF"
exim -Mrm $(mailq|awk '$0 ~ /.*frozen.*/ {print $3}')
EOF