[PATCH 13/13] test: make smtp-dummy work with Emacs 24
authorThomas Jost <schnouki@schnouki.net>
Mon, 3 Oct 2011 16:47:27 +0000 (18:47 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:34 +0000 (09:39 -0800)
f9/71c77d77c400a87a7ae586ba57d4e1f21978ac [new file with mode: 0644]

diff --git a/f9/71c77d77c400a87a7ae586ba57d4e1f21978ac b/f9/71c77d77c400a87a7ae586ba57d4e1f21978ac
new file mode 100644 (file)
index 0000000..80ddae4
--- /dev/null
@@ -0,0 +1,78 @@
+Return-Path: <schnouki@schnouki.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id EBFA5431FB6\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Oct 2011 09:48:51 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id p4h9T+QH1bAe for <notmuch@notmuchmail.org>;\r
+       Mon,  3 Oct 2011 09:48:51 -0700 (PDT)\r
+Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
+       by olra.theworths.org (Postfix) with ESMTP id 401FA429E34\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Oct 2011 09:48:46 -0700 (PDT)\r
+Received: from localhost.localdomain (thor.loria.fr [152.81.12.250])\r
+       by ks3536.kimsufi.com (Postfix) with ESMTPSA id 8B6FA6A06B0;\r
+       Mon,  3 Oct 2011 18:48:45 +0200 (CEST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
+       s=key-schnouki; t=1317660525;\r
+       bh=snOq5YedbwRT7Qj/tcqHUpit5tlczVajrW8TDDhiooo=;\r
+       h=From:To:Subject:Date:Message-Id:In-Reply-To:References:\r
+       In-Reply-To:References;\r
+       b=G0j/XQmgSiirE7SIa9zc3c1lyAXPKSPo3Q+VXV2O8oNgzZKS9T1qEl6MLfPK1iRbc\r
+       UOZwUrBD79WAcW/yR1Dv51VaNl7Y31aFazSmw5RXJMEuW7ErfXyaU7Hnh8rM1QEzls\r
+       IK4X8tiWgdYeHGddTR4e1kM68bTNS2rnyqyjhnkQ=\r
+From: Thomas Jost <schnouki@schnouki.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 13/13] test: make smtp-dummy work with Emacs 24\r
+Date: Mon,  3 Oct 2011 18:47:27 +0200\r
+Message-Id: <1317660447-27520-14-git-send-email-schnouki@schnouki.net>\r
+X-Mailer: git-send-email 1.7.6.4\r
+In-Reply-To: <1317660447-27520-1-git-send-email-schnouki@schnouki.net>\r
+References: <1317660447-27520-1-git-send-email-schnouki@schnouki.net>\r
+In-Reply-To: <871uuuywtt.fsf@convex-new.cs.unb.ca>\r
+References: <871uuuywtt.fsf@convex-new.cs.unb.ca>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 03 Oct 2011 16:48:52 -0000\r
+\r
+In Emacs 24, a space is expected after a SMTP response code. If we don't respect\r
+that, smtpmail-send-it will wait forever.\r
+---\r
+ test/smtp-dummy.c |    2 +-\r
+ 1 files changed, 1 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c\r
+index 9da8202..021af11 100644\r
+--- a/test/smtp-dummy.c\r
++++ b/test/smtp-dummy.c\r
+@@ -71,7 +71,7 @@ static int\r
+ process_command (FILE *peer, FILE *output, const char *command)\r
+ {\r
+       if (STRNCMP_LITERAL (command, "EHLO ") == 0) {\r
+-              fprintf (peer, "502\r\n");\r
++              fprintf (peer, "502 not implemented\r\n");\r
+               fflush (peer);\r
+       } else if (STRNCMP_LITERAL (command, "HELO ") == 0) {\r
+               fprintf (peer, "250 localhost\r\n");\r
+-- \r
+1.7.6.4\r
+\r