Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 5b / 978420b4d48dc8bf98ff7102c9637c74b542ba
1 Return-Path: <Jacek.Generowicz@cern.ch>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 32AE9431FAE\r
6         for <notmuch@notmuchmail.org>; Tue,  3 Apr 2012 08:27:40 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -5\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-5 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_HI=-5] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id hVQTwDJvCevB for <notmuch@notmuchmail.org>;\r
16         Tue,  3 Apr 2012 08:27:39 -0700 (PDT)\r
17 Received: from CERNMX30.cern.ch (cernmx30.cern.ch [137.138.144.177])\r
18         (using TLSv1 with cipher AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 4ECFC431FC0\r
21         for <notmuch@notmuchmail.org>; Tue,  3 Apr 2012 08:27:39 -0700 (PDT)\r
22 Received: from CERNFE22.cern.ch (137.138.144.151) by cernmxgwlb2.cern.ch\r
23         (137.138.144.177) with Microsoft SMTP Server (TLS) id 14.2.283.3;\r
24         Tue, 3 Apr 2012 17:27:36 +0200\r
25 Received: from huxley.cern.ch (80.218.24.120) by smtp.cern.ch\r
26         (137.138.144.172) with Microsoft SMTP Server (TLS) id 14.1.270.2;\r
27         Tue, 3 Apr 2012 17:27:36 +0200\r
28 Date: Tue, 3 Apr 2012 17:27:34 +0200\r
29 From: Jacek Generowicz <jacek.generowicz@cern.ch>\r
30 To: <notmuch@notmuchmail.org>\r
31 Subject: notmuch-poll and OfflineIMAP\r
32 User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9\r
33         (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.3 (i686-pc-linux-gnu)\r
34         MULE/6.0 (HANACHIRUSATO)\r
35 MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")\r
36 Content-Type: text/plain; charset="US-ASCII"\r
37 Message-ID: <aaf33fc5-d266-45d1-9bad-e675fa6a0b84@CERNFE22.cern.ch>\r
38 X-Originating-IP: [80.218.24.120]\r
39 Keywords: CERN SpamKiller Note: -50\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Tue, 03 Apr 2012 15:27:40 -0000\r
53 \r
54 Hello,\r
55 \r
56 Would you have any advice on how to construct a notmuch-poll script\r
57 that would work well in concert with OfflineIMAP?  In particlular, how\r
58 can you avoid having to re-issue the IMAP account passwords?\r
59 \r
60 The OfflineIMAP docs state that SIGUSR1 forces an immediate resync of\r
61 all accounts, so something based around\r
62 \r
63     kill -SIGUSR1 `cat ~/.offlineimap/pid`\r
64 \r
65 or\r
66 \r
67     pkill -SIGUSR1 -u `whoami` offlineimap\r
68 \r
69 (with an already-running OfflineIMAP process in autorefresh mode)\r
70 could work, but it's not clear to me how to discover when the resync\r
71 is done, and sleeping for an arbitrary time before calling 'notmuch\r
72 new' seems unsatisfactory.\r
73 \r
74 Any words of wisdom?\r
75 \r
76 Thanks.\r