From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 68BBF6DE0AB2 for ; Fri, 18 Jan 2019 20:13:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 1.111 X-Spam-Level: * X-Spam-Status: No, score=1.111 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D9_A4HfhVx9l for ; Fri, 18 Jan 2019 20:13:56 -0800 (PST) X-Greylist: delayed 336 seconds by postgrey-1.36 at arlo; Fri, 18 Jan 2019 20:13:56 PST Received: from aleph0.info (mail.aleph0.info [66.228.54.186]) by arlo.cworth.org (Postfix) with ESMTPS id 87BBC6DE0AAA for ; Fri, 18 Jan 2019 20:13:56 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by aleph0.info (Postfix) with ESMTP id 8B44B42395 for ; Sat, 19 Jan 2019 02:08:18 -0200 (-02) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aleph0.info; s=mail; t=1547870898; bh=eW0aOMeiixm3Tl8nBXepY9OL2HZmjrzBttcacED+1QE=; h=Date:From:To:Subject:References:In-Reply-To:From; b=OSchu4zDI0SAWgQ7MHTXx19FR2oIyUcKC7wS1gC9FlpcmSHvW4nCY/CHrQ4TvGTwk OunUvZ1wrKGZJygRQM+iqDuE7cJOU+qYrELYAFkCPSsGAWzFrMuQVySPuFkcQpEWp4 UIbZptsoPTalM4IsXK92O09sA/YGqJauH2n3VrB7Q6z34HK63lH7rqVFIbBJW+EJ5h gP3MFGGGPYotaO2p/leRJEtC++2YqNwwMN3bbq642OTZIEdcMwUx3KEHpJzAD+YEKC +oIRymBRucKR6ZZ7yLoxT0rf3H80Jn0SZ08tey3sbnmFmMbnWA5uEgq3SGpoW+C5mO MMV6NY2cTajWg== Received: from aleph0.info ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id O5FdrsEny8cX for ; Sat, 19 Jan 2019 02:08:18 -0200 (-02) Received: from socrates.aleph0.info (unknown [189.100.0.175]) (Authenticated sender: je) by aleph0.info (Postfix) with ESMTPSA id 3BE664237A for ; Sat, 19 Jan 2019 02:08:18 -0200 (-02) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aleph0.info; s=mail; t=1547870898; bh=eW0aOMeiixm3Tl8nBXepY9OL2HZmjrzBttcacED+1QE=; h=Date:From:To:Subject:References:In-Reply-To:From; b=OSchu4zDI0SAWgQ7MHTXx19FR2oIyUcKC7wS1gC9FlpcmSHvW4nCY/CHrQ4TvGTwk OunUvZ1wrKGZJygRQM+iqDuE7cJOU+qYrELYAFkCPSsGAWzFrMuQVySPuFkcQpEWp4 UIbZptsoPTalM4IsXK92O09sA/YGqJauH2n3VrB7Q6z34HK63lH7rqVFIbBJW+EJ5h gP3MFGGGPYotaO2p/leRJEtC++2YqNwwMN3bbq642OTZIEdcMwUx3KEHpJzAD+YEKC +oIRymBRucKR6ZZ7yLoxT0rf3H80Jn0SZ08tey3sbnmFmMbnWA5uEgq3SGpoW+C5mO MMV6NY2cTajWg== Received: by socrates.aleph0.info (Postfix, from userid 1000) id 067CF50D32; Sat, 19 Jan 2019 02:08:15 -0200 (-02) Date: Sat, 19 Jan 2019 02:08:15 -0200 From: Jeronimo Pellegrini To: notmuch@notmuchmail.org Subject: Re: How do you synchronize your notmuch tags across multiple machines? Message-ID: <20190119040815.GB3790@socrates.lan> References: <87d0pzwykt.fsf@cgc-instruments.com> <87mup3bqmh.fsf@ra.horus-it.com> <8636qv5juu.fsf@lama-e29.univ-savoie.fr> <87pntd74wt.fsf@cgc-instruments.com> <1547333156352-0.post@n3.nabble.com> <87muo26e0x.fsf@cgc-instruments.com> <1547870531609-0.post@n3.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547870531609-0.post@n3.nabble.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2019 04:13:57 -0000 So -- the client runs something like this: //--- #!/bin/bash REMOTE_HOME=/home/myself LOCAL_HOME=/home/myself if [ "$#" -ne 1 ] then echo "Please give the maildir name!" exit 1 fi declare -A local_config local_config=( ["personal"]="$LOCAL_HOME/.notmuch-config.personal" ["work"]="$LOCAL_HOME/.notmuch-config.work" ) declare -A remote_program remote_program=( ["personal"]="$REMOTE_HOME/config/email/syncmail-wrapper-personal.sh" ["work"]="$REMOTE_HOME/config/email/syncmail-wrapper-work.sh" ) arg=$1 muchsync -C ${local_config[$arg]} -r ${remote_program[$arg]} -- myserver.org //--- And in the server, ~/config/email/syncmail-wrapper-work.sh for example is: //--- #!/bin/sh CONFIG=/home/myself/.notmuch-config.work MAILDIR=/var/mail/vmail/my_mailbox@work LOCK_WAIT_MAX=5 MUCHSYNC=/usr/bin/muchsync PID=`/usr/lib/dovecot/maildirlock ${MAILDIR} ${LOCK_WAIT_MAX}` if [ -z "$PID" ] then echo "Maildir was locked for more than ${LOCK_WAIT_MAX} seconds" else $MUCHSYNC --config=$CONFIG $@ kill $PID fi //--- J. On Fri, Jan 18, 2019 at 09:02:11PM -0700, jpellegrini wrote: > Hello, > > Sorry, it seems that the code in me previous email was removed by nabble. > > I'll post again from a real email client :-) > > > Regarding your first question: yes, it's my primary mail server. I use a > virtual machine > at Linode. > > J. > > > > -- > Sent from: http://notmuch.198994.n3.nabble.com/ > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch