From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [192.168.1.207] (c4C8F5BC1.dhcp.as2116.net. [193.91.143.76]) by mx.google.com with ESMTPSA id m14sm6722272lbl.1.2013.07.29.12.38.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jul 2013 12:38:28 -0700 (PDT) Message-ID: <51F6C47A.3010004@gaute.vetsj.com> Date: Mon, 29 Jul 2013 21:37:30 +0200 From: Gaute Hope User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Sup developer discussion CC: Horacio Sanson Subject: Re: [sup-devel] Gmail source sync back. References: In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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