diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-07-03 03:16:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-07-03 03:16:16 +0000 |
commit | 38a50aa15463362c59af69ac80e95f713bad27e3 (patch) | |
tree | 655d6852047f90c13b447b27572eba5ab2ea2035 /pop3.c | |
parent | 9aafb07f141bbd1cae1395e34fe3d064918c6712 (diff) | |
download | fetchmail-38a50aa15463362c59af69ac80e95f713bad27e3.tar.gz fetchmail-38a50aa15463362c59af69ac80e95f713bad27e3.tar.bz2 fetchmail-38a50aa15463362c59af69ac80e95f713bad27e3.zip |
Merged hostrec and option structures.
svn path=/trunk/; revision=27
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -51,7 +51,6 @@ int POP3_BuildDigest (char *buf, struct optrec *options); using Post Office Protocol 3. arguments: - servername name of server to which we'll connect. options fully-specified options (i.e. parsed, defaults invoked, etc). @@ -61,8 +60,7 @@ int POP3_BuildDigest (char *buf, struct optrec *options); globals: reads outlevel. *********************************************************************/ -int doPOP3 (servername,options) -char *servername; +int doPOP3 (options) struct optrec *options; { int ok; @@ -78,7 +76,7 @@ struct optrec *options; return(PS_IOERR); /* open the socket and get the greeting */ - if ((socket = Socket(servername,POP3_PORT)) < 0) { + if ((socket = Socket(options->servername,POP3_PORT)) < 0) { perror("doPOP3: socket"); ok = PS_SOCKET; goto closeUp; @@ -167,7 +165,7 @@ struct optrec *options; goto cleanUp; if (number >= first || options->fetchall) - ok = POP3_readmsg(socket,mboxfd,servername,options->output == TO_MDA); + ok = POP3_readmsg(socket,mboxfd,options->servername,options->output == TO_MDA); else ok = 0; if (ok != 0) |