projects
/
mx01
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b7587
)
optionally specify from address, default is MAILER-DAEMON
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 19 Sep 2016 12:22:38 +0000
(14:22 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 19 Sep 2016 12:22:38 +0000
(14:22 +0200)
remove-mailer-daemon.sh
patch
|
blob
|
history
diff --git
a/remove-mailer-daemon.sh
b/remove-mailer-daemon.sh
index
c6946eb
..
77a100f
100755
(executable)
--- a/
remove-mailer-daemon.sh
+++ b/
remove-mailer-daemon.sh
@@
-1
+1,5
@@
-mailq | grep MAILER-DAEMON | grep ^[0-9A-Z] | awk '{ print $1 }' | sed 's/*$//'
+# usage: ./remove-mailer-daemon.sh [MAILER-DAEMON] | sudo postsuper -d -
+
+from=MAILER-DAEMON
+test ! -z "$1" && from=$1
+mailq | grep $from | grep ^[0-9A-Z] | awk '{ print $1 }' | sed 's/*$//'