----------------------------------------------------------------------------------
@MSGID: 1:229/664 7163eaeb
@REPLY: 3:770/100 fe1d3857
@TZUTC: -0400
@TID: hpt/lnx 1.9 2024-03-02
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)
SEEN-BY: 19/10 25 33 42 44 50/109 103/705 104/117
105/81 106/201 987 124/5016
SEEN-BY: 128/187 129/14 130/330 153/757 7715 154/10
30 110 201/0 203/0
SEEN-BY: 218/700 840 221/0 1 6 360 226/30 227/114
229/110 112 134 206 317 426
SEEN-BY: 229/428 470 664 700 705 240/1120 5832
263/1 266/325 512 280/464 5003
SEEN-BY: 280/5006 291/111 292/854 8125 301/1 310/31
320/219 322/757 335/364
SEEN-BY: 341/66 234 342/200 387/18 25 396/45
423/81 120 452/28 166 460/58
SEEN-BY: 463/68 633/280 712/848 770/1 902/26
5000/111 5010/352 5015/46
SEEN-BY: 5020/400 715 828 846 848 1042 4441 12000
5030/49 1081 5053/51
SEEN-BY: 5061/133 5075/35 128 5083/444
@PATH: 229/664 426 396/45 280/464 221/1 6
5020/1042 4441