diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | driver.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -12,6 +12,7 @@ fetchmail-5.1.1 (): * Consistently show dummy arguments on manual page. * Fix lexer to permit `antispam -1'. * Added fetchmailconf and FAQ warnings about Novell GroupWise. +* John Cigas's delay patch to avoid a timing problem with plugins. There are 266 people on fetchmail-friends and 444 on fetchmail-announce. @@ -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, |