Leif, > Is the goal here to iterate over all headers? If so, maybe some sort of > iterator functionality would be more appropriate, similar to how we added the > iterator (with a callback) for lib records (i.e. TSRecordDump() )? Can that > help simplifying / improve such operations?
If you added TSMimeHdrFieldHandleNext(), then the handle would serve as an iterator.