ActiveUp.Net.Mail.Mailbox.Search C# (CSharp) Method

Search() public method

Searches the mailbox for messages corresponding to the query.
public Search ( string query ) : int[]
query string Query to use.
return int[]
		public int[] Search(string query)
		{
			
			string response = this.SourceClient.Command("search "+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;
		}

Same methods

Mailbox::Search ( string charset, string query ) : int[]