Quote:
Originally Posted by jjzhuang We don't sync Gmail's All Mail and Starred folders because Gmail IMAP implementation exposes any Gmail label as folders. You can't get away from duplicating emails multiple times if you sync those.
And if there's a way for us to track messages by some kind of ID we would. Unfortunately the IMAP protocol doesn't support such a thing. There is no way to know that a message in Inbox is the same message in another folder unless you do a diff. |
Hi,
I could be mistaken, but I believe the "Message-ID:" header is unique to each message, but not unique to copies of each message in different Gmail IMAP folders. For example, I looked at 2 recent messages in Thunderbird (which will download duplicates the way I have it setup) and compared the Message-ID for the copy in "All Mail", "Starred", and "Inbox".
Message1:
Message-ID: <200902100431.5684aa273331@www.zimbra.com>
Message-ID: <200902100431.5684aa273331@www.zimbra.com>
Message-ID: <200902100431.5684aa273331@www.zimbra.com>
Message2:
Message-ID: <BY2ACNMSB01B8F3kKNA002378b2@by2acnmsb01.alerts.li ve.com>
Message-ID: <BY2ACNMSB01B8F3kKNA002378b2@by2acnmsb01.alerts.li ve.com>
Message-ID: <BY2ACNMSB01B8F3kKNA002378b2@by2acnmsb01.alerts.li ve.com>
So if this is indeed, true, duplicate messages can be detected by this header. If you strictly use IMAP (assuming you can't get additional info using another Google API), you still only need to download the full message for the "All Mail" folder (and Spam and Trash if requested) since this folder will contain all messages. You will still need to download the duplicate messages from the other folders, but you only need to download the headers in order to get the Message-ID and not the full message. I imagine you don't even need to save the headers as once you've obtained the Message ID it can be discarded. Since a duplicate message with the same Message-ID will be present in the All Mail folder, you then just need to cross index to that message and add a tag to it that is equal to the IMAP folder name. It's probably more complicated than that since you need to somehow keep track of which messages are in each folder in order to remove tags if a message is deleted from another folder. Perhaps this would require maintaining all message headers in all folders, but that's still better than downloading duplicate full messages.
On the other hand, even if a full Gmail-type interface isn't implimented, I'd still like to at least see an option (it can be off by default) to include the "All Mail" and other special folders. I'd rather maintain duplicates than not have access to all my archived mail. This is how I've set up Thunderbird and there doesn't really seem to be an issue with the fact that there are duplicates. Disk space and bandwidth are pretty cheap these days...
The other issue I have with Zimbra desktop is there doesn't seem to be a way to have folders from more than one account visible on the sidebar at the same time, nor is there a favorite folders area. Any plans to improve the sidebar with these features?
Thanks.