0 votes
by (480 points)

I assigned custom flag keywords for a mail. And I need to search based on the keywords assigned

Applies to: Rebex Secure Mail

1 Answer

+1 vote
by (72.7k points)
selected by
 
Best answer

To search based on the keywords use the Search method with the ImapSearchParameter.Keyword parameters.

Please visit Message Keywords sample code on our IMAP features page.

by (480 points)
Yahoo n Outlook doesn't support keywords.

Will iCloud and Rediff support Keywords ?
by (480 points)
How to get Messages based on only  Message ID as parameter
by (72.7k points)
To find a message with specified Message ID, use the Search method like this:
  imap.Search(ImapSearchParameter.Header("Message-ID", "your-ID-here"))

This call returns a collection of all messages with the specified Message ID.
Please note that Message ID is not unique - i.e. more messages on the IMAP server can have same Message ID
by (480 points)
I have given like this

ImapMessageCollection Msgsearch =  imap.Search(ImapSearchParameter.Header("MessageId", "CAGB00=92manEQqA4PK2bVbCrDEQ9oLMUv+g1g7QvmH=Mausqew@mail.gmail.com"));

But getting Count=0 in MsgSearch Message Collection
by (72.7k points)
Please note that the header name is "Message-ID" not the "MessageId". Try to change your code to:

ImapMessageCollection Msgsearch =  imap.Search(ImapSearchParameter.Header("Message-ID", "CAGB00=92manEQqA4PK2bVbCrDEQ9oLMUv+g1g7QvmH=Mausqew@mail.gmail.com"));
by (480 points)
Have any Working  Code to Maintain IMAP  IDLE  for Notification . Please Share
...