It is very simple, just use the ImapSearchParameter.Or method like this:
imap.Search(ImapListFields.Envelope | ImapListFields.MessageStructure,
ImapSearchParameter.Or(
ImapSearchParameter.Subject("condition1"),
ImapSearchParameter.Subject("condition2"),
ImapSearchParameter.Subject("condition3")
));
And similarly you can use the ImapSearchParameter.And method to AND conditions. For example like this:
imap.Search(ImapListFields.Envelope | ImapListFields.MessageStructure,
ImapSearchParameter.Or(
ImapSearchParameter.Subject("con1"),
ImapSearchParameter.Subject("con2"),
ImapSearchParameter.And(
ImapSearchParameter.Subject("con3"),
ImapSearchParameter.Subject("con4")
)
));
The above example will result to con1 OR con2 OR (con3 AND con4)
.