Hello digimaus!
04 Jan 26 22:16, you wrote to me:
Hi. No, I didn't explain myself well; I meant outside of
synchronet. At home I use binkd + crashmail and golded.
Ah, okay. I thought it was Synchronet. :)
With Synchronet, in my case, I had to write a script. There's a bug
in FreeBSD that causes it to omit some letters from text strings.
But I managed to fix it manually with JavaScript...
The problem is that with Binkd + Golded and Crashmail, it's
impossible. I guess I'll have to do it the old-fashioned way, with
a shell script.
It works, but... surely there's an easier way to do it.
#!/bin/sh
ADDR="$1"
FILE="$2"
if [ -z "$ADDR" ] || [ -z "$FILE" ]; then
echo "Use: $0 Z:N/NODE FILE"
exit 1
fi
ZONE="${ADDR%%:*}"
REST="${ADDR#*:}"
NET="${REST%%/*}"
NODE="${REST#*/}"
dec2hex2() {
printf "%04x" "$1"
}
dec2hex1() {
printf "%03x" "$1"
}
NETHEX=$(dec2hex2 "$NET")
NODEHEX=$(dec2hex2 "$NODE")
ZONEHEX=$(dec2hex1 "$ZONE")
FNAME="${NETHEX}${NODEHEX}"
OUTBOUND_BASE="/home/lmd/fido/mail/outbound" OUTBOUND_ZONE="/home/lmd/fido/mail/outbound.${ZONEHEX}"
#Final directory
if [ -d "$OUTBOUND_ZONE" ]; then
OUTDIR="$OUTBOUND_ZONE"
else
OUTDIR="$OUTBOUND_BASE"
fi
REQ="${OUTDIR}/${FNAME}.req"
CLO="${OUTDIR}/${FNAME}.clo"
# Minimum check
[ -d "$OUTDIR" ] || {
echo "Error: no existe el directorio $OUTDIR"
exit 1
}
# Create files
echo "$FILE" > "$REQ" || exit 1
echo "$REQ" > "$CLO" || exit 1
echo "FREQ created successfully:"
echo " Address : $ADDR"
echo " File : $FILE"
echo " Directory : $OUTDIR"
echo " REQ : $REQ"
echo " CLO : $CLO"
#/sbbs/exec/jsexec /sbbs/exec/binkit.js
binkd -p -P "$ADDR" /home/lmd/fido/etc/binkd.conf
--- GoldED+/LNX 1.1.5-b20250409
* Origin: Citrick BBS citlmbbs.synchro.net (618:500/19.1)