- strcat (buf1, "\r\n");
- SockWrite (sock, buf1, strlen (buf1));
-
- if ((result = gen_recv (sock, buf1, sizeof (buf1))))
- return result;
-
- /*
- * Ugh. This has to recognize all kinds of success lines.
- * These two tests will catch IMAP and POP OK or SMTP-like
- * protocols that use 2xx as a success indication.
- */
- if (buf1[0] = '2' || strstr(buf1, "OK"))