Re: [PATCH] Implement a simple read-eval-print loop.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 21 Nov 2010 21:51:29 +0000 (22:51 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:34 +0000 (09:37 -0800)
a6/150a574d7d54182f4b5baa5f5097d99db57045 [new file with mode: 0644]

diff --git a/a6/150a574d7d54182f4b5baa5f5097d99db57045 b/a6/150a574d7d54182f4b5baa5f5097d99db57045
new file mode 100644 (file)
index 0000000..47ebaa9
--- /dev/null
@@ -0,0 +1,74 @@
+Return-Path: <sojkam1@fel.cvut.cz>\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 A0DBC40DF1E\r
+       for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 13:52:00 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9] autolearn=ham\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 AR6CRV2H2D+Y for <notmuch@notmuchmail.org>;\r
+       Sun, 21 Nov 2010 13:51:50 -0800 (PST)\r
+Received: from smtp.nextra.cz (smtp.nextra.cz [212.65.193.3])\r
+       by olra.theworths.org (Postfix) with ESMTP id 91D5240DF18\r
+       for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 13:51:50 -0800 (PST)\r
+Received: from resox.2x.cz (unknown [213.29.198.144])\r
+       by smtp.nextra.cz (Postfix) with ESMTP id 786179B7BF;\r
+       Sun, 21 Nov 2010 22:51:49 +0100 (CET)\r
+Received: from wsh by resox.2x.cz with local (Exim 4.72)\r
+       (envelope-from <sojkam1@fel.cvut.cz>)\r
+       id 1PKHox-0005y0-6f; Sun, 21 Nov 2010 22:51:39 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: Austin Clements <amdragon@gmail.com>, servilio <servilio@gmail.com>\r
+Subject: Re: [PATCH] Implement a simple read-eval-print loop.\r
+In-Reply-To: <87y68mbcye.fsf@resox.2x.cz>\r
+References: <AANLkTi=7eCt0=NqUiJFrGDcaZ17LOd3qNNqN1-ASwYzr@mail.gmail.com>\r
+       <87sjyvk875.fsf@wsheee.2x.cz>\r
+       <AANLkTin_6A1qnuFpE9oPXySA0j5jTV-tq=BbqSNMPWfb@mail.gmail.com>\r
+       <AANLkTikMUhmEQjSLj3Uys9iBU1r8G22TuT337y1N3ZrJ@mail.gmail.com>\r
+       <87y68mbcye.fsf@resox.2x.cz>\r
+User-Agent: Notmuch/0.5-11-g48b5e00 (http://notmuchmail.org) Emacs/23.2.1\r
+       (i486-pc-linux-gnu)\r
+Date: Sun, 21 Nov 2010 22:51:29 +0100\r
+Message-ID: <87vd3qbb1a.fsf@resox.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: notmuch <notmuch@notmuchmail.org>\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: Sun, 21 Nov 2010 21:52:00 -0000\r
+\r
+On Sun, 21 Nov 2010, Michal Sojka wrote:\r
+> This is a great idea. Now I use this script to invoke notmuch remotely\r
+> and I don't have to create master connection manually.\r
+> \r
+> #!/bin/bash\r
+> socket="$HOME/.ssh/notmuch-connection"\r
+> if [[ ! -S $socket ]]; then\r
+>     # Create master connection in background (the connection is closed\r
+>     # after 10 minutes)\r
+>     ssh -f -M -S $socket example.org sleep 600\r
+\r
+The above line must be changed to \r
+     ssh -f -M -S $socket example.org sleep 600 >/dev/null 2>&1\r
+Without the redirections emacs blocks until the command closes stdout,\r
+which takes 10 minutes in this case.\r
+\r
+> fi\r
+> printf -v args "%q " "$@"\r
+> ssh -S $socket example.org notmuch $args\r