Hi kiquenet,
try removing the surrounding braces.
For your question about labels, you need to use the X-GM-RAW extension, then you can use the extended search syntax for GMail.
Pavel
try removing the surrounding braces.
For your question about labels, you need to use the X-GM-RAW extension, then you can use the extended search syntax for GMail.
var messages = client.Folders.All.Search("X-GM-RAW \"(from:MAILER-DAEMON@yahoo.com) OR (from:postmaster@hotmail.com) (label:mylabel)\"");
Greets,Pavel