• Post textfiles with changing subjects

    From goto_KCM@21:1/218 to All on Mon Sep 13 19:22:12 2021
    Hi!

    I would like to automatically post text files in a message base.
    I already saw the videos about the mutil function.

    My question is, would it be possible to make the subject change?
    Or does someone have a script that checks a directory for text files and post that into Mystic BBS? Subject is the name of the text file or something like that?

    Background is that i would like to post some news on the BBS without logging in. Just put the textfile on a http server, the RasPi grabs it and then put
    it into the Mystic BBS.

    So if there are some ideas, it would be great to hear them.

    Regards
    Andreas

    -=Kautzner-Computer-Museum=-
    zahrl.ddns.net:2023
    https://kcm.or.at

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: KCM BBS (21:1/218)
  • From paulie420@21:2/150 to goto_KCM on Mon Sep 13 18:59:08 2021
    I would like to automatically post text files in a message base.

    My question is, would it be possible to make the subject change?
    Or does someone have a script that checks a directory for text files and post that into Mystic BBS? Subject is the name of the text file or something like that?

    Background is that i would like to post some news on the BBS without logging in. Just put the textfile on a http server, the RasPi grabs it
    and then put it into the Mystic BBS.

    So if there are some ideas, it would be great to hear them.

    +1, following this thread. I also have heard that we can run mutil to post a message - and I DON'T know the answer to this... but what does the subject come thru as when you do that? If that first subject line is settable, thru the text file OR the ./mutil command line, we COULD create a script that uses some first line of the text document, or another work around, to doso.

    For now tho, I'm just watching this - as you made me think about possibilities, too. I'll dig in and learn about the mutil way and see if anything makes any sense... I'm pretty swamped right now, but good idea here.



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A47 2021/08/29 (Raspberry Pi/32)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From Avon@21:1/101 to goto_KCM on Wed Sep 15 11:17:22 2021
    On 13 Sep 2021 at 07:22p, goto_KCM pondered and said...

    I would like to automatically post text files in a message base.
    I already saw the videos about the mutil function.

    My question is, would it be possible to make the subject change?

    file1_name = myfile.txt
    file1_baseidx = 2
    file1_from = Sysop
    file1_to = All
    file1_subj = My subject
    file1_addr = 0:0/0
    file1_delfile = false

    I think the only way to run the function at present is to update the subj
    line within the stanza.

    I guess you could have the text file name the same each time and create a few .ini versions to run from mutil that have different titles / subjects..

    Then what you could do is set up some Mystic events to look for a semaphore called news.txt or down.txt etc... and depending on what semaphore it sees it then runs a shell line calling the correct ini.

    That way you have one text file name you are always populating to be posted
    but a way of getting mystic to post it using the correct posttextfiles stanza you want to use ;)

    Hope that helps.

    Best, Paul

    --- Mystic BBS v1.12 A46 2020/08/26 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From goto_KCM@21:1/218 to Avon on Thu Sep 16 19:20:53 2021
    Hi all.

    I think about a script das creates the corresponding stanza file on runtime.
    So when when there is new text file in a defined directory, the script takes the name and replace the the file1_name value in the stanza file.

    After that the script can run mutil with the created stanza and the message should appear with the right subject.

    Thanks for your thoughts about the semaphore, that could trigger the script.

    Thanks all!

    Regards
    Andreas

    -=Kautzner-Computer-Museum=-
    zahrl.ddns.net:2023
    https://kcm.or.at

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: KCM BBS (21:1/218)