public Fetch ( Crystalbyte.Equinox.Imap.SequenceSet set, string query ) : FetchImapResponse | ||
set | Crystalbyte.Equinox.Imap.SequenceSet | The list of ids of the messages to fetch. |
query | string | The query, consisting of message parts to fetch. |
return | FetchImapResponse |
public FetchImapResponse Fetch(SequenceSet set, string query)
{
var text = string.Format("FETCH {0} {1}", set, query);
var command = new ImapCommand(text);
var reader = SendAndReceive(command);
var response = new FetchImapResponse();
response.Parse(reader);
return response;
}