Subj : MsgBase.put_msg_header() failing to save header To : Nightfox From : Digital Man Date : Wed Aug 10 2016 10:00 pm Re: MsgBase.put_msg_header() failing to save header By: Nightfox to Digital Man on Wed Aug 10 2016 07:17 pm > Re: MsgBase.put_msg_header() failing to save header > By: Digital Man to Nightfox on Wed Aug 10 2016 01:12:10 > > >> Why might put_msg_header() fail? > > DM> For a number of reasons. Try printing the msgbase.status and > DM> msgbase.error values when whever put_msg_header() fails along with the > DM> parameter values you're passing to put_msg_header(), and then share the > DM> results here. That'll help to isolate the cause of the error. > > This is the status and error message I'm getting when it fails to save the > message: > Status: -101 > Error: illegal header length increase: 770 (4 blocks) vs 752 (3 blocks) This means that the modified message header requires more storage (blocks in the *.shd file) than what was allocated for the original message header. The read header used 752 bytes (3 256-byte blocks) and the modified header requires 770 bytes (4 256-byte blocks). Setting the "read" attribute should not increase the storage space for a header at all, so something else is changing between when you read the header and when you're attempting to write it. > I get the same error whether I use the message number or offset. The > parameters I'm passing to msgbase.put_msg_header are false, 2289, and the > header object containing these values: > attr: 0 > to: Eric Oulashin > from: robert wolfe > offset: 730 > when_written_time: 1465744314 > when_written_zone_offset: -300 > when_imported_zone_offset: -480 > auxattr: 0 > netattr: 0 > subject: BBS software for Mac OS X > id: <575D6BE8.2289.fido_bbscarni@digitaldistortionbbs.com> > reply_id: <57559F2C.2255.fido_bbscarni@digitaldistortionbbs.com> > from_net_addr: 1:116/17 > number: 2289 > to_net_type: 0 > to_agent: 0 > from_net_type: 2 > from_agent: 0 > replyto_net_type: 0 > replyto_agent: 0 > ftn_msgid: 1:116/17 48cc417b > ftn_reply: 2255.fido_bbscarni@1:340/7 1bbaddfb > ftn_area: BBS_CARNIVAL > ftn_tid: Mystic BBS 1.12 A16 > date: Sun, 12 Jun 2016 08:11:54 -0500 > when_written_zone: 16684 > when_imported_time: 1465740264 > when_imported_zone: 16864 > thread_id: 2239 > thread_next: 0 > thread_first: 0 > field_list: [object Object],[object Object],[object Object],[object > Object],[object Object],[object Object] The problem might lie in this field_list. Can you expand this array in your debug output so we can see what's being added to the header? Also, the dump of the original header would be useful for comparison purposes. digital man Synchronet "Real Fact" #78: Synchronet Match Maker had at one time over 4000 profiles of men and women. Norco, CA WX: 67.3øF, 77.0% humidity, 4 mph SE wind, 0.00 inches rain/24hrs .