Hi All,
My Question is
1. Why Header Return-path not found in index
2. and how I get Headers("Return-Path")
I just looping of index header and the result like this
Received index of : 0
From index of : 1
To index of : 2
References index of : 3
In-Reply-To index of : 4
Subject index of : 5
Date index of : 6
Message-ID index of : 7
MIME-Version index of : 8
Content-Type index of : 9
Content-Transfer-Encoding index of : 10
X-Mailer index of : 11
Thread-Index index of : 12
Content-Language index of : 13
Thank You
Return-Path index of oMessage.Headers(index).Name Not found
Re: Return-Path index of oMessage.Headers(index).Name Not found
But what if there is no 'return-path'??
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation
https://www.hmailserver.com/documentation
Re: Return-Path index of oMessage.Headers(index).Name Not found
Unless the email is spoofed, the general rule is that "Return-Path" = "oMessage.FromAddress" (AKA X-Envelope-From).
The header "Return-Path" is the very last thing added to the email before it is dropped into the INBOX. That is why it is the first line in the .eml file when you open it with a text editor.
"oMessage.FromAddress" is available in:
Sub OnSMTPData(oClient, oMessage)
Sub OnAcceptMessage(oClient, oMessage)
Sub OnDeliveryStart(oMessage)
Sub OnDeliverMessage(oMessage)
Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
and
Sub OnExternalAccountDownload(oFetchAccount, oMessage, sRemoteUID)
The header "Return-Path" is the very last thing added to the email before it is dropped into the INBOX. That is why it is the first line in the .eml file when you open it with a text editor.
"oMessage.FromAddress" is available in:
Sub OnSMTPData(oClient, oMessage)
Sub OnAcceptMessage(oClient, oMessage)
Sub OnDeliveryStart(oMessage)
Sub OnDeliverMessage(oMessage)
Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
and
Sub OnExternalAccountDownload(oFetchAccount, oMessage, sRemoteUID)
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Return-Path index of oMessage.Headers(index).Name Not found
I want to alert the user whether the email is fake or not based on the return-path, not oMessage.FromAddress or oMessage.From
I use criteria of rule failed
I use VBscript failed too
vbscript for generate index header like it
Dim oHeader
For oHeader = 0 to oMessage.Headers.Count-1
oMessage.Body = oMessage.Body & _
vbCrLf & oMessage.Headers(oHeader).Name & " index of : " & oHeader
Next
oMessage.Save()
thx u
I use criteria of rule failed
I use VBscript failed too
vbscript for generate index header like it
Dim oHeader
For oHeader = 0 to oMessage.Headers.Count-1
oMessage.Body = oMessage.Body & _
vbCrLf & oMessage.Headers(oHeader).Name & " index of : " & oHeader
Next
oMessage.Save()
thx u
Re: Return-Path index of oMessage.Headers(index).Name Not found
Good luck!
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.