diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-09-12 11:59:39 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-09-12 11:59:39 +0000 |
commit | c64bc78c091837def7820299eb99ed51a21570d8 (patch) | |
tree | 11f97f7a8dfc7f910e62538f840040e233fa0ea3 /pop2.c | |
parent | 3490078bdc134e2464dfb35711b6e08dfad7a8da (diff) | |
download | fetchmail-c64bc78c091837def7820299eb99ed51a21570d8.tar.gz fetchmail-c64bc78c091837def7820299eb99ed51a21570d8.tar.bz2 fetchmail-c64bc78c091837def7820299eb99ed51a21570d8.zip |
Added port-specification option.
svn path=/trunk/; revision=87
Diffstat (limited to 'pop2.c')
-rw-r--r-- | pop2.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -84,17 +84,17 @@ struct hostrec *queryctl; fprintf(stderr,"Option --all is not supported with POP2\n"); return(PS_SYNTAX); } -#ifdef FOO else if (queryctl->smtphost[0]) { fprintf(stderr,"Option --smtphost is not supported with POP2\n"); return(PS_SYNTAX); } -#endif /* FOO */ else ; /* open the socket to the POP server */ - if ((socket = Socket(queryctl->servername,POP2_PORT)) < 0) { + if ((socket = Socket(queryctl->servername, + queryctl->port ? queryctl->port : POP2_PORT)) < 0) + { perror("doPOP2: socket"); return(PS_SOCKET); } |