简体   繁体   English

将项目限制为 Exchange 发件人

[英]Restrict items to Exchange senders

I need to filter Outlook items by email address.我需要通过 email 地址过滤Outlook项目。

I found the answer here :我在这里找到了答案:

Filter = "@SQL=urn:schemas:httpmail:fromemail Like '%joe@someaddr.com%'"

but it doesn't work if the sender is using Exchange.但如果发件人使用 Exchange,它就不起作用。 Maybe some different schema?也许一些不同的架构? I've searched the docs but can't find the answer.我搜索了文档,但找不到答案。

Edit, to clarify, how that string is used:编辑以澄清该字符串的使用方式:

Dim items As Outlook.Items = folder.Items.Restrict(Filter)

Use a restriction on SenderEmailType being "EX" .SenderEmailType限制为"EX"

The filter would be either [SenderEmailType] = 'EX' or @SQL="http://schemas.microsoft.com/mapi/proptag/0x0C1E001F" = 'EX'过滤器可以是[SenderEmailType] = 'EX'@SQL="http://schemas.microsoft.com/mapi/proptag/0x0C1E001F" = 'EX'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM