aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 234e4a4b..bbcaa768 100644
--- a/driver.c
+++ b/driver.c
@@ -1544,6 +1544,10 @@ const int maxfetch; /* maximum number of messages to fetch */
port = ctl->server.port ? ctl->server.port : protocol->port;
#endif /* !INET6 */
realhost = ctl->server.via ? ctl->server.via : ctl->server.pollname;
+
+ /* allow time for the port to be set up if we have a plugin */
+ if (ctl->server.plugin)
+ (void)sleep(1);
#if INET6
if ((mailserver_socket = SockOpen(realhost,
ctl->server.service ? ctl->server.service : protocol->service,