HeaderValue Case Sensitive?

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
porcupine
Normal user
Normal user
Posts: 40
Joined: 2007-03-12 09:02

HeaderValue Case Sensitive?

Post by porcupine » 2017-07-13 10:07

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

User avatar
jimimaseye
Moderator
Moderator
Posts: 8175
Joined: 2011-09-08 17:48

Re: HeaderValue Case Sensitive?

Post by jimimaseye » 2017-07-13 10:54

Worth doing a little test maybe?
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

porcupine
Normal user
Normal user
Posts: 40
Joined: 2007-03-12 09:02

Re: HeaderValue Case Sensitive?

Post by porcupine » 2017-07-13 11:11

thanks, I know how it appears (case insensitive). I would like it confirmed, as its not documented.

User avatar
jimimaseye
Moderator
Moderator
Posts: 8175
Joined: 2011-09-08 17:48

Re: HeaderValue Case Sensitive?

Post by jimimaseye » 2017-07-13 11:17

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).
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

porcupine
Normal user
Normal user
Posts: 40
Joined: 2007-03-12 09:02

Re: HeaderValue Case Sensitive?

Post by porcupine » 2017-07-13 11:22

thanks, I have tested it, which is how I know it appears to be case insensitive. I can wait.

User avatar
mattg
Moderator
Moderator
Posts: 20305
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HeaderValue Case Sensitive?

Post by mattg » 2017-07-14 00:45

Please suggest amendments to the documentation if that is the goal...?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

porcupine
Normal user
Normal user
Posts: 40
Joined: 2007-03-12 09:02

Re: HeaderValue Case Sensitive?

Post by porcupine » 2017-07-14 06:18

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.

User avatar
mattg
Moderator
Moderator
Posts: 20305
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HeaderValue Case Sensitive?

Post by mattg » 2017-07-15 02:20

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
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

porcupine
Normal user
Normal user
Posts: 40
Joined: 2007-03-12 09:02

Re: HeaderValue Case Sensitive?

Post by porcupine » 2017-07-15 04:28

thanks, looks good :)

User avatar
jimimaseye
Moderator
Moderator
Posts: 8175
Joined: 2011-09-08 17:48

Re: HeaderValue Case Sensitive?

Post by jimimaseye » 2017-07-15 10:38

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.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

Post Reply