From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87091 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: gnus-cloud work (was: gnus-sync work) Date: Wed, 15 Jun 2016 14:55:18 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87r3by2sfd.fsf_-_@lifelogs.com> References: <87twzdc86f.fsf@building.gnus.org> <8761bhzz0f.fsf@lifelogs.com> <878ugdxpuc.fsf@lifelogs.com> <86twv7p7nu.fsf_-_@dod.no> <86r3pnciof.fsf_-_@dod.no> <87io0y4bw4.fsf_-_@lifelogs.com> <87lh3439r6.fsf@dod.no> <87bn3vs1tb.fsf@lifelogs.com> <877fe0svto.fsf@lifelogs.com> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466017044 12903 80.91.229.3 (15 Jun 2016 18:57:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2016 18:57:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M35311@lists.math.uh.edu Wed Jun 15 20:57:10 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bDFzv-0002Mb-KV for ding-account@gmane.org; Wed, 15 Jun 2016 20:57:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.86_2) (envelope-from ) id 1bDFyh-0004iL-5A; Wed, 15 Jun 2016 13:55:51 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bDFyd-0004hl-LT for ding@lists.math.uh.edu; Wed, 15 Jun 2016 13:55:47 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_2) (envelope-from ) id 1bDFyb-0004d5-7n for ding@lists.math.uh.edu; Wed, 15 Jun 2016 13:55:47 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bDFyQ-0004mN-5G for ding@gnus.org; Wed, 15 Jun 2016 20:55:36 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bDFyN-00018m-Fk for ding@gnus.org; Wed, 15 Jun 2016 20:55:32 +0200 Original-Received: from c-98-229-60-157.hsd1.ma.comcast.net ([98.229.60.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2016 20:55:31 +0200 Original-Received: from tzz by c-98-229-60-157.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2016 20:55:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 55 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-60-157.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:C+ryEKxO92ksngHTq+WtLbNn7c8= X-Spam-Score: -4.3 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87091 Archived-At: On Tue, 07 Jun 2016 14:22:27 -0400 Ted Zlatanov wrote: TZ> On Sun, 05 Jun 2016 13:27:35 -0700 Dave Abrahams wrote: DA> I don't mean to be pushy, but realistically speaking, is there any DA> chance this will happen in the next few weeks? I am seriously thinking DA> of moving most of my NNTP participation to GMail/IMAP just to avoid the DA> sync issue. TZ> I want to do it, but really want to know what Lars thinks because I know TZ> he had started working on something similar already. TZ> If not, this weekend I'll bang it out as a new gnus-sync.el backend (and TZ> obsolete the old CouchDB one). All right, after looking at gnus-cloud.el, I think I understand where Lars was going. Unfortunately he hasn't touched that code in years so we have to get going with what's there. In any case, it's better code than gnus-sync.el, especially as far as internal glue is concerned, so gnus-sync.el is going away. gnus-cloud.el did: * set up a mechanism where every server could be "cloud synced" * have the concept of a "cloud host server+group" * save sequences representing files or pure data to IMAP articles * have ambitions to be Emacs-wide, so perhaps should move out of Gnus? My changes now are in the Emacs Savannah repo in branch scratch/gnus-cloud: * rename the cloud host group name to "Emacs-Cloud" so it works with GMail * add `I' and `gnus-server-toggle-cloud-method-server' in the Server buffer to set an IMAP server as the cloud host and do an initial full upload * show the cloud host distinctly visually * remove gnus-sync.el * a full upload works To try it: switch to the scratch/gnus-cloud branch, go to the Server buffer, and hit `I' or `M-x gnus-server-toggle-cloud-method-server' Try this outside a server line: you'll get an error. Try this on a non-IMAP server: you'll get an error. Try this on an IMAP server: you should see `CLOUD-HOST' on it, and the initial upload should run and complete successfully. Still remaining: * verify uploads * download cloud data back * when a server is selected as the CLOUD-HOST, maybe save that choice? but I'm not sure if the choice should be persisted in `gnus-cloud-method' or in the newsrc.eld. * notice when the cloud data changes (maybe some IMAP magic can do it... but could just be done explicitly for now) * use PGP instead of Base64+gzip (could be a choice... but I would * really prefer to make it secure by default and make insecure storage an explicit user choice) * get Steinar, Dave, and others to try this out... * send salmon hunter drones after Lars to get him back on this :) Ted