0 votes
by (260 points)

e SelectFolder(folder);

String CleanFrom = GetCleanEmail(from);

List<ImapSearchParameter> Params = new List<ImapSearchParameter>();

if (!String.IsNullOrEmpty(CleanFrom))
   Params.Add(ImapSearchParameter.From(CleanFrom));

if ((date.HasValue) && (date.Value.Between(MinDate, MaxDate)))
    Params.Add(ImapSearchParameter.Sent(date.Value));

if (!String.IsNullOrEmpty(sourceId))
   Params.Add(ImapSearchParameter.Header(MailFlockXHeader, sourceId));

WaitIdle();

ImapMessageCollection List = Imap.Search(ImapListFields.Envelope, Params.ToArray());

Applies to: Rebex Secure Mail

1 Answer

0 votes
by (58.9k points)

ImapMessageCollection list = imap.Search(ImapListFields.FullHeaders, pars.ToArray());

by (58.9k points)
In case it does not solve the problem, please create a log of communication as described at http://www.rebex.net/kb/logging/default.aspx and then either post it here, or send it to support@rebex.net. Seeing the actual communication between your IMAP server and Rebex IMAP client, should make it possible for us to help you.
...