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