add script to remove frozen mail from mailq
This commit is contained in:
parent
165ca1a8e3
commit
45dcf0cdb3
1 changed files with 7 additions and 0 deletions
7
bin/rmfrozen
Executable file
7
bin/rmfrozen
Executable 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
|
Loading…
Reference in a new issue