TIP: Click on subject to list as thread! ANSI
echo: mystic
to: Edmund Wong
from: Jay Harris
date: 2021-12-07 07:52:00
subject: Re: message base & python

On 07 Dec 2021, Edmund Wong said the following...
 
 EW> Does anyone know if it's possible to use a system-binary python
 EW> to post messages directly into the Mystic message base?  I'm hoping
 EW> to create a script to post messages directly to a local message
 EW> base.

I don't know about python, but you can use mutil to post messages to any base you like.

[ --- begin weather.ini --- ]
[General]
        PostTextFiles = true
        logfile = mutil.log
        logcache = true
        loglevel = 2
        logtype = 1
        maxlogfiles = 3
        maxlogsize = 1000

[PostTextFiles]
        totalfiles = 3

        file1_name    = /tmp/weather.txt
        file1_baseidx = 29
        file1_from    = Northern Realms
        file1_to      = All
        file1_subj    = Southern Ontario Weather
        file1_addr    = 21:3/110
        file1_delfile = false
[...]
[ --- end weather.ini --- ]

In this example I use a script to fetch the weather and put it into a text file (/tmp/weather.txt).  The baseidx is the index number of the message base you want to post to.  Fill out the other details and then just run ./mutil weather.ini and your message is posted.


Jay

... When the cows are sleeping in the field, it's pasture bed!

--- Mystic BBS v1.12 A47 2021/12/06 (Raspberry Pi/32)
                                                                            
* Origin: Northern Realms (1:229/664)

SOURCE: echomail via QWK@pharcyde.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™.