From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14312 Path: news.gmane.org!not-for-mail From: Brett Viren Newsgroups: gmane.emacs.gnus.user Subject: Re: Solution for gnus wide sync Date: Sun, 12 Dec 2010 20:15:25 +0000 (UTC) Message-ID: References: <87lj7jzt3n.fsf@notengoamigos.org> <87wrr3y9gb.fsf@gmail.com> <87k4n3e5kl.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292184950 2027 80.91.229.12 (12 Dec 2010 20:15:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Dec 2010 20:15:50 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Dec 12 21:15:46 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PRsKf-0001I5-3S for gegu-info-gnus-english@m.gmane.org; Sun, 12 Dec 2010 21:15:45 +0100 Original-Received: from localhost ([127.0.0.1]:34745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRsKe-0004FH-IS for gegu-info-gnus-english@m.gmane.org; Sun, 12 Dec 2010 15:15:44 -0500 Original-Received: from [140.186.70.92] (port=57392 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRsKc-0004Ez-2A for info-gnus-english@gnu.org; Sun, 12 Dec 2010 15:15:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRsKa-0007wG-Nm for info-gnus-english@gnu.org; Sun, 12 Dec 2010 15:15:41 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:58140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRsKa-0007w4-8j for info-gnus-english@gnu.org; Sun, 12 Dec 2010 15:15:40 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PRsKX-0001ED-Ix for info-gnus-english@gnu.org; Sun, 12 Dec 2010 21:15:37 +0100 Original-Received: from ool-457a6e90.dyn.optonline.net ([69.122.110.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Dec 2010 21:15:37 +0100 Original-Received: from brett.viren by ool-457a6e90.dyn.optonline.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Dec 2010 21:15:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 69.122.110.144 (Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Ubuntu/10.10 Chromium/8.0.552.215 Chrome/8.0.552.215 Safari/534.10) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14312 Archived-At: Andi Albrecht gmail.com> writes: > I'm using Dropbox too for a while now and it works pretty well. The only > thing I've never tried is to be logged in on both machines at the same > time with a running Gnus on both. Dropbox has no automatic merging, so > maybe this could cause some problems. I played with using Dropbox but now I'm trying with git. Here is what I do. I have a "gnus.git" bare repository that I clone onto ~/gnus on workstation and laptop. All emacs setup is same on both. In .emacs: (setq gnus-startup-file "~/gnus/.newsrc" gnus-directory "~/gnus/" gnus-dribble-directory "~/gnus/" mail-source-directory "~/gnus/incoming/" gnus-cache-directory "~/gnus/cache/" ) (add-hook 'gnus-after-exiting-gnus-hook (lambda () (shell-command "gnus-sync push"))) At the very top of .gnus: (shell-command "gnus-sync pull") The "gnus-sync" script simply collects some git commands. A push does: cd $HOME/gnus git add overview drafts .newsrc.eld git commit -a -m "State of gnus as of $(date)" git push A "pull" does: cd $HOME/gnus git pull Like with the dropbox approach it is possible to get conflicts when the pull/push cycle of one system overlaps with another. The mail itself is synced from workstation to laptop using offlineimap in IMAP- to-IMAP with dovecot serving both ends. This seems to all work fairly well but some problems remain: * I have years of monthly outboxes on the workstation that are not synced to the laptop. Each time the workstation runs gnus these get added as new groups and they can't be opened on the laptop. I guess I can fix this by doing a monthly sync of some kind. * I still have the problem (posted previously) that most groups no longer load just new, unread articles but try to load all articles as if C-u ENTER was done on the group (instead of just ENTER). -Brett.