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.
This commit is contained in:
Thomas Jost 2011-10-03 18:47:27 +02:00 committed by David Bremner
parent 5964a760a5
commit cb7270b27a

View file

@ -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");