X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmsgchk.c;h=4cfb5988206662f45f76f3bc6aafe71c15bcb97c;hb=2337d83d410d6a64ad7707fe7f093fc654f66e4f;hp=a9583513651f7a26de3cecdcc62a67b7ba4bfcd3;hpb=e37dc08079906b1b2737c3dad31fa507bdc66ecb;p=mmh diff --git a/uip/msgchk.c b/uip/msgchk.c index a958351..4cfb598 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -12,15 +12,7 @@ #include #include -#ifdef POP -# include -#endif - -#ifndef POP -# define POPminc(a) (a) -#else -# define POPminc(a) 0 -#endif +#include #ifndef CYRUS_SASL # define SASLminc(a) (a) @@ -38,11 +30,11 @@ static struct swit switches[] = { #define NNOTESW 3 { "nonotify type", 0 }, #define HOSTSW 4 - { "host hostname", POPminc (-4) }, + { "host hostname", 0 }, #define USERSW 5 - { "user username", POPminc (-4) }, + { "user username", 0 }, #define PORTSW 6 - { "port name/number", POPminc(-4) }, + { "port name/number", 0 }, #define VERSIONSW 7 { "version", 0 }, #define HELPSW 8 @@ -54,7 +46,7 @@ static struct swit switches[] = { #define SASLMECHSW 11 { "saslmech", SASLminc(-5) }, #define PROXYSW 12 - { "proxy command", POPminc(-5) }, + { "proxy command", 0 }, { NULL, 0 } }; @@ -85,11 +77,8 @@ static struct swit switches[] = { */ static int donote (char *, int); static int checkmail (char *, char *, int, int, int); - -#ifdef POP static int remotemail (char *, char *, char *, char *, int, int, int, int, char *); -#endif int @@ -103,11 +92,6 @@ main (int argc, char **argv) char **argp, **arguments, *vec[MAXVEC]; struct passwd *pw; -#ifdef HESIOD - struct hes_postoffice *po; - char *tmphost; -#endif - #ifdef LOCALE setlocale(LC_ALL, ""); #endif @@ -122,10 +106,8 @@ main (int argc, char **argv) arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; -#ifdef POP if ((cp = getenv ("MHPOPDEBUG")) && *cp) snoop++; -#endif while ((cp = *argp++)) { if (*cp == '-') { @@ -207,7 +189,6 @@ main (int argc, char **argv) vec[vecp++] = cp; } -#ifdef POP /* * If -host is not specified by user */ @@ -221,12 +202,10 @@ main (int argc, char **argv) } if (!host || !*host) host = NULL; -#endif /* POP */ if (vecp != 0) vec[vecp] = NULL; -#ifdef POP if (host) { if (vecp == 0) { status = remotemail (host, port, user, proxy, notifysw, 1, @@ -237,7 +216,6 @@ main (int argc, char **argv) snoop, sasl, saslmech); } } else { -#endif /* POP */ if (vecp == 0) { char *home; @@ -258,9 +236,7 @@ main (int argc, char **argv) advise (NULL, "no such user as %s", vec[vecp]); } } -#ifdef POP } /* host == NULL */ -#endif done (status); return 1; @@ -351,7 +327,6 @@ checkmail (char *user, char *home, int datesw, int notifysw, int personal) } -#ifdef POP extern char response[]; static int @@ -399,4 +374,3 @@ remotemail (char *host, char *port, char *user, char *proxy, int notifysw, return status; } -#endif /* POP */