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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change RemoteItem Properties in Outlook 2002

Status
Not open for further replies.

tamanco

Technical User
Dec 20, 2005
2
BR
Happy holidays everyone,

After checking against some criteria in an incoming mail rule, I tried to mark selected RemoteItems for download with a simple VBScript within Outlook 2002.
Here is the script that I tried to invoke by the Rule:
[blue]
Sub MarkForDowload(RemMsg As MailItem)
If RemMsg.DownloadState = olHeaderOnly Then
RemMsg.MarkForDownload = olMarkedForDownload
End If
End Sub
[/blue]
But what seemed to be a simple task at first, appeared to be more complicated, since:
1) the incoming mail rules seems to check only fully downloaded messages.
2) Attempts to alernatively use the NewMail or ItemAdd Event instead also failed

Any ideas how to detect incoming Outlook.RemoteItems and change them in Outlook 2002?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top