{ "host hostname", POPminc (-4) },
#define USERSW 5
{ "user username", POPminc (-4) },
-#define PORTSW 8
+#define PORTSW 6
{ "port name/number", POPminc(-4) },
-#define VERSIONSW 10
+#define VERSIONSW 7
{ "version", 0 },
-#define HELPSW 11
+#define HELPSW 8
{ "help", 0 },
-#define SNOOPSW 12
+#define SNOOPSW 9
{ "snoop", -5 },
-#define SASLSW 14
+#define SASLSW 10
{ "sasl", SASLminc(-4) },
-#define SASLMECHSW 15
+#define SASLMECHSW 11
{ "saslmech", SASLminc(-5) },
-#define PROXYSW 16
+#define PROXYSW 12
{ "proxy command", POPminc(-5) },
{ NULL, 0 }
};
int datesw = 1, notifysw = NT_ALL;
int status = 0, sasl = 0;
int snoop = 0, vecp = 0;
- uid_t uid;
char *cp, *host = NULL, *port = NULL, *user, *proxy = NULL;
char buf[BUFSIZ], *saslmech = NULL;
char **argp, **arguments, *vec[MAXVEC];
context_read();
mts_init (invo_name);
- uid = getuid ();
user = getusername();
arguments = getarguments (invo_name, argc, argv, 1);
ruserpass (host, &user, &pass);
/* open the POP connection */
- if (pop_init (host, user, port, pass, proxy, snoop, sasl, saslmech) == NOTOK
+ if (pop_init (host, port, user, pass, proxy, snoop, sasl, saslmech) == NOTOK
|| pop_stat (&nmsgs, &nbytes) == NOTOK /* check for messages */
|| pop_quit () == NOTOK) { /* quit POP connection */
advise (NULL, "%s", response);