Article View: alt.privacy.anon-server
Article #308879Re: Mailq
From: inwtx
Date: Tue, 21 Apr 2020 20:29
Date: Tue, 21 Apr 2020 20:29
51 lines
1905 bytes
1905 bytes
And another:
#!/bin/bash
#
# DeleteMailqByName.sh
#
# This scripts deletes entries in the mailq via
# a name in the mailq record.
# Format: ./DeleteMailqByName.sh eurovibes.org
filePath=${0%/*} # current file path
inputrem="$1"
if [[ $1 == "" ]]; then
echo "Address of remailer required!"
exit 0
fi
mailq > $filePath/DeleteMailqByName.txt
cat /dev/null > $filePath/DeleteMailqByName.txt2
sed -i "1d" $filePath/DeleteMailqByName.txt
sed -i '$d' $filePath/DeleteMailqByName.txt
while read line1; do
if [[ ! $line1 = "" ]]; then
tr -d '\012' <<<$line1 >> $filePath/DeleteMailqByName.txt2
else
echo "$line1" >> $filePath/DeleteMailqByName.txt2
fi
done< $filePath/DeleteMailqByName.txt
awk -vS= '$inputrem' $filePath/DeleteMailqByName.txt2 > $filePath/DeleteMailqByName.txt3
awk '{ print $1 }' $filePath/DeleteMailqByName.txt3 > $filePath/DeleteMailqByName.txt4
sed -i 's/\*//g' DeleteMailqByName.txt4
while read line1; do
postsuper -d $line1
done< $filePath/DeleteMailqByName.txt4
rm $filePath/DeleteMailqByName.txt
rm $filePath/DeleteMailqByName.txt2
rm $filePath/DeleteMailqByName.txt3
rm $filePath/DeleteMailqByName.txt4
exit 0
Technical Details
Message-ID:
<r7nl2h$b5f$1@news.mixmin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<WxInG.4102$qK6.3331@fx22.iad>Show Full Headers
Complete Article Headers
Message-ID: <r7nl2h$b5f$1@news.mixmin.net> Subject: Re: Mailq Date: Tue, 21 Apr 2020 15:29:05 -0500 From: "inwtx" <noreply@inwtx.net> References: <WxInG.4102$qK6.3331@fx22.iad> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: alt.privacy.anon-server Organization: Mixmin Injection-Date: Tue, 21 Apr 2020 20:29:06 -0000 (UTC) Injection-Info: news.mixmin.net; posting-host="9821c8c2551e8c5216b4f74334d99473fe6b034f"; logging-data="11439"; mail-complaints-to="abuse@mixmin.net"