X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpopi.c;h=e26e346ee6760503a609d2b12a02eb40d8e6847b;hb=eda249e4fdf983daef578a79a959d16dc9d5936e;hp=2fae38164b4f6b8eca626d840bff9fa3490a587a;hpb=8f4c5da8971926f7eccc912f7998c343aef3c33b;p=mmh diff --git a/uip/popi.c b/uip/popi.c index 2fae381..e26e346 100644 --- a/uip/popi.c +++ b/uip/popi.c @@ -3,12 +3,16 @@ * popi.c -- POP initiator for MPOP * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include #include #include -#include +#include #include #ifndef RPOP @@ -76,7 +80,6 @@ static char mailname[BUFSIZ]; static char *nfs = NULL; static struct msgs *mp; -extern int errno; extern char response[]; /* @@ -211,7 +214,7 @@ main (int argc, char **argv) } snprintf (mailname, sizeof(mailname), "PO box for %s@%s", user, host); - if (pop_init (host, user, pass, snoop, rpop) == NOTOK) + if (pop_init (host, user, pass, NULL, snoop, rpop) == NOTOK) adios (NULL, "%s", response); if (rpop > 0) setuid (getuid ()); @@ -515,7 +518,7 @@ msh (void) #ifdef SMTPMTS -#include +#include #include static int