I am trying to create a similar view, for example, in GMail. I know that GMail IMAPs have an X-GM-THRID extension that I can use in the FETCH command, but that will return the same number of elements to me, and I have to group them manually by thread ID. Is there any faster way to group this? I mean, maybe the google imap server returns me a list of messages grouped by thread id (for example, in the gmail web interface)? To be more specific:
If I have this list (THREAD ID | TEXT)
- 12345 hello
- 12345 hello
- 12345 "What?"
- 67890 "are you there?"
- 67890 "no, I'm not"
I want to get only from the server:
- 12345 hello
- 67890 "are you there?"
Can I do it? Finally, I would have to group this myself, but this solution is inefficient and slow (I have a lot of messages to group)
Regards and sorry for my English.
Dibo source share