int res;
fd_set fdset;
+ if (fail > 0) {
+ NORM_ERR("Trying IMAP connection again for %s@%s (try %u/%u)",
+ mail->user, mail->host, fail + 1, mail->retries);
+ resolved_host = 0; /* force us to resolve the hostname again */
+ }
if (!resolved_host) {
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_UNSPEC;
}
resolved_host = 1;
}
- if (fail > 0) {
- NORM_ERR("Trying IMAP connection again for %s@%s (try %u/%u)",
- mail->user, mail->host, fail + 1, mail->retries);
- }
do {
for (rp = ai; rp != NULL; rp = rp->ai_next) {
sockfd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);
struct timeval fetchtimeout;
int res;
fd_set fdset;
+
+ if (fail > 0) {
+ NORM_ERR("Trying POP3 connection again for %s@%s (try %u/%u)",
+ mail->user, mail->host, fail + 1, mail->retries);
+ resolved_host = 0; /* force us to resolve the hostname again */
+ }
if (!resolved_host) {
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_UNSPEC;
}
resolved_host = 1;
}
- if (fail > 0) {
- NORM_ERR("Trying POP3 connection again for %s@%s (try %u/%u)",
- mail->user, mail->host, fail + 1, mail->retries);
- }
do {
for (rp = ai; rp != NULL; rp = rp->ai_next) {
sockfd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);