public Search ( string charset, string query ) : int[] | ||
charset | string | The charset the query has to be performed for. |
query | string | The search query. |
return | int[] |
public int[] Search(string charset, string query)
{
string response = this.SourceClient.Command("search charset "+charset+" "+query);
string[] parts = response.Substring(0,response.IndexOf("\r\n")).Split(' ');
int[] messageOrdinals = new int[parts.Length-2];
for(int i=2;i<parts.Length;i++) messageOrdinals[i-2] = System.Convert.ToInt32(parts[i]);
return messageOrdinals;
}
Mailbox::Search ( string query ) : int[] |