From cb7270b27a4cef99fc4a3f5d44c461da5d622605 Mon Sep 17 00:00:00 2001 From: Thomas Jost Date: Mon, 3 Oct 2011 18:47:27 +0200 Subject: [PATCH] test: make smtp-dummy work with Emacs 24 In Emacs 24, a space is expected after a SMTP response code. If we don't respect that, smtpmail-send-it will wait forever. --- test/smtp-dummy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/smtp-dummy.c b/test/smtp-dummy.c index 1778a457..3801a5e0 100644 --- a/test/smtp-dummy.c +++ b/test/smtp-dummy.c @@ -71,7 +71,7 @@ static int process_command (FILE *peer, FILE *output, const char *command) { if (STRNCMP_LITERAL (command, "EHLO ") == 0) { - fprintf (peer, "502\r\n"); + fprintf (peer, "502 not implemented\r\n"); fflush (peer); } else if (STRNCMP_LITERAL (command, "HELO ") == 0) { fprintf (peer, "250 localhost\r\n");