]> Pileus Git - ~andy/fetchmail/blobdiff - etrn.c
Add new gai.c debug source.
[~andy/fetchmail] / etrn.c
diff --git a/etrn.c b/etrn.c
index 2a7e1aca9c8407be9fadec94c09d2fc912132668..ac416c86c3bed7eeb7246c268f7f259c12d04f67 100644 (file)
--- a/etrn.c
+++ b/etrn.c
@@ -25,7 +25,8 @@ static int etrn_ok (int sock, char *argbuf)
 {
     int ok;
 
-    ok = SMTP_ok(sock);
+    (void)argbuf;
+    ok = SMTP_ok(sock, SMTP_MODE, TIMEOUT_DEFAULT);
     if (ok == SM_UNRECOVERABLE)
        return(PS_PROTOCOL);
     else
@@ -40,7 +41,8 @@ static int etrn_getrange(int sock, struct query *ctl, const char *id,
     char buf [MSGBUFSIZE+1];
     struct idlist *qnp;                /* pointer to Q names */
 
-    if ((ok = SMTP_ehlo(sock, fetchmailhost, 
+    (void)id;
+    if ((ok = SMTP_ehlo(sock, SMTP_MODE, fetchmailhost,
                        ctl->server.esmtp_name, ctl->server.esmtp_password,
                        &opts)))
     {
@@ -65,7 +67,7 @@ static int etrn_getrange(int sock, struct query *ctl, const char *id,
     for (qnp = ctl->domainlist; qnp; qnp = qnp->next)
     {
        /* ship the actual poll and get the response */
-       gen_send(sock, "ETRN %s", (char *)qnp->id);
+       gen_send(sock, "ETRN %s", qnp->id);
        if ((ok = gen_recv(sock, buf, sizeof(buf))))
            return(ok);
 
@@ -116,6 +118,7 @@ static int etrn_getrange(int sock, struct query *ctl, const char *id,
 static int etrn_logout(int sock, struct query *ctl)
 /* send logout command */
 {
+    (void)ctl;
     return(gen_transact(sock, "QUIT"));
 }
 
@@ -156,7 +159,7 @@ int doETRN (struct query *ctl)
        return(PS_SYNTAX);
     }
     if (ctl->mailboxes->id) {
-       fprintf(stderr, GT_("Option --remote is not supported with ETRN\n"));
+       fprintf(stderr, GT_("Option --folder is not supported with ETRN\n"));
        return(PS_SYNTAX);
     }
     if (check_only) {