The problem I've been seeing, is some in the inbound tic files will
have a Desc line that extends for 300 - 500 characters. When HTick
creates the files.bbs file, it puts this entire description onto
one line. When Mystic imports it, it is only importing the first 67 characters of the description. (filename with extension of 12
chars, plus the space)
Is there a way to have HTick import the description onto separate
lines of 79/80 char max?
I see there is an option of doing this with outgoing tic files,
using the 'MaxTicLineLength' keyword, but haven't seen anything for incoming files. I just figured I'd ask here, before I write a
script to use fold or something before I import them.
Is there a way to have HTick import the description onto separate lines of 79/80 char max?
I don't think so, but it will use LDesc lines if present. There can be more than 1 LDesc line. They are usually formatted like a file_id.diz.
You can also tell htick to get the description from a file_id.diz if
there is one.
In the case of incoming tic files you are stuck with what you get, a single Desc line or multiple LDesc lines. In most cases it's easiest to get the description from the file_id.diz if there is one. Sometimes even the file_id.diz isn't very well formatted.
I'm thinking a script that will take the Desc line, and create
multiple LDesc lines within the tic file before it gets processed
would be the best way to work around this...
I'm thinking a script that will take the Desc line, and create multiple LDesc lines within the tic file before it gets processed would be the best way to work around this...
Maybe it is possible to ask the sysop who hatches files with a long Desc line to hatch with short Ldesk lines instead of it?
I'm thinking a script that will take the Desc line, andcreate
multiple LDesc lines within the tic file before it getsprocessed
would be the best way to work around this...
Maybe it is possible to ask the sysop who hatches files with a
long Desc line to hatch with short Ldesk lines instead of it?
It might be possible, but this gave me an excuse to work on my bash scripting... ;)
Now to see if it works on the production system. Do you know if the
tic file needs to have the Desc line, or can it just have multiple
LDesc lines?
Here's what I've got for a script:
#!/bin/bash
ticlength=""
cd ~/mystic/echomail/in/
for filename in ~/mystic/echomail/in/*.tic; do
[ -e "$filename" ] || continue
ticlength=`cat "$filename" | grep "^Desc " | wc -c`
if [ $ticlength -gt 45 ]
then
sed -i 's/^Desc/LDesc/g' $filename
fmt -w 45 -p LDesc $filename > test.tic
cp test.tic $filename
rm test.tic
fi
done
If you have no downlinks, then it does not matter. If you have, some downlink ma y want just one short line. Should she/he also develop a script to leave one lin e only? :)
A good script, but there is a space to improve it if you take into
account a pos sibility of having both Desk and LDesk in one tic. A good tic should have both D esk and LDesk so everyone can choose what he
likes.
That is something that I do want to add into the script. I think they should also contain both the desc and ldsec within the tics.
--- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 139:05:01 |
Calls: | 166 |
Files: | 5,389 |
Messages: | 223,229 |