🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
2 messages
2 total messages Started by SEC3 Tue, 21 Apr 2020 20:17
Mailq
#308878
Author: SEC3
Date: Tue, 21 Apr 2020 20:17
20 lines
1370 bytes
Remops, here is a nice incantation to quickly rid yourself of Eurovibes
undeliverables in your queue. As root or sudo user:


mailq | tail +2 | awk 'BEGIN { RS = "" } / mixmaster@eurovibes\.org$/ {
print $1 }' | tr -d '*!' | postsuper -d -


A second address you will encounter is echolot@eurovibes.org. So...


mailq | tail +2 | awk 'BEGIN { RS = "" } / echolot@eurovibes\.org$/ {
print $1 }' | tr -d '*!' | postsuper -d -

-- 
SEC3

Contact information at <https://sec3.net>
I am also on Keybase <https://keybase.io/sec3>
YAMN Help <https://sec3.net/yamnhelp/>
Re: Mailq
#308879
Author: inwtx
Date: Tue, 21 Apr 2020 20:29
51 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads