[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-devel] Gmail source sync back.



I finally got the sync back feature of the Gmail source working. The sync code uses the offlineimap sync algorithm the Matthieu mentioned some emails ago.

So far it works ok with my small tests but this code should be considered alpha so do not test it with your work emails.

https://github.com/hsanson/sup/tree/gmail_source

I also added some fixes and the config option provided by Matthieu.

Testing and feedback is greatly appreciated.

Issues to solve:

- Sync back flags: Not sure if this is needed or how it may work. All messages I get from Gmail have the \Seen flag no matter if I have seen or not the message on Gmail web interface. The \Flagged flag can be changed using the \Starred label instead. The only flag that I really need to care about is the \Deleted flag.

- How to refresh the index after polling finishes? When new labels are synced from Gmail to Sup the index is not updated with the new labels until I reload sup or press "@" to refresh the index. Is there a callback to refresh the index when the polling finishes?

- Sync back iterates over all messages in the Gmail account checking for differences between message labels. This can take a long time and may not finish before the next polling starts. How to do this efficiently?

regards,
Horacio Sanson
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel