So, Gmail IMAP is a bit "weird." They use IMAP folders to represent shortcuts. I usually think that an email in IMAP can belong to only one folder, however with Gmail, an email can belong to many βfoldersβ, which gives us very close functionality for shortcuts.
My question is that I am writing a gmail client (so things like Starring, deleting and archiving work a little more intuitively than the standard imap client), but I would like to be able to display for this letter in which folders (shortcuts ) he is in.
As far as I can tell, this is not easy (I would have to iterate over each message in each folder to see which ones it is in).
Does anyone know which way to do this? Or am I right in assuming there is no easy way?
imap gmail gmail-imap
Redth
source share