BBS:      TELESC.NET.BR
Assunto:  Re: jam error message
De:       Jay Harris
Data:     Mon, 30 Mar 2026 12:34:46 -0400
-----------------------------------------------------------
On 29 Mar 2026, Paul Hayton said the following...

 PH> I'm seeing this in my HPT logs related to a JAM base for netmail

 PH> A Mar:29:2026:15:55:16  JAM ERROR: wrongly sized subfield occured!

 PH> any thoughts on how best to resolve the problem?

I've seen others have success in using Claude AI to make them a purpose-built utility, so decided to give it a try.

I pointed Claude at JAMLib on Sourceforge and SMAPI from the Husky Project on GitHub and asked it to make me a utility that can scan & repair damaged JAM message bases.  A little trial & error and it spit something out that seems to work for my limited uses.  I asked it if it's easy to compile for Linux or Windows and it updated the C source code & Makefile to make sure it can do a 32 or 64 bit .exe.

For Linux you just have to run "make" in the same directory and it'll spit out an executable for you.

I tested the Linux version on some test bases (Claude also included two python scripts to generate a damaged JAM base to test).  I mostly just opened up a JAM file with nano and messed it up to see if the utility can fix it, and to my surprise it did/can.

If you have a backup of that damaged base, I'd be interested to see if this works for you.

I've not thoroughly tested this utility (and I am by no means a coder), so I wouldn't run this on anything you don't already have a backup of.  But hopefully someone somewhere finds this useful.


.c source and 32 & 64bit .exe's included:
https://nrbbs.net/jamrepair.zip


Jay

... If it breaks then you get to keep both pieces

--- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
 * Origin: Northern Realms (1:229/664)

-----------------------------------------------------------
[Voltar]