Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnArrival event sink - CDO - mark email as spam for outlook

Status
Not open for further replies.

newuserxyz

Programmer
Jun 3, 2004
7
DE
Hallo,

I installed an event sink for the OnArrival event (vbscript). Each incoming mail contents a spam flag in the subject.
The vbscript read the subject field and in case of spam the mail should be marked in a way that outlook recognizes the mail as junk.
Is there a property within the msg object I can use?
How to do that?


Sub ISMTPOnArrival_OnArrival(ByVal Msg, EventStatus )
If Msg.Subject = "spam" Then
..... ???? ....
End If
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top