summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-05-10 08:02:18 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-05-10 08:02:18 +0000
commit91409e034831b8132183dce5ab80233b821da23a (patch)
tree5a3ea0285fa59abe39a100e492be0b50f20c3cec /imap
parentab8397b2b8ebf470fb90e08521274677091efefc (diff)
A slightly extended version of Dave Ewart's sleeptime patch.
Diffstat (limited to 'imap')
-rw-r--r--imap/auth_anon.c2
-rw-r--r--imap/auth_cram.c2
-rw-r--r--imap/auth_gss.c2
-rw-r--r--imap/auth_login.c2
-rw-r--r--imap/auth_sasl.c2
-rw-r--r--imap/browse.c2
-rw-r--r--imap/command.c4
-rw-r--r--imap/imap.c8
-rw-r--r--imap/message.c6
-rw-r--r--imap/util.c2
10 files changed, 16 insertions, 16 deletions
diff --git a/imap/auth_anon.c b/imap/auth_anon.c
index 78d6f932..7d60e017 100644
--- a/imap/auth_anon.c
+++ b/imap/auth_anon.c
@@ -67,6 +67,6 @@ imap_auth_res_t imap_auth_anon (IMAP_DATA* idata)
bail:
mutt_error _("Anonymous authentication failed.");
- sleep (2);
+ mutt_sleep (2);
return IMAP_AUTH_FAILURE;
}
diff --git a/imap/auth_cram.c b/imap/auth_cram.c
index 07bf6e89..741e26c6 100644
--- a/imap/auth_cram.c
+++ b/imap/auth_cram.c
@@ -122,7 +122,7 @@ imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA* idata)
bail:
mutt_error _("CRAM-MD5 authentication failed.");
- sleep (2);
+ mutt_sleep (2);
return IMAP_AUTH_FAILURE;
}
diff --git a/imap/auth_gss.c b/imap/auth_gss.c
index 1cc46641..a269230c 100644
--- a/imap/auth_gss.c
+++ b/imap/auth_gss.c
@@ -260,6 +260,6 @@ imap_auth_res_t imap_auth_gss (IMAP_DATA* idata)
bail:
mutt_error _("GSSAPI authentication failed.");
- sleep (2);
+ mutt_sleep (2);
return IMAP_AUTH_FAILURE;
}
diff --git a/imap/auth_login.c b/imap/auth_login.c
index 212d7fde..9bdbb9fe 100644
--- a/imap/auth_login.c
+++ b/imap/auth_login.c
@@ -61,6 +61,6 @@ imap_auth_res_t imap_auth_login (IMAP_DATA* idata)
return IMAP_AUTH_SUCCESS;
mutt_error _("Login failed.");
- sleep (2);
+ mutt_sleep (2);
return IMAP_AUTH_FAILURE;
}
diff --git a/imap/auth_sasl.c b/imap/auth_sasl.c
index 75d0659c..7eb78131 100644
--- a/imap/auth_sasl.c
+++ b/imap/auth_sasl.c
@@ -162,7 +162,7 @@ imap_auth_res_t imap_auth_sasl (IMAP_DATA* idata)
bail:
mutt_error _("SASL authentication failed.");
- sleep(2);
+ mutt_sleep(2);
sasl_dispose (&saslconn);
return IMAP_AUTH_FAILURE;
diff --git a/imap/browse.c b/imap/browse.c
index 2ed91a06..284ba2dd 100644
--- a/imap/browse.c
+++ b/imap/browse.c
@@ -270,7 +270,7 @@ int imap_mailbox_create (const char* folder)
goto fail;
mutt_message _("Mailbox created.");
- sleep (1);
+ mutt_sleep (0);
FREE (&mx.mbox);
return 0;
diff --git a/imap/command.c b/imap/command.c
index 32a6405a..61dd622b 100644
--- a/imap/command.c
+++ b/imap/command.c
@@ -216,7 +216,7 @@ int imap_exec (IMAP_DATA* idata, const char* cmd, int flags)
pc = idata->cmd.buf;
pc = imap_next_word (pc);
mutt_error ("%s", pc);
- sleep (2);
+ mutt_sleep (2);
return -1;
}
@@ -368,7 +368,7 @@ static int cmd_handle_untagged (IMAP_DATA* idata)
/* Display the warning message from the server */
mutt_error ("%s", s+3);
- sleep (2);
+ mutt_sleep (2);
}
return 0;
diff --git a/imap/imap.c b/imap/imap.c
index b073d51c..0be0040c 100644
--- a/imap/imap.c
+++ b/imap/imap.c
@@ -292,7 +292,7 @@ static int imap_check_capabilities (IMAP_DATA* idata)
||mutt_bit_isset(idata->capabilities,IMAP4REV1)))
{
mutt_error _("This IMAP server is ancient. Mutt does not work with it.");
- sleep (5); /* pause a moment to let the user see the error */
+ mutt_sleep (5); /* pause a moment to let the user see the error */
return -1;
}
@@ -361,7 +361,7 @@ int imap_open_connection (IMAP_DATA* idata)
if (mutt_socket_open (idata->conn) < 0)
{
mutt_error (_("Connection to %s failed."), idata->conn->account.host);
- sleep (1);
+ mutt_sleep (1);
return -1;
}
@@ -390,7 +390,7 @@ int imap_open_connection (IMAP_DATA* idata)
if (mutt_ssl_starttls (idata->conn))
{
mutt_error ("Could not negotiate TLS connection");
- sleep (1);
+ mutt_sleep (1);
goto bail;
}
else
@@ -593,7 +593,7 @@ int imap_open_mailbox (CONTEXT* ctx)
s = imap_next_word (idata->cmd.buf); /* skip seq */
s = imap_next_word (s); /* Skip response */
mutt_error ("%s", s);
- sleep (2);
+ mutt_sleep (2);
goto fail;
}
diff --git a/imap/message.c b/imap/message.c
index a76aa213..ff70ca7c 100644
--- a/imap/message.c
+++ b/imap/message.c
@@ -72,7 +72,7 @@ int imap_read_headers (IMAP_DATA* idata, int msgbegin, int msgend)
else
{ /* Unable to fetch headers for lower versions */
mutt_error _("Unable to fetch headers from this IMAP server version.");
- sleep (2); /* pause a moment to let the user see the error */
+ mutt_sleep (2); /* pause a moment to let the user see the error */
return -1;
}
@@ -476,7 +476,7 @@ int imap_append_message (CONTEXT *ctx, MESSAGE *msg)
SKIPWS (pc);
pc = imap_next_word (pc);
mutt_error ("%s", pc);
- sleep (1);
+ mutt_sleep (1);
fclose (fp);
goto fail;
}
@@ -514,7 +514,7 @@ int imap_append_message (CONTEXT *ctx, MESSAGE *msg)
SKIPWS (pc);
pc = imap_next_word (pc);
mutt_error ("%s", pc);
- sleep (1);
+ mutt_sleep (1);
goto fail;
}
diff --git a/imap/util.c b/imap/util.c
index e76d551f..97a0bce3 100644
--- a/imap/util.c
+++ b/imap/util.c
@@ -219,7 +219,7 @@ int imap_continue (const char* msg, const char* resp)
void imap_error (const char *where, const char *msg)
{
mutt_error (_("%s [%s]\n"), where, msg);
- sleep (2);
+ mutt_sleep (2);
}
/* imap_new_idata: Allocate and initialise a new IMAP_DATA structure.