- { "user username", POPminc (-4) },
-#define PORTSW 8
- { "port name/number", POPminc(-4) },
-#define VERSIONSW 10
+ { "user username", 0 },
+#define PORTSW 6
+ { "port name/number", 0 },
+#define VERSIONSW 7
*/
static int donote (char *, int);
static int checkmail (char *, char *, int, int, int);
*/
static int donote (char *, int);
static int checkmail (char *, char *, int, int, int);
static int remotemail (char *, char *, char *, char *, int, int, int, int,
char *);
static int remotemail (char *, char *, char *, char *, int, int, int, int,
char *);
int datesw = 1, notifysw = NT_ALL;
int status = 0, sasl = 0;
int snoop = 0, vecp = 0;
int datesw = 1, notifysw = NT_ALL;
int status = 0, sasl = 0;
int snoop = 0, vecp = 0;
char *cp, *host = NULL, *port = NULL, *user, *proxy = NULL;
char buf[BUFSIZ], *saslmech = NULL;
char **argp, **arguments, *vec[MAXVEC];
struct passwd *pw;
char *cp, *host = NULL, *port = NULL, *user, *proxy = NULL;
char buf[BUFSIZ], *saslmech = NULL;
char **argp, **arguments, *vec[MAXVEC];
struct passwd *pw;
user = getusername();
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
user = getusername();
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
snprintf (buf, sizeof(buf), "%s [switches] [users ...]",
invo_name);
print_help (buf, switches, 1);
snprintf (buf, sizeof(buf), "%s [switches] [users ...]",
invo_name);
print_help (buf, switches, 1);
if (host) {
if (vecp == 0) {
status = remotemail (host, port, user, proxy, notifysw, 1,
if (host) {
if (vecp == 0) {
status = remotemail (host, port, user, proxy, notifysw, 1,
ruserpass (host, &user, &pass);
/* open the POP connection */
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);
|| pop_stat (&nmsgs, &nbytes) == NOTOK /* check for messages */
|| pop_quit () == NOTOK) { /* quit POP connection */
advise (NULL, "%s", response);