Pass some globals into sm_init() so that it uses SASL if necessary.
[mmh] / uip / post.c
index 37db5f9..aff49a0 100644 (file)
@@ -3,6 +3,10 @@
  * post.c -- enter messages into the mail transport system
  *
  * $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
@@ -1473,8 +1477,8 @@ verify_all_addresses (int talk)
     sigon ();
 
     if (!whomsw || checksw)
-       if (rp_isbad (retval = sm_init (clientsw, serversw, 0, 0, snoop, 0,
-                                       0, 0, 0, 0))
+       if (rp_isbad (retval = sm_init (clientsw, serversw, watch, verbose, snoop, 0,
+                                       queued, sasl, saslmech, user))
                || rp_isbad (retval = sm_winit (smtpmode, from)))
            die (NULL, "problem initializing server; %s", rp_string (retval));