On Aug 15, 2014, at 12:33 PM, Alan M. Carroll <a...@network-geographics.com> 
wrote:

> 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. 
> 

But if the goal is to always iterate over all headers, I’m guessing (but not 
sure?) that it could be done more efficiently with an API that assumes so ? But 
alas, I don’t know what the use case here is, I’ve yet to see one where 
iterating over all headers is required (you usually want 
TSMimeHdrFieldNextDup()).

Ciao,

— Leif

Reply via email to