Page 1 of 1

HeaderValue Case Sensitive?

Posted: 2017-07-13 10:07
by porcupine
Can you confirm for the Message object Property:

Code: Select all

string HeaderValue(string FieldName)
FieldName is not case sensitive for reading or writing?

thanks

Re: HeaderValue Case Sensitive?

Posted: 2017-07-13 10:54
by jimimaseye
Worth doing a little test maybe?

Re: HeaderValue Case Sensitive?

Posted: 2017-07-13 11:11
by porcupine
thanks, I know how it appears (case insensitive). I would like it confirmed, as its not documented.

Re: HeaderValue Case Sensitive?

Posted: 2017-07-13 11:17
by jimimaseye
Im afraid that as it isnt documented you will be relying on peoples experience only. And for those that dont know from personal experience (as I am) a test would need to be done to gain the knowledge.

My suggestion was just to help you get your answer a lot quicker than waiting for the off-chance that someone with the knowledge may come on to the forum and answer you at some point in the future. (And any test I would do to gladly answer you is easy enough for you to do yourself).

Re: HeaderValue Case Sensitive?

Posted: 2017-07-13 11:22
by porcupine
thanks, I have tested it, which is how I know it appears to be case insensitive. I can wait.

Re: HeaderValue Case Sensitive?

Posted: 2017-07-14 00:45
by mattg
Please suggest amendments to the documentation if that is the goal...?

Re: HeaderValue Case Sensitive?

Posted: 2017-07-14 06:18
by porcupine
Sure, here are two suggested amendments for the Message object documentation:

Code: Select all

string HeaderValue(string FieldName)

 Value of the first occurrence of the given header field. FieldName is not case sensitive.

Code: Select all

string FromAddress

 The sender address of the message, taken from "mail from" during the SMTP conversation and then inserted as the first occurrence of Return-Path.

Re: HeaderValue Case Sensitive?

Posted: 2017-07-15 02:20
by mattg
How is this??
https://www.hmailserver.com/documentati ... ct_message

@jimimaseye
Did I do all of the changes that you sent a few months back? I can't remember if got to finishing them or not

Re: HeaderValue Case Sensitive?

Posted: 2017-07-15 04:28
by porcupine
thanks, looks good :)

Re: HeaderValue Case Sensitive?

Posted: 2017-07-15 10:38
by jimimaseye
mattg wrote:@jimimaseye
Did I do all of the changes that you sent a few months back? I can't remember if got to finishing them or not
I will take a look and let you know.