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 et10sm5605460lbc.6.2013.07.29.00.54.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jul 2013 00:54:58 -0700 (PDT) Message-ID: <51F61F99.8030202@gaute.vetsj.com> Date: Mon, 29 Jul 2013 09:54:01 +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-heliotrope/sup CC: =?UTF-8?B?UGV0ciBQdWRsw6Fr?= , sup-heliotrope/sup , Sup developer discussion Subject: GMail, was: Re: [sup] Please review the documentation in class Source for implementing new Sources (#113) References: In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Petr, Take a look at Horacio's work, he has gotten pretty far doing just that! But some of the label stuff can be very slow for large volumes atm. His gmail.rb is well-written and relatively easy to understand: https://github.com/hsanson/sup/tree/gmail_source His last message to sup-devel: http://rubyforge.org/pipermail/sup-devel/2013-July/001415.html Also, feel free to sign up to the devel mailing list: http://rubyforge.org/mailman/listinfo/sup-devel or the users list, sup-talk: http://rubyforge.org/mailman/listinfo/sup-talk Regards, Gaute On 29. juli 2013 09:44, Petr Pudlák wrote: > Thanks for help. To clarify, my aim is to use sup with GMail on > multiple computers with locally cached messages. For this to work > correctly I need to synchronize labels back to GMail. Since this > seems problematic with maildir, my idea is to: > > - Store emails in a SQLite database. This way I'll get ACID > properties for free, as well as the possibility to add additional > information to messages, such as labels. Another bonus are simple > backups - everything is in one file. - Write a simple GMail-IMAP > synchronization tool that only downloads messages from _All mail_ to > the database and synchronizes labels back using [GMail > extensions](https://developers.google.com/gmail/imap_extensions#special-use_extension_of_the_list_command). > > (There could be some time limit like "download only messages newer > than 1 year or so.) - Modify sup so that it can use this SQLite > store and store (or copy) labels into it. > > This also solves the awkward intermediate step when using > OfflineIMAP that labels are first converted into IMAP folders, > downloaded locally to multiple folders and then again converted to > labels for sup (and sup needs to check multiple folders). Using > instead one big folder that understand labels seems much cleaner. > > (Perhaps it would be worth to store GMail thread ID too?) > > --- Reply to this email directly or view it on GitHub: > https://github.com/sup-heliotrope/sup/issues/113#issuecomment-21703944 >