nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 096cd9af57fb7b581b19324a7e7922c1ad92e734
parent 0e0586dad9f0c1beecb6c5eb6f0479f10d35db7a
Author: Ellenor Malik <ellenor@umbrellix.net>
Date:   Fri,  7 Oct 2022 00:27:18 +0000

add back mistakenly removed shell scripts

Diffstat:
Aqmail-qstat.sh | 7+++++++
Aqmail-upq.sh | 14++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/qmail-qstat.sh b/qmail-qstat.sh @@ -0,0 +1,7 @@ +cd QMAIL +messdirs=`echo queue/mess/* | wc -w` +messfiles=`find queue/mess/* -print | wc -w` +tododirs=`echo queue/todo | wc -w` +todofiles=`find queue/todo -print | wc -w` +echo messages in queue: `expr $messfiles - $messdirs` +echo messages in queue but not yet preprocessed: `expr $todofiles - $tododirs` diff --git a/qmail-upq.sh b/qmail-upq.sh @@ -0,0 +1,14 @@ +cd QMAIL +cd queue +for dir in mess info local remote +do + ( cd $dir; find . -type f -print ) | ( + cd $dir + while read path + do + id=`basename "$path"` + sub=`expr "$id" % SPLIT` + mv "$path" "$sub"/"$id" + done + ) +done