Yes I guess so. How would a file like a compressed nodelist be handle though? The situation being that you only want the one copy of the fi in the file base and it replaces the last copy and filename in the ba With a TIC import the REPLACES verb can take care of that as part of import/hatch process... but with Mass Upload I'm picking it may not?
In that case you're right it wouldn't replace it. I think the hatch
would still work because any previous file would have already been
hatched and flagged as hatched so only the new file would actually hatch.
My first test was to place a new file in a HUB file directory (I choose FSX_DOOR) that was brand new and not in Mystic. This file echo is set to
export to 65 nodes
Base Name ³ BBS Doors, Games etc.
FTP Name ³ fsx-door
Echo Tag ³ FSX_DOOR
Net Address ³ 21:1/100 (fsxnet)
Export To ³ 65 node(s)
The Mass Upload ran and pulled the file in.
- Feb 09 19:53:08 EXEC MassUpload
+ Feb 09 19:53:08 Process: Mass Upload Files
[snip]
+ Feb 09 19:53:08 BBS Doors, Games etc.
+ Feb 09 19:53:08 Allocating 288
+ Feb 09 19:53:08 Add: DRK200.ZIP To: BBS Doors, Games etc.
+ Feb 09 19:53:08 Free 288
+ Feb 09 19:53:08 ANSI Art - Groups, Individuals etc.
+ Feb 09 19:53:08 Allocating 1,280
+ Feb 09 19:53:08 Free 1,280
[snip]
+ Feb 09 19:53:08 Results: Uploaded 1 file(s) in 0.08s
+ Feb 09 19:53:08 Shutdown Normal (0)
The I ran the mailin.ini that calls the FileToss function. Nothing was exported.
- Feb 09 19:53:41 EXEC ImportEchoMail
- Feb 09 19:53:41 EXEC FileToss
+ Feb 09 19:53:41 Process: Toss FDN/TIC Files
+ Feb 09 19:53:41 Waiting for BUSY nodes
+ Feb 09 19:53:41 Scanning Hatches
+ Feb 09 19:53:41 Results: 0 import, 0 toss, 0 hatch, 0 bad in 0.06s
+ Feb 09 19:53:41 Process: Importing EchoMail
+ Feb 09 19:53:41 Waiting for BUSY nodes
- Feb 09 19:53:42 LINKS:
- Feb 09 19:53:42 Node 14 21:1/112@fsxnet
[snip]
- Feb 09 19:53:42 Node 123 21:1/205@fsxnet
! Feb 09 19:53:42 Import from c:\mystfsx\echomail\in\
! Feb 09 19:53:42 Import from c:\mystfsx\echomail\in\unsec\
+ Feb 09 19:53:42 Results: 0 echo, 0 net, 0 dupes, 0 tossed in 0.16s
+ Feb 09 19:53:42 Shutdown Normal (0)
..and this kinda makes sense to me as there is no TIC to process so nothing
is being hatched that way. And the only way I can see at present to trigger
the hatching of DRK200.ZIP is to login to the HUB, go to the file base, press
E to edit the file, press H to hatch it, chose if it's to replace a file or not, then confirm the hatching. Then re-run mailin.ini..
So it's nothing really friendly to enable what I'm looking for nodelists
with changing extensions or static file names like an info pack to be
uploaded / hatched out from an automation point of view.
So if this file was the infopack FSXNET.ZIP and it had been imported into the base. If I drop another file of the same name in the same directory over the top of the current file I'm picking Mystic should see the file as new (size will have changed) and the Mass Upload will act on it?? Let's find out. But I am going to stick with the DRK200.ZIP file in this test but will add a
note.txt to the zip to alter it's file size first.
[time passes]
Nope... changed the file by adding a 1kb text file then zipped it up with the same file name as the original, dropped it into the FSX_DOOR directory in the HUB, then ran Mass Upload and nothing new was found to pull in.
+ Feb 09 20:09:03 BBS Doors, Games etc.
+ Feb 09 20:09:03 Allocating 296
+ Feb 09 20:09:03 Free 296
+ Feb 09 20:09:03 ANSI Art - Groups, Individuals etc.
+ Feb 09 20:09:03 Allocating 1,280
[snip]
+ Feb 09 20:09:03 Results: Uploaded 0 file(s) in 0.02s
So next I figured let's ask Mystic to run a file base pack process. A couple
of things happened here. One expected the other not.
It did pick up the expected change in file size DRK200.ZIP compared to the
one I first pulled in using Mass Upload. But it also seemed to want to delete the two single files I have (one in each base) for the nodelist and infopack.
- Feb 09 20:18:35 EXEC PackFileBases
- Feb 09 20:18:35 SKIP FileSort
- Feb 09 20:18:35 SKIP PurgeUserBase
- Feb 09 20:18:35 SKIP PackUserBase
- Feb 09 20:18:35 SKIP Export_FILEBONE.NA
- Feb 09 20:18:35 SKIP AutoHatch
+ Feb 09 20:18:35 Process: Pack File Bases
+ Feb 09 20:18:35 fsxNet Uploads
+ Feb 09 20:18:35 fsxNet Nodelist
+ Feb 09 20:18:35 Removing entry FSXNET.Z45
+ Feb 09 20:18:35 fsxNet Infopack
+ Feb 09 20:18:35 Removing entry fsxinfo.zip
+ Feb 09 20:18:35 Mystic BBS Software
+ Feb 09 20:18:35 Mystic BBS Utils, Mods etc.
+ Feb 09 20:18:35 BBS Utils, Tools, Networking etc.
+ Feb 09 20:18:35 BBS Software (Current + Legacy)
+ Feb 09 20:18:35 BBS Doors, Games etc.
+ Feb 09 20:18:35 Adjust size 497,572 DRK200.ZIP
+ Feb 09 20:18:35 ANSI Art - Groups, Individuals etc.
+ Feb 09 20:18:35 Text Files (Various)
+ Feb 09 20:18:35 Image Files (Various)
+ Feb 09 20:18:35 Results: Removed 2 records, 1604 bytes in 0.30s
Don't know why the deletions. In any regard they didn't delete as the .ini I ran was set to
[PackFileBases]
check_files = true
remove_missing = false
Now I need to know if I run this again if it will try to do the same thing?
Humm.. well no attempted deletions but another attempt to update the file
size of the test file.. and yet I had not changed / touched it since last
time I ran the file packing function.
+ Feb 09 20:27:06 Process: Pack File Bases
+ Feb 09 20:27:06 fsxNet Uploads
+ Feb 09 20:27:06 fsxNet Nodelist
+ Feb 09 20:27:06 fsxNet Infopack
+ Feb 09 20:27:06 Mystic BBS Software
+ Feb 09 20:27:06 Mystic BBS Utils, Mods etc.
+ Feb 09 20:27:06 BBS Utils, Tools, Networking etc.
+ Feb 09 20:27:06 BBS Software (Current + Legacy)
+ Feb 09 20:27:06 BBS Doors, Games etc.
+ Feb 09 20:27:06 Adjust size 497,572 DRK200.ZIP
+ Feb 09 20:27:06 ANSI Art - Groups, Individuals etc.
+ Feb 09 20:27:06 Text Files (Various)
+ Feb 09 20:27:06 Image Files (Various)
+ Feb 09 20:27:06 Results: Removed 0 records, 0 bytes in 0.09s
+ Feb 09 20:27:06 Shutdown Normal (0)
I'm going to stop now :) Kinda went down a rabbit hole. But suffice to say
that just using Mass Upload then running FileToss on it's own is not going to be enough for what I'm hoping to do within Mystic.
Hope this info helps.
--- Mystic BBS v1.12 A44 2020/02/04 (Windows/32)
* Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)