Subj : Script to process fidomail
To   : Sean Rima
From : Alan Ianson
Date : Fri Aug 26 2022 03:49 pm

-=> Sean Rima wrote to Alan Ianson <=-

AI> Are you having an issue with the APOD area? I sometimes get an issue
AI> like that with the epod area myself. I have been considering renaming
AI> the files hatched in fsxNet with a different filename. If I know others
AI> had issues I would do that for the apod hatches.

SR> Yeah that's the issue I am hitting. I have put it onto a every 1 minute
SR> process to get around it, so far so good. It just happens that
SR> sometimes, that both send me the same file almost at the same time

OK, I have renamed slightly the files going into FSX_IMGE so that shouldn't happen anymore for that area.

SR> I have been using a basic script. Maybe I will push the boundary of my
SR> shell scripting :)

Mine is also very basic. I have been meaning to beef it up for years but I haven't gotten to it yet. ;)

My script has a test for usermail.flg and if found runs a mail scan. Something similar could be done based on gotmail.flg that is created on received mail. I'll include it below.

#!/bin/sh
# This script will toss incoming mail and files

export TZUTC="-0700"
export TZ="PDT+7"

cd /bbbs
./bbbs bogus w >/dev/null 2>&1
./bbbs btick >/dev/null 2>&1
./bbbs bfilsort >/dev/null 2>&1
./bbbs bfileidx >/dev/null 2>&1
touch /bbbs/work/rescan.2

# outgoing mail

if [ -f /bbbs/work/usermail.flg ]; then
   rm -f /bbbs/work/usermail.flg
   cd /bbbs
   ./bbbs bogus r > /dev/null 2>&1
   touch /bbbs/work/rescan.2
fi


The above is my mailin.sh script.

Ttyl :-),
        Al

... All right, so I like spending money!  But name one other extravagance.

--- BBBS/Li6 v4.10 Toy-6
* Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)