From 79f97648719ebcba5989b189ae6190365d4f9870 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sun, 22 May 2022 14:24:34 +0200 Subject: [PATCH] Add script to delete certain sending address from queue --- tools/del_sending_address_from_queue.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tools/del_sending_address_from_queue.sh diff --git a/tools/del_sending_address_from_queue.sh b/tools/del_sending_address_from_queue.sh new file mode 100644 index 0000000..9b7aba3 --- /dev/null +++ b/tools/del_sending_address_from_queue.sh @@ -0,0 +1,3 @@ +#!/bin/sh +(test "$1" != "") || (echo "Need email address to delete from queue" && exit 1) +for i in `mailq | grep "$1" | awk '{print $1;}' | sed -e 's/\*//'`; do postsuper -d $i; done