* static prototypes
*/
static int smtp_init (char *, char *, char *, int, int, int, int, int, int,
- int, char *, char *, int);
+ char *, char *, int);
static int sendmail_init (char *, char *, int, int, int, int, int, int,
- int, char *, char *);
+ char *, char *);
static int rclient (char *, char *);
static int sm_ierror (char *fmt, ...);
int
sm_init (char *client, char *server, char *port, int watch, int verbose,
- int debug, int onex, int queued, int sasl, int saslssf,
+ int debug, int queued, int sasl, int saslssf,
char *saslmech, char *user, int tls)
{
if (sm_mts == MTS_SMTP)
return smtp_init (client, server, port, watch, verbose,
- debug, onex, queued, sasl, saslssf, saslmech,
+ debug, queued, sasl, saslssf, saslmech,
user, tls);
else
return sendmail_init (client, server, watch, verbose,
- debug, onex, queued, sasl, saslssf, saslmech,
+ debug, queued, sasl, saslssf, saslmech,
user);
}
static int
smtp_init (char *client, char *server, char *port, int watch, int verbose,
- int debug, int onex, int queued,
+ int debug, int queued,
int sasl, int saslssf, char *saslmech, char *user, int tls)
{
int result, sd1, sd2;
send_options: ;
if (watch && EHLOset ("XVRB"))
smtalk (SM_HELO, "VERB on");
- if (onex && EHLOset ("XONE"))
- smtalk (SM_HELO, "ONEX");
if (queued && EHLOset ("XQUE"))
smtalk (SM_HELO, "QUED");
int
sendmail_init (char *client, char *server, int watch, int verbose,
- int debug, int onex, int queued,
+ int debug, int queued,
int sasl, int saslssf, char *saslmech, char *user)
{
unsigned int i, result, vecp;
}
#endif /* CYRUS_SASL */
- if (onex)
- smtalk (SM_HELO, "ONEX");
if (watch)
smtalk (SM_HELO, "VERB on");
* prototypes
*/
/* int client (); */
-int sm_init (char *, char *, char *, int, int, int, int, int, int, int, char *, char *, int);
+int sm_init (char *, char *, char *, int, int, int, int, int, int, char *, char *, int);
int sm_winit (char *);
int sm_wadr (char *, char *, char *);
int sm_waend (void);
static void
post (char *file, int bccque, int talk, char *envelope)
{
- int fd, onex;
+ int fd;
int retval, i;
pid_t child_id;
- onex = !(msgflags & MINV) || bccque;
if (verbose) {
if (msgflags & MINV)
printf (" -- Posting for %s Recipients --\n",
}
} else {
if (rp_isbad (retval = sm_init (clientsw, serversw, port, watch,
- verbose, snoop, onex, queued, sasl,
+ verbose, snoop, queued, sasl,
saslssf, saslmech, user, tls)) ||
rp_isbad (retval = sm_winit (envelope)))
die (NULL, "problem initializing server; %s", rp_string (retval));
close (fd);
fflush (stdout);
- sm_end (onex ? OK : DONE);
+ sm_end (OK);
sigoff ();
if (verbose) {
if (!whomsw || checksw)
if (rp_isbad (retval = sm_init (clientsw, serversw, port, watch,
- verbose, snoop, 0, queued, sasl,
+ verbose, snoop, queued, sasl,
saslssf, saslmech, user, tls))
|| rp_isbad (retval = sm_winit (envelope)))
die (NULL, "problem initializing server; %s", rp_string (retval));