]> diplodocus.org Git - nmh/blobdiff - test/fakesmtp.c
Add -initialtls/-notls flags to msgchk.
[nmh] / test / fakesmtp.c
index 42d4f181ded9b31a422bc5192a7c063601e60383..449fdec0ee908d5b9ccc8aa7d2a80ccdccc5a607 100644 (file)
@@ -101,7 +101,11 @@ main(int argc, char *argv[])
                        smtp_state = SMTP_DATA;
                        continue;
                }
                        smtp_state = SMTP_DATA;
                        continue;
                }
-               if (xoauth != NULL) {
+               if (xoauth == NULL) {
+                       putcrlf(conn, "250-ready");
+                       putcrlf(conn, "250-8BITMIME");
+                       putcrlf(conn, "250-SMTPUTF8");
+               } else {
                        /* XOAUTH2 support enabled; handle EHLO and AUTH. */
                        if (strncmp(line, "EHLO", 4) == 0) {
                                putcrlf(conn, "250-ready");
                        /* XOAUTH2 support enabled; handle EHLO and AUTH. */
                        if (strncmp(line, "EHLO", 4) == 0) {
                                putcrlf(conn, "250-ready");