• Executing mail upon arrival

    From Allen Prunty@1:2320/100 to All on Mon Oct 31 21:34:48 2016

    Hello everybody!

    I had it working once, alas I have broke it. How do I get binkd to run
    a batch after mail reception. I have this in my config.

    exec !@"c:\\binkd\\toss.bat" c:\\in\\*.pkt
    exec !@"c:\\binkd\\toss.bat"
    C:\\in\\????????.[mwtfs][oehrau][0-9a-zA-Z]
    exec !@"c:\\binkd\\toss.bat"
    c:\\in\\unsecure\\????????.[mwtfs][oehrau][0-9a-zA-Z]



    Allen


    ... "Bozego Narodzenie." - Polish Christmas

    --- WILDMAIL!/WC v4.20a
    * Origin: LiveWire BBS -=* LiveWireBBS.com *=- International (1:2320/100.0)
  • From Tommi Koivula@2:221/360.8110 to Allen Prunty on Tue Nov 1 09:24:02 2016
    Hello Allen!

    31 Oct 16 21:34, you wrote to all:

    I had it working once, alas I have broke it. How do I get binkd to
    run a batch after mail reception. I have this in my config.

    exec !@"c:\\binkd\\toss.bat" c:\\in\\*.pkt

    exec "c:\\binkd\\toss.bat" *

    or

    exec "cmd.exe /c c:\\binkd\\toss.bat" *

    'Tommi

    ---
    * Origin: news://rbb.bbs.fi & news://fidonews.mine.nu (2:221/360.8110)
  • From Richard Menedetter@2:310/31 to Allen Prunty on Tue Nov 1 12:11:12 2016
    Hi Allen!

    31 Oct 2016 21:34, from Allen Prunty -> All:

    exec !@"c:\\binkd\\toss.bat" c:\\in\\*.pkt
    exec !@"c:\\binkd\\toss.bat"
    C:\\in\\????????.[mwtfs][oehrau][0-9a-zA-Z]
    exec !@"c:\\binkd\\toss.bat"
    c:\\in\\unsecure\\????????.[mwtfs][oehrau][0-9a-zA-Z]

    No need to add the inbound dir.
    Binkd does that for you.

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: I wonder how humanity managed to survive? (2:310/31)
  • From Tommi Koivula@2:221/360.8110 to Richard Menedetter on Tue Nov 1 15:01:10 2016
    Hello Richard!

    exec !@"c:\\binkd\\toss.bat" c:\\in\\*.pkt
    exec !@"c:\\binkd\\toss.bat"
    C:\\in\\????????.[mwtfs][oehrau][0-9a-zA-Z]
    exec !@"c:\\binkd\\toss.bat"
    c:\\in\\unsecure\\????????.[mwtfs][oehrau][0-9a-zA-Z]

    No need to add the inbound dir.

    No need, but you can run different tossers for different inbounds.

    For example:

    exec "c:\\binkd\\toss1.bat" c:\\in1\\*
    exec "c:\\binkd\\toss2.bat" c:\\in2\\*

    'Tommi

    ---
    * Origin: news://rbb.bbs.fi & news://fidonews.mine.nu (2:221/360.8110)
  • From Mike Miller@1:154/30 to Allen Prunty on Tue Nov 1 08:22:03 2016

    Hello Allen!

    31 Oct 16 21:34, you wrote to all:


    Hello everybody!

    I had it working once, alas I have broke it. How do I get binkd to
    run a batch after mail reception. I have this in my config.

    exec !@"c:\\binkd\\toss.bat" c:\\in\\*.pkt
    exec !@"c:\\binkd\\toss.bat"
    C:\\in\\????????.[mwtfs][oehrau][0-9a-zA-Z]
    exec !@"c:\\binkd\\toss.bat"
    c:\\in\\unsecure\\????????.[mwtfs][oehrau][0-9a-zA-Z]


    Mine is set up like this for Linux:

    exec "/sbbs/exec/sbbsecho /sbbs/ctrl/sbbsecho.ini" *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa? *.pkt *.PKT
    exec "/sbbs/exec/ticin.sh" *.tic *.TIC


    I don't think you need the full path/filename with complicated regex unless you're expecting other files to get dumped in there. Also, I don't think you need "!@"


    From the manual:

    *****
    Exec

    Purpose: run an external program when a file satisfying the wildcards is received. The "*S" macro in commandline is substituted with Standard Request Information File, see !srif.txt for more details. This allows you to run an external file request processor (besides zillions of other possibilities).

    Syntax:

    exec <commandline> <filemask>
    Examples:

    exec "my-freq-processor.exe /options *S" *.req
    exec "my-pkt-unpacker.exe /options *S" *.pkt

    *****

    So, it looks like you could re-write what you have to:

    exec "c:\\binkd\\toss.bat" *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa? *.pkt


    Mike


    ... Of course I have backup tapes! Do you want last years?
    --- GoldED+/LNX 1.1.5-b20160322
    * Origin: War Ensemble - warensemble.com - Appleton, WI (1:154/30)
  • From Allen Prunty@1:2320/100 to Mike Miller on Tue Nov 1 21:04:35 2016

    Hello Mike!

    01 Nov 16 08:21, you wrote to me:

    I had it working once, alas I have broke it. How do I get
    binkd to run a batch after mail reception. I have this in my
    config.

    exec !@"c:\\binkd\\toss.bat" c:\\in\\*.pkt

    Mine is set up like this for Linux:

    exec "/sbbs/exec/sbbsecho /sbbs/ctrl/sbbsecho.ini" *.su? *.mo?
    *.tu? *.we? *.th? *.fr? *.sa? *.pkt *.PKT exec
    "/sbbs/exec/ticin.sh" *.tic *.TIC

    I don't think you need the full path/filename with complicated
    regex unless you're expecting other files to get dumped in
    there. Also, I don't think you need "!@"

    Windows has a few more requirements from what I am reading th !@
    tells it to ! Execute immediately and @ open a window and hide it to
    do it.

    Allen

    --- WILDMAIL!/WC v4.20a
    * Origin: LiveWire BBS -=* LiveWireBBS.com *=- International (1:2320/100.0)
  • From Tommi Koivula@2:221/360 to Allen Prunty on Wed Nov 2 06:14:37 2016
    Hello, Allen Prunty : Mike Miller.
    On 01/11/2016 21:04 you wrote:

    Hello Mike!
    01 Nov 16 08:21, you wrote to me:
    I had it working once, alas I have broke it. How do I get
    binkd to run a batch after mail reception. I have this in my
    config.
    exec !@"c:\\binkd\\toss.bat" c:\\in\\*.pkt
    Mine is set up like this for Linux:
    exec "/sbbs/exec/sbbsecho /sbbs/ctrl/sbbsecho.ini" *.su? *.mo?
    *.tu? *.we? *.th? *.fr? *.sa? *.pkt *.PKT exec
    "/sbbs/exec/ticin.sh" *.tic *.TIC
    I don't think you need the full path/filename with complicated
    regex unless you're expecting other files to get dumped in
    there. Also, I don't think you need "!@"
    Windows has a few more requirements from what I am reading th !@
    tells it to ! Execute immediately and @ open a window and hide it to
    do it.

    If you receive 100 .pkt's you want to run tosser 100 times. Why?

    --

    --- HotdogEd/2.12 (Android; Google Android; rv:1) Hotdoged/1474702396000 Hotdog
    * Origin: *** nntp://rbb.bbs.fi *** Lake Ylo *** Finland *** (2:221/360)
  • From Nicholas Boel@1:154/10 to Allen Prunty on Wed Nov 2 07:17:48 2016
    Hello Allen,

    On 01 Nov 16 21:04, Allen Prunty wrote to Mike Miller:

    I had it working once, alas I have broke it. How do I get
    binkd to run a batch after mail reception. I have this in my
    config.

    exec !@"c:\\binkd\\toss.bat" c:\\in\\*.pkt

    Mine is set up like this for Linux:

    exec "/sbbs/exec/sbbsecho /sbbs/ctrl/sbbsecho.ini" *.su? *.mo?
    *.tu? *.we? *.th? *.fr? *.sa? *.pkt *.PKT exec
    "/sbbs/exec/ticin.sh" *.tic *.TIC

    I don't think you need the full path/filename with complicated
    regex unless you're expecting other files to get dumped in
    there. Also, I don't think you need "!@"

    Windows has a few more requirements from what I am reading th !@
    tells it to ! Execute immediately and @ open a window and hide it to
    do it.

    They are not "requirements", but only options. "!" will run that exec line after /every/ .pkt that arrives. You don't want that. You want that exec line to run after all packets/files are recieved from the current connection. Removing the "!" will do that. "@" I have honestly never seen used, and you probably don't want a new window to be opened every time this happens, as it should run in the background. So you can safely omit both of those and you should see a faster/smoother process.

    Regards,
    Nick

    ... "Не знаю. Я здесь только работаю."
    --- GoldED+/LNX 1.1.5-b20160827
    * Origin: thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin) (1:154/10)
  • From mark lewis@1:3634/12.73 to Allen Prunty on Wed Nov 2 09:43:32 2016

    01 Nov 16 21:04, you wrote to Mike Miller:


    Mine is set up like this for Linux:

    exec "/sbbs/exec/sbbsecho /sbbs/ctrl/sbbsecho.ini" *.su? *.mo? *.tu?
    *.we? *.th? *.fr? *.sa? *.pkt *.PKT exec "/sbbs/exec/ticin.sh" *.tic
    *.TIC

    I don't think you need the full path/filename with complicated regex
    unless you're expecting other files to get dumped in there. Also, I
    don't think you need "!@"

    Windows has a few more requirements

    no it doesn't... i run binkd the exact same way on my OS/2, linux and winwhatever boxen...

    from what I am reading th !@ tells it to ! Execute immediately and @
    open a window and hide it to do it.

    you don't need to execute your toss script immediately after each file is received... think about this for a second... if you receive four PKTs, and you use the ! you're telling binkd to fire your toss script four times... why? you really don't need to do that... just have binkd fire the toss once after that one mail session is complete and let it toss all four PKTs at once... the thing
    about @ is personal preference but i've never used it... i want to see the evidence of the tossing being done... that's how i know that things are still working properly...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Comedy is just a funny way of being serious.
    ---
    * Origin: (1:3634/12.73)
  • From Jeff Smith@1:282/1031 to Allen Prunty on Wed Nov 2 15:32:00 2016
    Hello Allen,

    01 Nov 16 08:21, you wrote to me:
    I had it working once, alas I have broke it. How do I get
    binkd to run a batch after mail reception. I have this in my
    config.
    exec !@"c:\\binkd\\toss.bat" c:\\in\\*.pkt

    Mine is set up like this for Linux:
    exec "/sbbs/exec/sbbsecho /sbbs/ctrl/sbbsecho.ini" *.su? *.mo?
    *.tu? *.we? *.th? *.fr? *.sa? *.pkt *.PKT exec
    "/sbbs/exec/ticin.sh" *.tic *.TIC
    I don't think you need the full path/filename with complicated
    regex unless you're expecting other files to get dumped in
    there. Also, I don't think you need "!@"

    When I was/had BinkD running under Linux I used the following commandline to toss incoming:
    exec "/home/bbbs/mailin.sh" *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa? *.tic *.pkt

    Windows has a few more requirements from what I am reading th !@
    tells it to ! Execute immediately and @ open a window and hide it to
    do it.

    Why would you want to execute your mail/file processor after the reception of each file? I sometimes receive 20-30 files (.pkt/.tic) per mail session. The mail/file processor is called once per transfer session.


    Jeff

    --- BBBS/Li6 v4.10 Dada-2
    * Origin: The OuijaBoard - Anoka, MN (1:282/1031)
  • From Bill McGarrity@1:266/404 to mark lewis on Thu Nov 3 13:46:00 2016
    mark lewis wrote to Allen Prunty <=-

    01 Nov 16 21:04, you wrote to Mike Miller:


    Mine is set up like this for Linux:

    exec "/sbbs/exec/sbbsecho /sbbs/ctrl/sbbsecho.ini" *.su? *.mo? *.tu?
    *.we? *.th? *.fr? *.sa? *.pkt *.PKT exec "/sbbs/exec/ticin.sh" *.tic
    *.TIC

    I don't think you need the full path/filename with complicated regex
    unless you're expecting other files to get dumped in there. Also, I
    don't think you need "!@"

    Windows has a few more requirements

    no it doesn't... i run binkd the exact same way on my OS/2, linux and winwhatever boxen...

    from what I am reading th !@ tells it to ! Execute immediately and @
    open a window and hide it to do it.

    you don't need to execute your toss script immediately after each file
    is received... think about this for a second... if you receive four
    PKTs, and you use the ! you're telling binkd to fire your toss script
    four times... why? you really don't need to do that... just have binkd fire the toss once after that one mail session is complete and let it
    toss all four PKTs at once... the thing about @ is personal preference
    but i've never used it... i want to see the evidence of the tossing
    being done... that's how i know that things are still working
    properly...

    Easy solution... just create a semaphore.... poof!


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net:81
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    === MultiMail/Win32 v0.50
    --- SBBSecho 3.00-Win32
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From mark lewis@1:3634/12.73 to Bill McGarrity on Thu Nov 3 19:34:16 2016

    03 Nov 16 13:46, you wrote to me:

    from what I am reading th !@ tells it to ! Execute immediately and @
    open a window and hide it to do it.

    you don't need to execute your toss script immediately after each
    file is received... think about this for a second... if you receive
    four PKTs, and you use the ! you're telling binkd to fire your toss
    script four times... why? you really don't need to do that... just
    have binkd fire the toss once after that one mail session is complete
    and let it toss all four PKTs at once... the thing about @ is
    personal preference but i've never used it... i want to see the
    evidence of the tossing being done... that's how i know that things
    are still working properly...

    Easy solution... just create a semaphore.... poof!

    that's actually what i do on my main system with the script executed only at specific times plus the script has a check in it so that it doesn't execute more than once... yes, it does this by creating a ""running"" semaphore ;)

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Don't ever take a fence down until you know the reason it was put up.
    ---
    * Origin: (1:3634/12.73)
  • From Nicholas Boel@1:154/10 to mark lewis on Fri Nov 4 08:13:05 2016
    Hello mark,

    On 03 Nov 16 19:34, mark lewis wrote to Bill McGarrity:

    ""running"" semaphore ;)

    You'd better catch it before it gets away!

    ZING! .. lolnotsofunny. :)

    Regards,
    Nick

    ... "Не знаю. Я здесь только работаю."
    --- GoldED+/LNX 1.1.5-b20160827
    * Origin: thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin) (1:154/10)
  • From mark lewis@1:3634/12.73 to Nicholas Boel on Fri Nov 4 11:46:06 2016

    04 Nov 16 08:13, you wrote to me:

    ""running"" semaphore ;)

    You'd better catch it before it gets away!

    ZING! .. lolnotsofunny. :)

    hahaha... that's even funnier, though :)

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... It's tourist season? Then we can shoot them, right?
    ---
    * Origin: (1:3634/12.73)