Re: Network messsage information missing
By: echicken to Nightfox on Wed Oct 21 2015 13:36:27
>> I had a look at the headers in JavaScript. For instance, if I have a
>> message header object called msgHdr, I did this: for (var property in
>> msgHdr) console.print(property + ": " + msgHdr[property] + "\r\n");
ec> You might try 'console.print(JSON.stringify(msgHdr));' to get a bit more
ec> depth. The header has a 'field_list' property which (the docs suggest
ec> anyway) is an array of objects each with '.type' and '.data' properties.
ec> Iterating over top-level properties would miss this (or just show [Object
ec> object] or somesuch as the value for this property.)
ec> Of course, I don't know what you'll find in that array, but it might be a
ec> place where any unaccounted-for header fields get stuffed into.
Thanks for the tip.
I had discovered field_list, and I had updated my script to iterate through it
when it encountered field_list. JSON.stringify works too.
Nightfox
---
■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
|