From: Thomas Jost Date: Mon, 3 Oct 2011 16:47:27 +0000 (+0200) Subject: test: make smtp-dummy work with Emacs 24 X-Git-Tag: 0.10_rc1~16 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=cb7270b27a4cef99fc4a3f5d44c461da5d622605 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. --- 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");