• Script to process fidomail

    From Sean Rima@2:263/1 to All on Wed Aug 24 19:19:10 2022
    Has anyone got a script that they are using to process fidonet mail as it is received. I am struggling with a second net, who processes file echos from Fidonet. so my BBBS just ignores the second file.

    I was running bbbs bogus W/B and bbbs btick from a bash script. I feel doing it every minute is a waste of resources

    Sean

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: TCOB1 - binkd.thecivv.ie (2:263/1)
  • From Alan Ianson@1:153/757 to Sean Rima on Wed Aug 24 14:58:56 2022
    Has anyone got a script that they are using to process fidonet mail as it is received. I am struggling with a second net, who processes file echos from Fidonet. so my BBBS just ignores the second file.

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

    I was running bbbs bogus W/B and bbbs btick from a bash script. I feel doing i every minute is a waste of resources

    I run my mailin.sh script every three minites and it seems to work well for me as long as there are no dupelicate filenames.

    There was another way with modem calls to have BBBS exit and do mail and files but I don't think there is a way from ./bbbsd, at least not that I know of.

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From Janis Kracht@1:261/38 to Sean Rima on Thu Aug 25 17:28:20 2022
    Hi Sean,

    Has anyone got a script that they are using to process fidonet mail as it is received. I am struggling with a second net, who processes file echos from Fidonet. so my BBBS just ignores the second file.

    I was running bbbs bogus W/B and bbbs btick from a bash script. I feel doing i
    every minute is a waste of resources

    I still use the cronfile I set up years ago.. it works well for me:

    */10 * * * * /home/bbbs/mailin.sh
    */16 * * * * /home/bbbs/mailout.sh

    mailin.sh:
    #!/bin/sh
    cd /home/bbbs
    ./bbbs bogus w > /dev/null 2>&1
    ./bbbs btick > /dev/null 2>&1
    exit


    mailout.sh:
    #!/bin/sh
    cd /home/bbbs
    ./bbbs bogus r > /dev/null 2>&1
    exit

    so I run mailin.sh every 10 min. and mailout.sh every 16 min.

    Works for me :)

    Take care,
    Janis

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: Prism bbs (1:261/38)
  • From Sean Rima@2:263/1 to Alan Ianson on Fri Aug 26 17:38:02 2022
    Alan Ianson wrote to Sean Rima <=-

    Has anyone got a script that they are using to process fidonet mail as
    it is
    received. I am struggling with a second net, who processes file echos
    from
    Fidonet. so my BBBS just ignores the second file.

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


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

    I was running bbbs bogus W/B and bbbs btick from a bash script. I feel
    doing
    i every minute is a waste of resources

    I run my mailin.sh script every three minites and it seems to work well for me as long as there are no dupelicate filenames.

    There was another way with modem calls to have BBBS exit and do mail and files but I don't think there is a way from ./bbbsd, at least not that I know of.


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

    Sean


    ... TCOB1 - binkd.thecivv.ie

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: TCOB1 - binkd.thecivv.ie (2:263/1)
  • From Sean Rima@2:263/1 to Janis Kracht on Fri Aug 26 17:38:02 2022
    Janis Kracht wrote to Sean Rima <=-
    Has anyone got a script that they are using to process fidonet mail as
    it is
    received. I am struggling with a second net, who processes file echos
    from
    Fidonet. so my BBBS just ignores the second file.

    I was running bbbs bogus W/B and bbbs btick from a bash script. I feel
    doing i
    every minute is a waste of resources

    I still use the cronfile I set up years ago.. it works well for me:

    */10 * * * * /home/bbbs/mailin.sh
    */16 * * * * /home/bbbs/mailout.sh

    mailin.sh:
    #!/bin/sh
    cd /home/bbbs
    ./bbbs bogus w > /dev/null 2>&1
    ./bbbs btick > /dev/null 2>&1
    exit


    mailout.sh:
    #!/bin/sh
    cd /home/bbbs
    ./bbbs bogus r > /dev/null 2>&1
    exit

    so I run mailin.sh every 10 min. and mailout.sh every 16 min.

    Works for me :)



    I will try that

    Sean


    ... TCOB1 - binkd.thecivv.ie

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: TCOB1 - binkd.thecivv.ie (2:263/1)
  • From Alan Ianson@1:153/757 to Sean Rima on Fri Aug 26 15:49:06 2022
    Sean Rima wrote to Alan Ianson <=-

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

    Yeah that's the issue I am hitting. I have put it onto a every 1 minute process to get around it, so far so good. It just happens that
    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.

    I have been using a basic script. Maybe I will push the boundary of my 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)
  • From Sean Rima@2:263/1 to Alan Ianson on Sat Aug 27 15:53:24 2022
    Alan Ianson wrote to Sean Rima <=-

    Sean Rima wrote to Alan Ianson <=-

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

    Yeah that's the issue I am hitting. I have put it onto a every 1
    minute
    process to get around it, so far so good. It just happens that
    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.

    Thank you sire :) BTW, I am again CM, with a new static ip :)


    I have been using a basic script. Maybe I will push the boundary of
    my
    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.


    That I will adapt to my own, thank you

    Sean

    ... TCOB1 - binkd.thecivv.ie

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: TCOB1 - binkd.thecivv.ie (2:263/1)
  • From Enric Lleal@2:343/107 to Sean Rima on Mon Aug 29 11:52:40 2022
    Hi Sean,

    Has anyone got a script that they are using to process fidonet mail as it is received. I am struggling with a second net, who processes file echos from Fidonet. so my BBBS just ignores the second file.

    As you are over GNU/Linux maybe incron could help.

    https://www.geeksforgeeks.org/incron-command-in-linux-with-examples/


    I was running bbbs bogus W/B and bbbs btick from a bash script. I feel doing i
    every minute is a waste of resources

    Yes, it is. But I'm also processing mi inmail via batch executions.

    Incron can overload your system if you receive a lot of incoming mail and your incron event configuration is not clear enough.


    A reveure!!
    Enric

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: Eye Of The Beholder BBS - The Fidonet's Corsair (2:343/107)
  • From Sean Rima@2:263/1 to Enric Lleal on Tue Aug 30 19:29:10 2022
    Enric Lleal wrote to Sean Rima <=-

    Hi Sean,

    Has anyone got a script that they are using to process fidonet mail as
    it is
    received. I am struggling with a second net, who processes file echos
    from
    Fidonet. so my BBBS just ignores the second file.

    As you are over GNU/Linux maybe incron could help.

    https://www.geeksforgeeks.org/incron-command-in-linux-with-examples/


    I was running bbbs bogus W/B and bbbs btick from a bash script. I feel
    doing i
    every minute is a waste of resources

    Yes, it is. But I'm also processing mi inmail via batch executions.

    Incron can overload your system if you receive a lot of incoming mail
    and your incron event configuration is not clear enough.


    I will have a look into that

    Sean


    ... TCOB1 - binkd.thecivv.ie

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: TCOB1 - binkd.thecivv.ie (2:263/1)
  • From Enric Lleal@2:343/107 to Sean Rima on Wed Aug 31 16:03:52 2022
    Hi Sean,

    I will have a look into that

    Let me know if it works for you. Incron could solve your need. ;-)

    Maybe I will use it in mid term... 0:-) (at work I have a couple of servers using it without issues).


    A reveure!!
    Enric

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: Eye Of The Beholder BBS - The Fidonet's Corsair (2:343/107)
  • From Sean Rima@2:263/1 to Enric Lleal on Wed Aug 31 18:55:32 2022
    Enric Lleal wrote to Sean Rima <=-

    Hi Sean,

    I will have a look into that

    Let me know if it works for you. Incron could solve your need. ;-)

    Maybe I will use it in mid term... 0:-) (at work I have a couple of servers using it without issues).


    I am reading about it now. I like to take time to get to know new softwares

    Sean


    ... TCOB1 - binkd.thecivv.ie

    --- BBBS/Li6 v4.10 Toy-5
    * Origin: TCOB1 - binkd.thecivv.ie (2:263/1)