AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Computer Support/Help/Discussion...  <--  <--- Return to Home Page
   Networked Database  Computer Support/Help/Discussion...   [1413 / 2005] RSS
 From   To   Subject   Date/Time 
Message   Tanausu M.    digimaus   file request   January 5, 2026
 9:39 PM *  

Hello digimaus!

04 Jan 26 22:16, you wrote to me:

 TM>> Hi. No, I didn't explain myself well; I meant outside of
 TM>> synchronet. At home I use binkd + crashmail and golded.

 di> 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)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Computer Support/Help/Discussion...  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0162 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2026 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.250224