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

Re: [sup-devel] Gmail source sync back.



On 03. juli 2013 11:44, Horacio Sanson wrote:
> - 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?

Check out pull request #2 towards your github repo, yielding the message
on update + some other modifications now updates the message on my setup.

> - 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?

If this turns out not be solvable (e.g. being able to get a list of
changed messages since a given date), an option could be to allow the
user to configure remote-to-local syncing to only be manual.
Local-to-remote you can store locally whether it has been synced or not.

There's also a pull request #1 which allows arbitrary domains to be
entered for the gmail source (for google apps setups).

Regards, Gaute