TIP: Click on subject to list as thread! ANSI
echo: bbbs.english
to: ROBERT WOLFE
from: JANIS KRACHT
date: 2015-02-02 11:38:00
subject: Automatic Tossing of Inbo

Hi Robert,

>I was wondering how to get BBBS.EXE or BBBSD.EXE to automatically toss inbound
> mail packets once the system receives them from an uplink or downlink?

It's controlled in the script or batch file you start bbbs with, generally..
you probably wouldn't want to do this with your bbbsd startup batchfile since
if all the nodes are tossing/scanning you'd run into problems.

On my linux system, I did have say my dialout node (node 2) doing this
initially, then later I switched the job to a cron job.  This is how I did it
when I was using node 2 to toss/scan mail:

===cut here Dial-out node 2=== #sign lines are commented out!===
#!/bin/sh # this line only for linux
cd /home/bbbs
BBBSLANG en_US.utf8
while :
do
   cd /home/bbbs
  ./bbbs 2 2 TCPIP
#
  RC=$?
  echo BBBS RC: $RC

#  if [ $RC = 137 ]; then
#    exit
#  fi

#  set this errorlevel in Global: FidoNet: Sessions: Mail errorlevel
#  if [ $RC = 11 ];
#    then nohup /home/bbbs/mailin.sh  &
#  fi
#  Above commented out since I run mailin.sh in a cron job now.
#  set this errorlevel in Global: FidoNet: Sessions: User mail errl.
#  if [ $RC = 12 ];
#  then nohup /home/bbbs/mailout.sh &
#  fi

  if [ $RC = 0 ]; then
    exit
  fi

  reset

done
===end of script====


Mailin.sh is just a simple call to bbbs bogus w:

===mailin.sh ===
#!/bin/sh # this line only for linux
cd /home/bbbs/
./bbbs bogus w &
./bbbs btick &
exit



Not sure how you'd translate some of this with os/2 though :(

Take care,
Janis

--- BBBS/Li6 v4.10 Dada-2
* Origin: Prism bbs (1:261/38)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.