public static string GmailSearch( string s )
Public Shared Function GmailSearch ( s As String ) As String
|MailBeeInvalidArgumentException||The specified string is a null reference (Nothing in Visual Basic).|
This method lets you use search conditions in Gmail syntax when you work with Gmail-compatible server. For instance, s can be has:attachment in:unread or SomeWord or "Any text" in:read. MailBee wraps it with a special IMAP search verb (X-GM-RAW) recognized by Gmail so that you can supply it to Search(Boolean, String, String) method to find items with a familiar and flexible Gmail syntax. For instance, it allows for finding attachments while the standard IMAP syntax doesn't.
Non-ASCII text is encoded in UTF-8 with this method. Thus, if you search non-ASCII, you must pass "utf-8" as charset value when calling Search(Boolean, String, String) method.