From b7e0ddf161b4ed0f73ea201bedc395af15cc5d66 Mon Sep 17 00:00:00 2001 From: Jacek Generowicz Date: Tue, 3 Apr 2012 17:27:34 +0200 Subject: [PATCH] notmuch-poll and OfflineIMAP --- 5b/978420b4d48dc8bf98ff7102c9637c74b542ba | 76 +++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 5b/978420b4d48dc8bf98ff7102c9637c74b542ba diff --git a/5b/978420b4d48dc8bf98ff7102c9637c74b542ba b/5b/978420b4d48dc8bf98ff7102c9637c74b542ba new file mode 100644 index 000000000..4e0031de5 --- /dev/null +++ b/5b/978420b4d48dc8bf98ff7102c9637c74b542ba @@ -0,0 +1,76 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 32AE9431FAE + for ; Tue, 3 Apr 2012 08:27:40 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -5 +X-Spam-Level: +X-Spam-Status: No, score=-5 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_HI=-5] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id hVQTwDJvCevB for ; + Tue, 3 Apr 2012 08:27:39 -0700 (PDT) +Received: from CERNMX30.cern.ch (cernmx30.cern.ch [137.138.144.177]) + (using TLSv1 with cipher AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 4ECFC431FC0 + for ; Tue, 3 Apr 2012 08:27:39 -0700 (PDT) +Received: from CERNFE22.cern.ch (137.138.144.151) by cernmxgwlb2.cern.ch + (137.138.144.177) with Microsoft SMTP Server (TLS) id 14.2.283.3; + Tue, 3 Apr 2012 17:27:36 +0200 +Received: from huxley.cern.ch (80.218.24.120) by smtp.cern.ch + (137.138.144.172) with Microsoft SMTP Server (TLS) id 14.1.270.2; + Tue, 3 Apr 2012 17:27:36 +0200 +Date: Tue, 3 Apr 2012 17:27:34 +0200 +From: Jacek Generowicz +To: +Subject: notmuch-poll and OfflineIMAP +User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 + (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.3 (i686-pc-linux-gnu) + MULE/6.0 (HANACHIRUSATO) +MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") +Content-Type: text/plain; charset="US-ASCII" +Message-ID: +X-Originating-IP: [80.218.24.120] +Keywords: CERN SpamKiller Note: -50 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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: Tue, 03 Apr 2012 15:27:40 -0000 + +Hello, + +Would you have any advice on how to construct a notmuch-poll script +that would work well in concert with OfflineIMAP? In particlular, how +can you avoid having to re-issue the IMAP account passwords? + +The OfflineIMAP docs state that SIGUSR1 forces an immediate resync of +all accounts, so something based around + + kill -SIGUSR1 `cat ~/.offlineimap/pid` + +or + + pkill -SIGUSR1 -u `whoami` offlineimap + +(with an already-running OfflineIMAP process in autorefresh mode) +could work, but it's not clear to me how to discover when the resync +is done, and sleeping for an arbitrary time before calling 'notmuch +new' seems unsatisfactory. + +Any words of wisdom? + +Thanks. -- 2.26.2