diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-16 16:38:34 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-16 16:38:34 +0000 |
commit | d29f00801f0c468640792ca5888c4f7b16f94254 (patch) | |
tree | ed7917d15bad1ba0477cbf2d4abdac29749577a2 /driver.c | |
parent | a147a777842e22c5ef0ca1ca86cfe61f952056a4 (diff) | |
download | fetchmail-d29f00801f0c468640792ca5888c4f7b16f94254.tar.gz fetchmail-d29f00801f0c468640792ca5888c4f7b16f94254.tar.bz2 fetchmail-d29f00801f0c468640792ca5888c4f7b16f94254.zip |
Include Cameron McPherson's patch for handling multi-line SMTP responses.
svn path=/trunk/; revision=545
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -242,7 +242,7 @@ static FILE *smtp_open(struct query *ctl) { if ((ctl->smtp_sockfp = Socket(ctl->smtphost, SMTP_PORT)) == (FILE *)NULL) return((FILE *)NULL); - else if (SMTP_ok(ctl->smtp_sockfp, NULL) != SM_OK + else if (SMTP_ok(ctl->smtp_sockfp) != SM_OK || SMTP_helo(ctl->smtp_sockfp, ctl->servername) != SM_OK) { fclose(ctl->smtp_sockfp); @@ -436,7 +436,7 @@ struct query *ctl; /* query control record */ { char *ap; - if (ctl->mda[0] == '\0' && ((sinkfp = smtp_open(ctl)) < 0)) + if (ctl->mda[0] == '\0' && ((sinkfp = smtp_open(ctl)) == NULL)) { free_uid_list(&xmit_names); fprintf(stderr, "fetchmail: SMTP connect failed\n"); |