unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test: attempt to send QUIT to smtp-dummy in case mail send failed
@ 2011-11-10 23:38 Tomi Ollila
  2011-11-12  2:49 ` Austin Clements
  0 siblings, 1 reply; 12+ messages in thread
From: Tomi Ollila @ 2011-11-10 23:38 UTC (permalink / raw)
  To: notmuch

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
 }
-- 
1.5.6.5

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-11-18 14:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10 23:38 [PATCH] test: attempt to send QUIT to smtp-dummy in case mail send failed Tomi Ollila
2011-11-12  2:49 ` Austin Clements
2011-11-12 10:02   ` Tomi Ollila
2011-11-12 15:41     ` Austin Clements
2011-11-12 21:07       ` Tomi Ollila
2011-11-12 21:24         ` Jameson Graef Rollins
2011-11-16 12:44           ` Pieter Praet
2011-11-13  7:01         ` Dmitry Kurochkin
2011-11-13  8:44           ` Tomi Ollila
2011-11-16 21:25             ` [PATCH v2] " Tomi Ollila
2011-11-17 21:52               ` Austin Clements
2011-11-18 14:56               ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).