From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.162.5 with SMTP id xw5csp31532vdb; Thu, 4 Jul 2013 13:43:53 -0700 (PDT) X-Received: by 10.60.155.135 with SMTP id vw7mr7922820oeb.67.1372970633281; Thu, 04 Jul 2013 13:43:53 -0700 (PDT) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id x4si3137288oej.125.2013.07.04.13.43.53 for ; Thu, 04 Jul 2013 13:43:53 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (bad format) header.i=@gmail.com Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 2C21D2E155; Thu, 4 Jul 2013 20:43:54 +0000 (UTC) X-Greylist: delayed 303 seconds by postgrey-1.31 at rubyforge; Thu, 04 Jul 2013 20:43:43 UTC Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by rubyforge.org (Postfix) with ESMTP id E1F1C2E14E for ; Thu, 4 Jul 2013 20:43:43 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id p58so1456437wes.12 for ; Thu, 04 Jul 2013 13:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:x-pgp-key:date:message-id :user-agent:content-transfer-encoding:mime-version:content-type; bh=VfJOvxzHZMN7M/Lg3Qwo66jnqKdyhfJvZRzrRD37q3c=; b=FH/50smk9YtwnR0MspRJQnp7kMkWx6bsvYE0Jk62BI3Hde1Dw4y/j++DFURweWtpfl njyBGiEg3nGsuYgozUr1uUOxaE8S+v4R9VogzZUX7BpJNor6SVOokdpHgPtkD3in8vBa cI0DBDGK2MYV9NWxNeYEojTQimDu1T90khfGr7pqC+FztEXucOZaSv/PSwVuCdencM1U 49bax9nU9h1XAXnp6EDK/cYGZ+9D9vF4YKPpbK3XFDDu8H9Zv8mMSCFM+BTT4nCicTHz O5DcO88jiUUexM8vCnQrMQinWLNqfBsteHDDdy+AY0ijTFro8gjGZu3BnpNOL42ADrvR tYDA== X-Received: by 10.180.107.71 with SMTP id ha7mr3951278wib.28.1372970318343; Thu, 04 Jul 2013 13:38:38 -0700 (PDT) Received: from kpad (155-29-190-109.dsl.ovh.fr. [109.190.29.155]) by mx.google.com with ESMTPSA id fd3sm37010392wic.10.2013.07.04.13.38.36 for (version=TLSv1.2 cipher=AES128-SHA bits=128/128); Thu, 04 Jul 2013 13:38:37 -0700 (PDT) Received: from localhost (1000@localhost [local]); by kpad (OpenSMTPD) with ESMTP id f57763b4; for ; Thu, 4 Jul 2013 20:38:35 +0000 (UTC) From: Matthieu Rakotojaona To: sup-devel In-reply-to: References: X-pgp-key: http://otokar.looc2011.eu/static/matthieu.rakotojaona.asc Date: Thu, 04 Jul 2013 22:38:30 +0200 Message-Id: <1372966209-sup-7024@kpad> User-Agent: Sup/git MIME-Version: 1.0 Subject: Re: [sup-devel] Gmail source sync back. X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3785153006797330764==" Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============3785153006797330764== Content-Transfer-Encoding: 8bit Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1372970315-328201-3577-8851-1-=" --=-1372970315-328201-3577-8851-1-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, Excerpts from Horacio Sanson's message of 2013-07-03 11:44:49 +0200: > I finally got the sync back feature of the Gmail source working. = Awesome, thank you! I've been using your gmail source branch with success for a while now. There are still a few quirks with the Inbox tag, but overall I'm really pleased with it. Will try your branch. > Issues to solve: > > [...] > = > - Sync back iterates over all messages in the Gmail account checking fo= r > differences between message labels. This can take a long time and may n= ot > finish before the next polling starts. How to do this efficiently? Ah, that sounds bad. Reading the always-helpful Stack Overflow [0] says that there is nothing for this, unfortunately. There is a IMAP RFC extension, 4551, that is supposed to help such situations, but it is not implemented by Gmail, although there is a beta-test for this, if you're interested : http://mailman2.u.washington.edu/pipermail/imap-protocol/2013-January/001= 962.html Another way could be to use the search extension specific to gmail [1]. I don't think you would gain much more than bandwidth, though. [0] http://stackoverflow.com/questions/10076690/ruby-imap-changes-since-l= ast-check [1] https://developers.google.com/gmail/imap_extensions#extension_of_the_= search_command_x-gm-raw > = > regards, > Horacio Sanson -- = Matthieu Rakotojaona --=-1372970315-328201-3577-8851-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBAgAGBQJR1d1LAAoJEDp04ZRcPZci4aAP/itNbmX3f/RFPtoWJmHSJNyI n3ttZQ2RBZlDszFh5gbjnAJnH/VrjrX7NLmXMlTk/V9fVo2LCla7WC+0smd7Fp+8 PT9eVkUPbAzD9XgVK/i1SCDMvD/EpmI23W77c4HW2kEzCDsnJ1b9HdDprojEvUun l1iDvN98JboeanUaFIDQXZYKBDpJ5oE3jD1wh1HWph+2XqKlR0+aotTLrabqlTRD WhlCW0ZgpoOMfmtCXSwDoYIHUiOBFA8AvnhjqxIsc/rRUySOuYkR0BLigCSQD7Nb OQFbyY+Bs7J75rJFBH+biG5VBL8J3HPGQ9ziJB1XFwdiSEVg/n4I9V91+UrljESZ ILynQv3BsNH8Z5f/PzCvF+j0mArZV+xA3E5SBzyP5SzZ0JEDRFfAJEZv6B2uFNVa RPKoQBilpLvWuaDkqwDT3Wgb5iXCLkMygJtrd6/dIzQ1Np3WOh0xAv+xNmvkTMtx GVNPpsI/RG4XGrow5kMNGV2EF8WmQu0X/1zZY3Tu3PycPghc6PFtBIEqyTx9wIBg d1aBt2OZmuagoAQEolP9p7Ge9e7sYsiLfcQk8n4ToJZeoodPm7K4bv8HD1G12Emr Dv3epPX83SK85doMFcLPGAR9D5t8rKMS7zQTICa0vBFqWCbV+i6qpys6jewVYrmO 9kDOMa8pkvJNC42ppihI =3A4a -----END PGP SIGNATURE----- --=-1372970315-328201-3577-8851-1-=-- --===============3785153006797330764== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============3785153006797330764==--