1 Return-Path: <amdragon@mit.edu>
\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 5BEA7429E25
\r
6 for <notmuch@notmuchmail.org>; Fri, 11 Nov 2011 18:47:19 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 QbjM0JlbcLJT for <notmuch@notmuchmail.org>;
\r
16 Fri, 11 Nov 2011 18:47:19 -0800 (PST)
\r
17 Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id DC590431FB6
\r
20 for <notmuch@notmuchmail.org>; Fri, 11 Nov 2011 18:47:18 -0800 (PST)
\r
21 X-AuditID: 1209190e-b7f4a6d0000008e5-cc-4ebdde36a712
\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])
\r
23 by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 6E.D3.02277.63EDDBE4; Fri, 11 Nov 2011 21:47:18 -0500 (EST)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id pAC2lH8k005455;
\r
27 Fri, 11 Nov 2011 21:47:18 -0500
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pAC2lGiF005622
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Fri, 11 Nov 2011 21:47:17 -0500 (EST)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1RP3f3-0005K1-HK; Fri, 11 Nov 2011 21:49:41 -0500
\r
37 Date: Fri, 11 Nov 2011 21:49:41 -0500
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: Tomi Ollila <tomi.ollila@iki.fi>
\r
40 Subject: Re: [PATCH] test: attempt to send QUIT to smtp-dummy in case mail
\r
42 Message-ID: <20111112024941.GY2658@mit.edu>
\r
43 References: <yf6ipmr7dki.fsf@taco2.nixu.fi>
\r
45 Content-Type: text/plain; charset=us-ascii
\r
46 Content-Disposition: inline
\r
47 In-Reply-To: <yf6ipmr7dki.fsf@taco2.nixu.fi>
\r
48 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
49 X-Brightmail-Tracker:
\r
50 H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IR4hRV1jW7t9fPoOG+ksX1mzOZLd6snMfq
\r
51 wORx+OtCFo9nq24xBzBFcdmkpOZklqUW6dslcGVseH6LuWAvW8WuO9/YGxgbWLsYOTkkBEwk
\r
52 Dvw7wgRhi0lcuLeerYuRi0NIYB+jxN8lb9khnA2MEpuvLWGEcE4ySbx8P4UVwlnCKHH2xSJG
\r
53 kH4WAVWJpQ8Xgc1iE9CQ2LZ/OVhcREBF4kHberB9zALSEt9+N4PVCAtESOw7v4UNxOYV0Jbo
\r
54 2LYALC4EZM/fcx0qLihxcuYTFoheLYkb/14C1XCAzVn+jwPE5BTQkTi0SBukQhRo05ST29gm
\r
55 MArNQtI8C0nzLITmBYzMqxhlU3KrdHMTM3OKU5N1i5MT8/JSi3SN9XIzS/RSU0o3MYLDWpJv
\r
56 B+PXg0qHGAU4GJV4eBck7fUTYk0sK67MPcQoycGkJMr75A5QiC8pP6UyI7E4I76oNCe1+BCj
\r
57 BAezkghv51ygHG9KYmVValE+TEqag0VJnHf1Dgc/IYH0xJLU7NTUgtQimKwMB4eSBO/iu0CN
\r
58 gkWp6akVaZk5JQhpJg5OkOE8QMNngdTwFhck5hZnpkPkTzEqSonzLgBJCIAkMkrz4HphaecV
\r
59 ozjQK8K8kdeAqniAKQuu+xXQYCagwSwKYINLEhFSUg2MyyaysEsuM1or0z9V5X5Ix0MT8Xlx
\r
60 9+xudMa6Htg0vdfwQsybGbm7TVcW1FwwbFL6p34sdcX18ycsWFqzLHjUfKct8zE1CnlYl/7f
\r
61 8vdqY+Hc7XnOMptT3M6c/6i1+Brv3YcmKhzqpilef9yLHW7VzGkKZZdu7o1LXpi7tz9rk6CI
\r
62 1tf+0AIlluKMREMt5qLiRADiw7wjFgMAAA==
\r
63 Cc: notmuch@notmuchmail.org
\r
64 X-BeenThere: notmuch@notmuchmail.org
\r
65 X-Mailman-Version: 2.1.13
\r
67 List-Id: "Use and development of the notmuch mail system."
\r
68 <notmuch.notmuchmail.org>
\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
72 List-Post: <mailto:notmuch@notmuchmail.org>
\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
75 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
76 X-List-Received-Date: Sat, 12 Nov 2011 02:47:19 -0000
\r
78 Good idea, but this introduces a dependency on netcat. Would it work
\r
79 to simply kill the SMTP dummy?
\r
81 Quoth Tomi Ollila on Nov 11 at 1:38 am:
\r
82 > If mail sending from emacs fails before it has chance to connect
\r
83 > to the smtp-dummy mail server, the opportunistic QUIT message
\r
84 > sending makes smtp-dummy to exit.
\r
86 > test/test-lib.sh | 8 +++++---
\r
87 > 1 files changed, 5 insertions(+), 3 deletions(-)
\r
89 > diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
90 > index af723ad..57cb088 100755
\r
91 > @@ -397,6 +397,8 @@ emacs_deliver_message ()
\r
92 > (insert \"${body}\")
\r
94 > (message-send-and-exit))" >/dev/null 2>&1
\r
95 > + # opportunistically quit smtp-dummy in case above fails.
\r
96 > + echo QUIT | nc 127.0.0.1 25025 >/dev/null 2>&1
\r
97 > wait ${smtp_dummy_pid}
\r
98 > notmuch new >/dev/null
\r