在 Outlook 2010 加载项中,我想在给定电子邮件地址发送的文件夹中查找项目:
MailItem FindEmailFromSender(MAPIFolder folder, string emailAddress)
{
string filter = "[sender] = '" + emailAddress + "'"; // This filter is wrong.
return folder.Items.Find(filter) as MailItem;
}
看起来这应该非常简单,但我就是找不到正确的语法。过滤发件人电子邮件地址的正确过滤器语法是什么?