Email Received Header Fields

Question:

In the .Net version, when processing a MIME message with multiple Received: headers, how is this represented by properties?

I know that in CDO, only the 1st Received: header field is returned and there is no way other than manually parsing the message text to retrieve others.

Answer:

Using Chilkat Email .NET, the Chilkat.Email.NumHeaderFields method (this is a method, not a property) returns the number of header fields for an email. You can then iterate from 0 to N-1 calling GetHeaderFieldName(index) and GetHeaderFieldValue(index) for each. Your program would do a case-insensitive string compare of each header field name with "received" to locate each "Received" header field.