From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5BEA7429E25 for ; Fri, 11 Nov 2011 18:47:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QbjM0JlbcLJT for ; Fri, 11 Nov 2011 18:47:19 -0800 (PST) Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU [18.9.25.14]) by olra.theworths.org (Postfix) with ESMTP id DC590431FB6 for ; Fri, 11 Nov 2011 18:47:18 -0800 (PST) X-AuditID: 1209190e-b7f4a6d0000008e5-cc-4ebdde36a712 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id 6E.D3.02277.63EDDBE4; Fri, 11 Nov 2011 21:47:18 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id pAC2lH8k005455; Fri, 11 Nov 2011 21:47:18 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pAC2lGiF005622 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Fri, 11 Nov 2011 21:47:17 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1RP3f3-0005K1-HK; Fri, 11 Nov 2011 21:49:41 -0500 Date: Fri, 11 Nov 2011 21:49:41 -0500 From: Austin Clements To: Tomi Ollila Subject: Re: [PATCH] test: attempt to send QUIT to smtp-dummy in case mail send failed Message-ID: <20111112024941.GY2658@mit.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IR4hRV1jW7t9fPoOG+ksX1mzOZLd6snMfq wORx+OtCFo9nq24xBzBFcdmkpOZklqUW6dslcGVseH6LuWAvW8WuO9/YGxgbWLsYOTkkBEwk Dvw7wgRhi0lcuLeerYuRi0NIYB+jxN8lb9khnA2MEpuvLWGEcE4ySbx8P4UVwlnCKHH2xSJG kH4WAVWJpQ8Xgc1iE9CQ2LZ/OVhcREBF4kHberB9zALSEt9+N4PVCAtESOw7v4UNxOYV0Jbo 2LYALC4EZM/fcx0qLihxcuYTFoheLYkb/14C1XCAzVn+jwPE5BTQkTi0SBukQhRo05ST29gm MArNQtI8C0nzLITmBYzMqxhlU3KrdHMTM3OKU5N1i5MT8/JSi3SN9XIzS/RSU0o3MYLDWpJv B+PXg0qHGAU4GJV4eBck7fUTYk0sK67MPcQoycGkJMr75A5QiC8pP6UyI7E4I76oNCe1+BCj BAezkghv51ygHG9KYmVValE+TEqag0VJnHf1Dgc/IYH0xJLU7NTUgtQimKwMB4eSBO/iu0CN gkWp6akVaZk5JQhpJg5OkOE8QMNngdTwFhck5hZnpkPkTzEqSonzLgBJCIAkMkrz4HphaecV ozjQK8K8kdeAqniAKQuu+xXQYCagwSwKYINLEhFSUg2MyyaysEsuM1or0z9V5X5Ix0MT8Xlx 9+xudMa6Htg0vdfwQsybGbm7TVcW1FwwbFL6p34sdcX18ycsWFqzLHjUfKct8zE1CnlYl/7f 8vdqY+Hc7XnOMptT3M6c/6i1+Brv3YcmKhzqpilef9yLHW7VzGkKZZdu7o1LXpi7tz9rk6CI 1tf+0AIlluKMREMt5qLiRADiw7wjFgMAAA== Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2011 02:47:19 -0000 Good idea, but this introduces a dependency on netcat. Would it work to simply kill the SMTP dummy? Quoth Tomi Ollila on Nov 11 at 1:38 am: > If mail sending from emacs fails before it has chance to connect > to the smtp-dummy mail server, the opportunistic QUIT message > sending makes smtp-dummy to exit. > --- > test/test-lib.sh | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/test/test-lib.sh b/test/test-lib.sh > index af723ad..57cb088 100755 > @@ -397,6 +397,8 @@ emacs_deliver_message () > (insert \"${body}\") > $@ > (message-send-and-exit))" >/dev/null 2>&1 > + # opportunistically quit smtp-dummy in case above fails. > + echo QUIT | nc 127.0.0.1 25025 >/dev/null 2>&1 > wait ${smtp_dummy_pid} > notmuch new >/dev/null > }