From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81399 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: I can haz cloud idea Date: Thu, 16 Feb 2012 06:03:47 +0100 Organization: Programmerer Ingebrigtsen Message-ID: <87fwebnzd8.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329368660 26630 80.91.229.3 (16 Feb 2012 05:04:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2012 05:04:20 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29679@lists.math.uh.edu Thu Feb 16 06:04:19 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RxtVw-0001re-84 for ding-account@gmane.org; Thu, 16 Feb 2012 06:04:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RxtVp-00056q-SY; Wed, 15 Feb 2012 23:04:09 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RxtVo-00056h-8e for ding@lists.math.uh.edu; Wed, 15 Feb 2012 23:04:08 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RxtVj-0008Iz-5w for ding@lists.math.uh.edu; Wed, 15 Feb 2012 23:04:07 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RxtVh-000145-4P for ding@gnus.org; Thu, 16 Feb 2012 06:04:01 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RxtVg-0001gl-SY for ding@gnus.org; Thu, 16 Feb 2012 06:04:00 +0100 Original-Received: from 93-41-188-50.ip82.fastwebnet.it ([93.41.188.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Feb 2012 06:04:00 +0100 Original-Received: from larsi by 93-41-188-50.ip82.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Feb 2012 06:04:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 48 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93-41-188-50.ip82.fastwebnet.it Mail-Copies-To: never User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:rLljXcap/Ia1TWYFxum4t5Lqrss= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81399 Archived-At: The main problems with going all cloudy is that you have to have yet another server out there somewhere. Whether you use Dropbox/sshfs/a yet to be determined Gnus-specific server, that's not very sexy. But how about if we just cheat and put all the information on the IMAP server? That is: Gnus would create and maintain a special group on one of your IMAP servers that would contain all the data Gnus needs. You'd set this up by setting, er, something, like: (setq gnus-cloud-server '(nnimap "imap.gmail.com")) This would make Gnus save all the data on that server whenever you exit Gnus. (Or on certain intervals.) It could gzip and encrypt the data before uploading, I guess. So when you go to your other machine, you'd say `M-x gnus-cloud', and it would prompt you for the server and password(s), download the data, and then start up more or less as normal. And it would upload the data on exit, as well, so you'd be all cloudy. What would be stored on the server? Well, the .newsrc.eld file, for one. And the SCORE files, I guess. And... well, whatever else you want. It could be a simple archive "file" type, and Gnus could just decrypt, uncompress and unpack the files. Some sanity check about overwriting newer files with older files, I guess. How much data would this be? Here's my .newsrc.eld file: larsi@rusty:~/mgnus$ ls -l ~/.newsrc.eld -rw-r--r-- 1 larsi larsi 502770 2012-02-16 05:46 /home/larsi/.newsrc.eld larsi@rusty:~/mgnus$ gzip -9 -c /home/larsi/.newsrc.eld | wc 441 2222 117577 larsi@rusty:~/mgnus$ xz -c /home/larsi/.newsrc.eld | wc 258 1440 65288 A 65K download isn't too bad. Well. You'd have to base64 it before uploading, I guess. Does Emacs have xz compression built in? And built-in encryption would also be nice, but that's already planned for Emacs 24.2, I guess... -- (domestic pets only, the antidote for overdose, milk.) http://lars.ingebrigtsen.no * Sent from my Rome