+1 vote

I'm using gmail search feature using message ID.
It has some advanced search key called rfc822msgid, where you need to give your message id and it will search.

So I can search using this up to 16 results. If I'm giving more than 16 or so rfc822msgid then gmail does not able to search the mails.

If by chance your team know any solution for it. So scenario is we have our own indexed mails using limilabs and our own algorithm to search mails in gmail. So from any query we are getting messageIDs of all the mails that should be displayed on gmail.

Thanks,
Sarathi

by (1.4k points)
I'm not sure I understand your question correctly. Your problem is that Gmail is not returning more that 16 results when you issue "rfc822msgid:" query? How more than 16 emails can have the same message-id -or- are you using OR operator to join 16 or more, different "rfc822msgid:" queries?
I'm using OR operator to join 16 different message ID.

1 Answer

0 votes

I'm afraid that you are hitting some Gmail IMAP server limit for queries. Most likely they limit the number of parameters you can use, so the query is not a performance problem. You should contact Gmail support.

by (301k points)
Yes, I thought so. I just asked just to know if you guys faced similar problem or having any solution.

Anyway I'm deleting the previous comment as it holds some personal info.

Thanks for your quick reply
...