1 Return-Path: <sojkam1@fel.cvut.cz>
\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 A0DBC40DF1E
\r
6 for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 13:52:00 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9] autolearn=ham
\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 AR6CRV2H2D+Y for <notmuch@notmuchmail.org>;
\r
16 Sun, 21 Nov 2010 13:51:50 -0800 (PST)
\r
17 Received: from smtp.nextra.cz (smtp.nextra.cz [212.65.193.3])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 91D5240DF18
\r
19 for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 13:51:50 -0800 (PST)
\r
20 Received: from resox.2x.cz (unknown [213.29.198.144])
\r
21 by smtp.nextra.cz (Postfix) with ESMTP id 786179B7BF;
\r
22 Sun, 21 Nov 2010 22:51:49 +0100 (CET)
\r
23 Received: from wsh by resox.2x.cz with local (Exim 4.72)
\r
24 (envelope-from <sojkam1@fel.cvut.cz>)
\r
25 id 1PKHox-0005y0-6f; Sun, 21 Nov 2010 22:51:39 +0100
\r
26 From: Michal Sojka <sojkam1@fel.cvut.cz>
\r
27 To: Austin Clements <amdragon@gmail.com>, servilio <servilio@gmail.com>
\r
28 Subject: Re: [PATCH] Implement a simple read-eval-print loop.
\r
29 In-Reply-To: <87y68mbcye.fsf@resox.2x.cz>
\r
30 References: <AANLkTi=7eCt0=NqUiJFrGDcaZ17LOd3qNNqN1-ASwYzr@mail.gmail.com>
\r
31 <87sjyvk875.fsf@wsheee.2x.cz>
\r
32 <AANLkTin_6A1qnuFpE9oPXySA0j5jTV-tq=BbqSNMPWfb@mail.gmail.com>
\r
33 <AANLkTikMUhmEQjSLj3Uys9iBU1r8G22TuT337y1N3ZrJ@mail.gmail.com>
\r
34 <87y68mbcye.fsf@resox.2x.cz>
\r
35 User-Agent: Notmuch/0.5-11-g48b5e00 (http://notmuchmail.org) Emacs/23.2.1
\r
37 Date: Sun, 21 Nov 2010 22:51:29 +0100
\r
38 Message-ID: <87vd3qbb1a.fsf@resox.2x.cz>
\r
40 Content-Type: text/plain; charset=us-ascii
\r
41 Cc: notmuch <notmuch@notmuchmail.org>
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Sun, 21 Nov 2010 21:52:00 -0000
\r
56 On Sun, 21 Nov 2010, Michal Sojka wrote:
\r
57 > This is a great idea. Now I use this script to invoke notmuch remotely
\r
58 > and I don't have to create master connection manually.
\r
61 > socket="$HOME/.ssh/notmuch-connection"
\r
62 > if [[ ! -S $socket ]]; then
\r
63 > # Create master connection in background (the connection is closed
\r
64 > # after 10 minutes)
\r
65 > ssh -f -M -S $socket example.org sleep 600
\r
67 The above line must be changed to
\r
68 ssh -f -M -S $socket example.org sleep 600 >/dev/null 2>&1
\r
69 Without the redirections emacs blocks until the command closes stdout,
\r
70 which takes 10 minutes in this case.
\r
73 > printf -v args "%q " "$@"
\r
74 > ssh -S $socket example.org notmuch $args
\r