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 5F83B429E25
\r
6 for <notmuch@notmuchmail.org>; Sat, 12 Nov 2011 02:02:19 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 5caut7ue2Nil for <notmuch@notmuchmail.org>;
\r
16 Sat, 12 Nov 2011 02:02:18 -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 A2E70431FB6
\r
21 for <notmuch@notmuchmail.org>; Sat, 12 Nov 2011 02:02:18 -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 pACA28nN005072; Sat, 12 Nov 2011 12:02:08 +0200
\r
25 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
26 To: Austin Clements <amdragon@MIT.EDU>, Tomi Ollila <tomi.ollila@iki.fi>
\r
27 Subject: Re: [PATCH] test: attempt to send QUIT to smtp-dummy in case mail
\r
29 In-Reply-To: <20111112024941.GY2658@mit.edu>
\r
30 References: <yf6ipmr7dki.fsf@taco2.nixu.fi> <20111112024941.GY2658@mit.edu>
\r
31 User-Agent: Notmuch/0.9+23~g556c5fa (http://notmuchmail.org) Emacs/23.3.1
\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
34 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
35 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
36 Date: Sat, 12 Nov 2011 12:02:08 +0200
\r
37 Message-ID: <yf662iplkv3.fsf@taco2.nixu.fi>
\r
39 Content-Type: text/plain; charset=us-ascii
\r
40 Cc: notmuch@notmuchmail.org
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Sat, 12 Nov 2011 10:02:19 -0000
\r
55 On Fri, 11 Nov 2011 21:49:41 -0500, Austin Clements <amdragon@MIT.EDU> wrote:
\r
56 > Good idea, but this introduces a dependency on netcat. Would it work
\r
57 > to simply kill the SMTP dummy?
\r
59 I cannot guarantee 6 nines of probability (but can guarantee as many eights
\r
62 Socket buffering and timing might cause smtp dummy to be killed before
\r
63 it has read all content...
\r
65 But... i recall bash has a way to do tcp stuff .../dev/tcp/host/port
\r
66 is mentioned in manual page.
\r
67 I'll investigate this later (or, anyone of you, provide a patch :)
\r
71 > Quoth Tomi Ollila on Nov 11 at 1:38 am:
\r
72 > > If mail sending from emacs fails before it has chance to connect
\r
73 > > to the smtp-dummy mail server, the opportunistic QUIT message
\r
74 > > sending makes smtp-dummy to exit.
\r
76 > > test/test-lib.sh | 8 +++++---
\r
77 > > 1 files changed, 5 insertions(+), 3 deletions(-)
\r
79 > > diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
80 > > index af723ad..57cb088 100755
\r
81 > > @@ -397,6 +397,8 @@ emacs_deliver_message ()
\r
82 > > (insert \"${body}\")
\r
84 > > (message-send-and-exit))" >/dev/null 2>&1
\r
85 > > + # opportunistically quit smtp-dummy in case above fails.
\r
86 > > + echo QUIT | nc 127.0.0.1 25025 >/dev/null 2>&1
\r
87 > > wait ${smtp_dummy_pid}
\r
88 > > notmuch new >/dev/null
\r
90 > _______________________________________________
\r
91 > notmuch mailing list
\r
92 > notmuch@notmuchmail.org
\r
93 > http://notmuchmail.org/mailman/listinfo/notmuch
\r