Re: [PATCH 4/4] setup: prompt user for search.exclude_tags value
[notmuch-archives.git] / 6f / 3136057e0f7de56ea1b29bd9d48ab00d75ea42
1 Return-Path: <tomi.ollila@nixu.com>\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 C9E2A429E21\r
6         for <notmuch@notmuchmail.org>; Wed, 16 Nov 2011 13:25:21 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 qciBuYLynhox for <notmuch@notmuchmail.org>;\r
16         Wed, 16 Nov 2011 13:25:21 -0800 (PST)\r
17 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 0BA8F431FD0\r
21         for <notmuch@notmuchmail.org>; Wed, 16 Nov 2011 13:25:20 -0800 (PST)\r
22 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
23         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
24         pAGLPJv1010829\r
25         for <notmuch@notmuchmail.org>; Wed, 16 Nov 2011 23:25:19 +0200\r
26 From: Tomi Ollila <tomi.ollila@iki.fi>\r
27 To: notmuch@notmuchmail.org\r
28 Subject: [PATCH v2] test: attempt to send QUIT to smtp-dummy in case mail send\r
29         failed\r
30 In-Reply-To: <yf6mxc0za1u.fsf@taco2.nixu.fi>\r
31 References: <yf6ipmr7dki.fsf@taco2.nixu.fi> <20111112024941.GY2658@mit.edu>\r
32         <yf662iplkv3.fsf@taco2.nixu.fi> <20111112154128.GB2658@mit.edu>\r
33         <yf639dthwx1.fsf@taco2.nixu.fi> <8739ds33qz.fsf@gmail.com>\r
34         <yf6mxc0za1u.fsf@taco2.nixu.fi>\r
35 User-Agent: Notmuch/0.9+73~ged20210 (http://notmuchmail.org) Emacs/23.3.1\r
36         (i686-pc-linux-gnu)\r
37 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
38         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
39         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
40 Date: Wed, 16 Nov 2011 23:25:19 +0200\r
41 Message-ID: <yf639dnsqtc.fsf@taco2.nixu.fi>\r
42 MIME-Version: 1.0\r
43 Content-Type: text/plain; charset=us-ascii\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Wed, 16 Nov 2011 21:25:21 -0000\r
57 \r
58 If mail sending from emacs fails before it has chance to connect\r
59 to the smtp-dummy mail server, the opportunistic QUIT message\r
60 sending makes smtp-dummy to exit.\r
61 ---\r
62 \r
63 Version 2 of the same feature. Now uses BASH's /dev/tcp/host/port \r
64 feature instead of external 'nc' command.\r
65 \r
66  test/test-lib.sh |    2 ++\r
67  1 files changed, 2 insertions(+), 0 deletions(-)\r
68 \r
69 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
70 index 1ea7fa9..749d087 100755\r
71 --- a/test/test-lib.sh\r
72 +++ b/test/test-lib.sh\r
73 @@ -395,6 +395,8 @@ emacs_deliver_message ()\r
74            (insert \"${body}\")\r
75            $@\r
76            (message-send-and-exit))"\r
77 +    # opportunistically quit smtp-dummy in case above fails.\r
78 +    { echo QUIT > /dev/tcp/localhost/25025; } 2>/dev/null\r
79      wait ${smtp_dummy_pid}\r
80      notmuch new >/dev/null\r
81  }\r
82 --\r
83 1.7.7.3\r
84 \r