On Wed, 20 Mar 2002, Paul Sobey wrote:
> Hi everyone,
>
> What settings are you all using, if any, to tune the SMail parameters on
> XMail? I want to arrange it so that mail is held for up to 3 days before it
> gets returned to sender. With the default timeout and retry settings (480
> secs and 32 retries), I reckon that I need to specify -Qi 8 or thereabouts.
> Does this sound about right? It's a while since I summed over arithmetic
> series!
Try this :
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char * argv[]) {
unsigned t, i, n, tot, c;
if (argc < 4) {
printf("use: %s init_delay delay_incr num_retries\n", argv[0]);
return 1;
}
t = atoi(argv[1]);
i = atoi(argv[2]);
n = atoi(argv[3]);
tot = 0;
for (c = 1; c <= n; c++) {
printf("%02u\tsend-time = %-6u\tnext-try = %u\n", c, tot, t);
tot += t;
t += t / i;
}
return 0;
}
- Davide
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]