Ah, yes. I had forgotten about that. I think it was @tvi who found that a while back. The problem is microsoft has 2 (or is it 3?) different “types” of queires you can use there, but you cannot mix them, so all clauses needs to be of the same type. And in my code, if you click “UnreadOnly” I use “[Unread]=true”
var unreadonly = UnreadOnly.Get(context);
if (unreadonly)
{
if (string.IsNullOrEmpty(filter)) filter = "";
if (string.IsNullOrEmpty(filter))
{
filter = "[Unread]=true";
}
else
{
filter += " and [Unread]=true";
}
}