-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two-way syncing between X-GM-LABELS and IMAP Keywords #13
Comments
Thank you for bringing this here! I changed import/syncing mechanism since I wrote #9 and haven't measured the time with last implementation :), but it should be still pretty good. IMAP Keywords have some limitations, so If Two-way synchronization is pretty delicate task. I have been thinking about this though, because of reasons you specified. So yes I would like to see it someday, but I don't know when I can work on it yet. I've just got a new full-time job and I fully dedicated to my work now. |
OK, I was mistaken about your not grabbing I understand you are focused on your job right now - such is the case with open source projects. It is very good to hear you have the two-way sync problem in mind, though. I may play around with it a bit if I get the chance, but that would also mean better understanding how it is you have implemented everything. I am only part way to that... |
Thank you for trying it! |
I also was thinking about partial two-way syncing. Sync only specified gmail flags and labels (like What do you think about such option? |
That is a significant start! Honestly, that is the main advantage. Even if organizational tags dont go up to the Gmail that is not the end of the world. At least your inbox doesn't reach into the thousands. You have probably heard of the similar project that does this for notmuch and Gmail tags: https://github.com/gauteh/lieer. It is also done in Python so I wonder if some of the code/logic would be reusable. |
I haven't seen I think partial syncing can be done just faster, probably it can be the first step in this direction and then I can see how hard it would be to implement the full sync. |
I think Dovecot was the right choice for sure. Notmuch is nice, but IMAP is standardized and with something like email standards are preferable (which is what makes Gmail annoying in how they go about it). |
Some technical details. I have two functions using
So syncing flags will be in a similar way as above. More events would be handled from gmail side, and flags would be synced in a way they synced between local folders. |
This is a quite an impressive project. I am still trying to get my head around just how you handle tag implementation in Dovecot, but it seems to be smooth and that is something that I have wanted to accomplish for quite some time now as I use Dovecot locally on my machine with mbsync to pull down from Gmail.
Your Python implementation of fetching messages from Gmail is very nice (and it sounds like its significantly faster than mbsync though I haven't compared it myself - just taking your word for it). However, it does not seem like you have grabbed the
X-GM-LABELS
attribute and mapped that IMAP Keywords. This would be very nice because it would enable the Dovecot backed storage and the web-based Gmail to remain in sync while your web interface is still in transition and allow easier mobile interaction before that interface is fully implemented as well. Furthermore, it would allow for the use case of company email on GSuite where it is not possible to abandon it altogether, in which case you would really want the two versions of the inbox and labels to be identical.I think this enhancement is feasible and would be an important improvement. I am curious to hear whether you see it as possible to implement and of interest to you. Regardless, nice work!
The text was updated successfully, but these errors were encountered: