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 62D266DE01F5 for ; Sat, 3 Nov 2018 00:23:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.294 X-Spam-Level: X-Spam-Status: No, score=-0.294 tagged_above=-999 required=5 tests=[AWL=-0.094, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] 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 uPVvV06PUAoy for ; Sat, 3 Nov 2018 00:23:29 -0700 (PDT) Received: from jb55.com (jb55.com [45.79.91.128]) by arlo.cworth.org (Postfix) with ESMTPS id 4F8306DE004D for ; Sat, 3 Nov 2018 00:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d= jb55.com; h=from:to:subject:date:message-id; s=default; bh=ipN+rbKLFuuvT29rvQVMUHTpfLOnIbbXmQ8FZalXEBA=; b=EpAHW3yQ78ystRurB9hCq1KS1woOQqzxFq6kgXcW149p/lm8JXpbAUSJ2p1p0wE2zVgmx4wxzlxpsEufYB0WICP806wQ97D+zn605bZTASFoLE/RX4vtW1LEnuKxk3xYwoCzDPkj70fClG4bS7Nzohmbn7COHL7U5tBH9HjsqDwHFnE2isknLYbZBOyrrYlNVR6yCHN9ZeG1qecRtFxT9YJ12fv2LgcJqpKcw1H/VgmRLxc0XiYLBaaLNmtvIAxyWvCgVVjN2sbOz4h0wny70Sy5VpSlyz0vsE+Wx55+y6CCOyo0J/G7Ja2c+Lwge3cN7EzWVYqEWwUb52Fx59O3WQ== Received: from jb55.com (S010660e327dca171.vc.shawcable.net [24.84.152.187]) by jb55.com (OpenSMTPD) with ESMTPSA id 011edc72 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 3 Nov 2018 07:23:27 +0000 (UTC) From: William Casarin To: Vika Shleina Cc: notmuch@notmuchmail.org Subject: Re: How do you sync your mail constantly? In-Reply-To: <154106218751.5999.17198424295053125022@sakura> References: <154106218751.5999.17198424295053125022@sakura> Date: Sat, 03 Nov 2018 00:23:27 -0700 Message-ID: <87zhuqipzk.fsf@jb55.com> MIME-Version: 1.0 Content-Type: text/plain 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, 03 Nov 2018 07:23:31 -0000 Vika Shleina writes: > And to maybe think of alternative solution, I ask you - what do you use > to seamlessly sync your mail? I use a script[1] that connects to my imap server. New mail comes into my sieve-filtered inbox[2] which then triggers the imap-notify[1] script on my local machine. This script runs muchsync, which in turn runs notmuch new on the remote machine, and then syncs tags between the local machine and the server. Once muchsync finishes I trigger a notification[4] with notify-send, which pops up a message on twmnd. To make this rube goldberg device work I have a bunch of systemd services[5] defined in NixOS that manages everything. It's pretty hacky and can get stuck, so I have a python script that restarts imap-notifier when I wake from sleep when I'm on my laptop. I should probably get around to turning this into a single program that works well, but here we are. My setup with muchsync assumes you run your own mailserver. If you're using something like gmail you can scrap the muchsync step and just use an imap-notifier-like script to run mbsync and the notmuch-new. Cheers, Will [1] https://github.com/jb55/imap-notify [2] I'm not happy with the setup, I would prefer to not have to use sieve and use tagging directly. but for now it allows me to read my mail on my phone. [3] http://www.muchsync.org/ [4] Which I have off most of the time, notifications are terrible. I toggle them on/off with cmdtree: https://git.sr.ht/~jb55/cmdtree [5] https://github.com/jb55/nix-files/blob/monad/misc/imap-notifier/default.nix