C#,S22.Imap:对第一个条件不可能对UID进行否定搜索?

时间:2015-10-18 13:11:12

标签: c# .net email imap

我想创建这样的搜索设置:

IEnumerable<uint> uids = Client.Search( // trying to find all NOT backup emails
  SearchCondition.Not(SearchCondition.From("given-sender@gmail.com").And(
  SearchCondition.Subject("BackupMail")))
);

但是如果失败了:

Error   1   An object reference is required for the non-static field, method, or property 'S22.Imap.SearchCondition.Not(S22.Imap.SearchCondition)'

另外,奇怪的是,以下情况很好(以编程方式,但没有任何意义):

IEnumerable<uint> uids = Client.Search( // trying to find all NOT backup emails
  SearchCondition.From("blabla@gmail.com").Not(SearchCondition.From("given-sender@gmail.com").And(
  SearchCondition.Subject("BackupMail")))
);

所以...我就在这里,我可以否定这种方法的第二部分(和之后部分)吗?

0 个答案:

没有答案