X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/dd16e114db70592df34e8b9ee4a05dae69aaba43..184e88237dea64ce48076cdd0184612d057cbafd:/src/src/retry.c diff --git a/src/src/retry.c b/src/src/retry.c index afb40ef90..02eda07ff 100644 --- a/src/src/retry.c +++ b/src/src/retry.c @@ -1,10 +1,10 @@ -/* $Cambridge: exim/src/src/retry.c,v 1.10 2006/04/20 10:57:46 ph10 Exp $ */ +/* $Cambridge: exim/src/src/retry.c,v 1.12 2007/01/08 10:50:18 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2006 */ +/* Copyright (c) University of Cambridge 1995 - 2007 */ /* See the file NOTICE for conditions of use and distribution. */ /* Functions concerned with retrying unsuccessful deliveries. */ @@ -47,9 +47,8 @@ if (retry != NULL && retry->rules != NULL) last_rule->next != NULL; last_rule = last_rule->next); DEBUG(D_transport|D_retry) - debug_printf("now=%d received_time=%d diff=%d timeout=%d\n", - (int)now, received_time, (int)(now - received_time), - last_rule->timeout); + debug_printf(" received_time=%d diff=%d timeout=%d\n", + received_time, (int)(now - received_time), last_rule->timeout); address_timeout = (now - received_time > last_rule->timeout); } else @@ -210,8 +209,14 @@ if (host_retry_record != NULL) if (now < host_retry_record->next_try && !deliver_force) { DEBUG(D_transport|D_retry) + { debug_printf("host retry time not reached: checking ultimate address " "timeout\n"); + debug_printf(" now=%d first_failed=%d next_try=%d expired=%d\n", + (int)now, (int)host_retry_record->first_failed, + (int)host_retry_record->next_try, + host_retry_record->expired); + } if (!host_retry_record->expired && ultimate_address_timeout(host_key, domain, @@ -247,8 +252,13 @@ if (message_retry_record != NULL) if (now < message_retry_record->next_try && !deliver_force) { DEBUG(D_transport|D_retry) + { debug_printf("host+message retry time not reached: checking ultimate " "address timeout\n"); + debug_printf(" now=%d first_failed=%d next_try=%d expired=%d\n", + (int)now, (int)message_retry_record->first_failed, + (int)message_retry_record->next_try, message_retry_record->expired); + } if (!ultimate_address_timeout(host_key, domain, 0, 0, now)) { host->status = hstatus_unusable;