#include <h/mh.h>
#include <mts/smtp/smtp.h>
-#include <zotnet/mts/mts.h>
+#include <mts/generic/mts.h>
#include <signal.h>
+#include "h/signals.h" /* for SIGNAL() */
+#ifdef MPOP
+#include <errno.h>
+#endif
/*
* This module implements an interface to SendMail very similar
struct smtp sm_reply; /* global... */
-#ifdef MPOP
-extern int errno;
-#endif
-
static int doingEHLO;
#define MAXEHLO 20
int
sm_init (char *client, char *server, int watch, int verbose,
- int debug, int onex, int queued)
+ int debug, int onex, int queued, int sasl, char *saslmech, char *user)
{
int i, result, vecp;
int pdi[2], pdo[2];
if (sm_rfp != NULL && sm_wfp != NULL)
return RP_OK;
- if (client == NULL || *client == '\0')
+ if (client == NULL || *client == '\0') {
if (clientname)
client = clientname;
else
client = LocalName(); /* no clientname -> LocalName */
+ }
#ifdef ZMAILER
if (client == NULL || *client == '\0')