返回或设置项目由远程用户接收时的状态。OlRemoteStatus 常量。该属性为传输能力较小的远程用户提供了较强的邮件灵活性。可读写。
OlRemoteStatus 可为以下 OlRemoteStatus 常量之一。 |
olMarkedForCopy 项目将复制到远程站点。 |
olMarkedForDelete 项目将被删除。 |
olMarkedForDownload 项目将完整地下载。 |
olRemoteStatusNone 项目没有远程状态。 |
olUnMarked 项目未标记远程状态,并且将被忽略。 |
expression.MarkForDownload
expression 必选。该表达式返回“应用于”列表中的一个对象。
以下示例将所有由指定用户发送的电子邮件项目的 MarkForDownload 属性设置为 olMarkedForDownload。这样所有来自该用户的项目将被整个地下载。
Sub RemoteUse(ByVal strSender As String, ByRef objMail As MailItem)
'Marks all items from a certain user to be downloaded
With objMail
'If mail is from the sender, mark it for download
If .SenderName = strSender Then
.MarkForDownload = olMarkedForDownload
End If
End With
End Sub