Lars Ingebrigtsen
2012-02-16 05:03:47 UTC
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:
***@rusty:~/mgnus$ ls -l ~/.newsrc.eld
-rw-r--r-- 1 larsi larsi 502770 2012-02-16 05:46 /home/larsi/.newsrc.eld
***@rusty:~/mgnus$ gzip -9 -c /home/larsi/.newsrc.eld | wc
441 2222 117577
***@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...
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:
***@rusty:~/mgnus$ ls -l ~/.newsrc.eld
-rw-r--r-- 1 larsi larsi 502770 2012-02-16 05:46 /home/larsi/.newsrc.eld
***@rusty:~/mgnus$ gzip -9 -c /home/larsi/.newsrc.eld | wc
441 2222 117577
***@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
(domestic pets only, the antidote for overdose, milk.)
http://lars.ingebrigtsen.no * Sent from my Rome