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?
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?