0 votes
by (140 points)

Dear Sir/Madam

I want search first 10 characters of suject in IMAP, How to do this?

thanks

Applies to: Rebex Secure Mail

1 Answer

0 votes
by (70.2k points)

It is not possible, the IMAP protocol does not have such functionality.

This is what RFC 9051 says:

SUBJECT <string>
Messages that contain the specified string in the envelope structure's SUBJECT field.

The suggested way is to fetch all the messages with the given search criteria and then filter out unwanted messages locally (at the client).

...