summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2016-01-01 11:15:11 -0700
committerJohn Denker <jsd@av8n.com>2016-01-01 16:33:22 -0800
commit4dabcdf185f53439af8fdf71bd2da7317336bcf0 (patch)
tree025c14d9ffdcbd2ebe2acc4e206fbdd18012d784
parentb755f33a9003da616a31c9f8896bedb63faef094 (diff)
revert some other local improvements -- unrevert soon
-rw-r--r--qmail-remote.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/qmail-remote.c b/qmail-remote.c
index 6941ba4..7d65473 100644
--- a/qmail-remote.c
+++ b/qmail-remote.c
@@ -222,17 +222,13 @@ void smtp()
int flagbother;
int i;
- code = smtpcode();
- if (code >= 500) quit("DConnected to "," but greeting failed");
- if (code != 220) quit("ZConnected to "," but greeting failed");
+ if (smtpcode() != 220) quit("ZConnected to "," but greeting failed");
substdio_puts(&smtpto,"HELO ");
substdio_put(&smtpto,helohost.s,helohost.len);
substdio_puts(&smtpto,"\r\n");
substdio_flush(&smtpto);
- code = smtpcode();
- if (code >= 500) quit("DConnected to "," but my name was rejected");
- if (code != 250) quit("ZConnected to "," but my name was rejected");
+ if (smtpcode() != 250) quit("ZConnected to "," but my name was rejected");
substdio_puts(&smtpto,"MAIL FROM:<");
substdio_put(&smtpto,sender.s,sender.len);