On Tue, 18 May 2004, Kelvin Goh wrote:
> Hi,
>
> I have studied that Xmail will move the email
> from 'mess' to 'rsnd' when Xmail fails to send
> the message. I would like to know how Xmail handle
> the email inside the 'rsnd' folder? Will it processes
> the 'rsnd' folder first, or will it processes the new
> incoming email first, or process both of them
> together?
>
> If Xmail processes 'rsnd' folder first, does it intend
> to processes all the messages inside the 'rsnd' or
> there is a limit before it processes the new email.
>
> And is there a limit on the queue messages?
Each message has a delivery time table generated by resend parameters (see
command line). The Perl script below can be used to generate it.
- Davide
#!/usr/bin/perl
#
# zinc.pl by Davide Libenzi ( generates XMail delivery tables )
# Copyright (C) 2002 Davide Libenzi
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Davide Libenzi <[EMAIL PROTECTED]>
# Beau E. Cox <[EMAIL PROTECTED]>
# Thomas Loo <[EMAIL PROTECTED]>
#
use strict;
use warnings;
if ($#ARGV < 2) {
printf("[%s] generates XMail's delivery tables\n\n", $0);
printf("use: %s init_delay(-Qt) delay_incr(-Qi) num_retries(-Qr)\n\n", $0);
exit 1;
}
my($c, $t, $i, $n, $tot, $ststr, $ntstr);
$t = int $ARGV[0];
$i = int $ARGV[1];
$n = int $ARGV[2];
$tot = 0;
for ($c = 1; $c <= $n; $c++) {
sectime($tot, \$ststr);
sectime($t, \$ntstr);
printf("%02u\tsend-time = %-6u (%s)\tnext-try = %-6u (%s)\n",
$c, $tot, $ststr, $t, $ntstr);
$tot += $t;
if ($i != 0) {
$t += $t / $i;
}
}
exit 0;
sub sectime {
my ($secs, $tstr) = @_;
my ($hh, $mm);
$hh = int $secs / 3600;
$secs -= $hh * 3600;
$mm = int $secs / 60;
$secs -= $mm * 60;
$$tstr = sprintf("%02d:%02d:%02d", $hh, $mm, $secs);
}
-
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]