Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
-
porcupine
- Normal user

- Posts: 40
- Joined: 2007-03-12 09:02
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
-
jimimaseye
- Moderator

- Posts: 8864
- Joined: 2011-09-08 17:48
Post
by jimimaseye » 2017-07-13 10:54
Worth doing a little test maybe?
5.7 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

- Posts: 40
- Joined: 2007-03-12 09:02
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.
-
jimimaseye
- Moderator

- Posts: 8864
- Joined: 2011-09-08 17:48
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).
5.7 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

- Posts: 40
- Joined: 2007-03-12 09:02
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.
-
mattg
- Moderator

- Posts: 21202
- Joined: 2007-06-14 05:12
- Location: 'The Outback' Australia
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

- Posts: 40
- Joined: 2007-03-12 09:02
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.
-
mattg
- Moderator

- Posts: 21202
- Joined: 2007-06-14 05:12
- Location: 'The Outback' Australia
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
-
jimimaseye
- Moderator

- Posts: 8864
- Joined: 2011-09-08 17:48
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.
5.7 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