On 07 Nov 2020, 04:48p, Al said the following...
If it gets the description from the Desc line the description will be on onelong line.
I had that issue here, and did a little 'bash-fu' to correct it. :)
for file in /home/dan/mystic/echomail/in/*.tic; do
[ -e "$file" ] || continue
ticlength=`cat "$file" | grep "^Desc " | wc -c`
if [ $ticlength -gt 45 ]
then
cat $file | grep "Desc " | cut -c6- | fold -sw45 > ticdesc.txt ticdesc=`cat ticdesc.txt`
sed -i 's/^Desc/LDesc/g' $file
fmt -w 45 -p LDesc $file > test.tic
cp test.tic $file
rm test.tic
rm ticdesc.txt
fi
done
I also did a little more 'bash-fu' to get the size field in the .tic files that are missing.
for file in /home/dan/mystic/echomail/in/*.tic; do
[ -e "$file" ] || continue
filesize=0
filesize=`cat $file | grep "^Size " | sed 's/.*Size //'`
filename=`cat $file | grep "^File " | sed 's/^File //' | sed 's/\r$//'`
if [ "$filesize" = '' ]
then
filesize=`wc -c "$filename" | awk '{print $1}'`
echo "Size $filesize" >> $file
fi
filesize=0
done
---
Black Panther(RCS)
aka Dan Richter
Castle Rock BBS
telnet://bbs.castlerockbbs.com
http://www.castlerockbbs.com
http://github.com/DRPanther
The sparrows are flying again...
--- Mystic BBS v1.12 A47 2020/10/31 (Linux/64)
* Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)