my(@temp);
print ">> ./eximdir/exim_dumpdb $parm_cwd/spool $which\n" if $debug;
open(IN, "./eximdir/exim_dumpdb $parm_cwd/spool $which |");
- @temp = <IN>;
- close(IN);
- if ($which eq "callout")
+ open(OUT, ">>test-stdout");
+ print OUT "+++++++++++++++++++++++++++\n";
+
+ if ($which eq "retry")
{
+ $/ = "\n ";
+ @temp = <IN>;
+ $/ = "\n";
+
@temp = sort {
- my($aa) = substr $a, 21;
- my($bb) = substr $b, 21;
- return $aa cmp $bb;
+ my($aa) = split(' ', $a);
+ my($bb) = split(' ', $b);
+ return $aa cmp $bb;
} @temp;
+
+ foreach $item (@temp)
+ {
+ $item =~ s/^\s*(.*)\n(.*)\n?\s*$/\1\n\2/m;
+ print OUT " $item\n";
+ }
}
- open(OUT, ">>test-stdout");
- print OUT "+++++++++++++++++++++++++++\n";
- print OUT @temp;
+ else
+ {
+ @temp = <IN>;
+ if ($which eq "callout")
+ {
+ @temp = sort {
+ my($aa) = substr $a, 21;
+ my($bb) = substr $b, 21;
+ return $aa cmp $bb;
+ } @temp;
+ }
+ print OUT @temp;
+ }
+
+ close(IN);
close(OUT);
return 1;
}
T:localhost.test.ex:127.0.0.1:999 dd 65 Connection refused
first failed = time last try = time2 next try = time2 + 900
T:localhost.test.ex:::1:999 dd 65 Connection refused
-first failed = time last try = time2 next try = time2 + 900
- T:thishost.test.ex:999 dd 65 Connection refused
first failed = time last try = time2 next try = time2 + 900
T:thishost.test.ex:127.0.0.1:999 dd 65 Connection refused
+first failed = time last try = time2 next try = time2 + 900
+ T:thishost.test.ex:999 dd 65 Connection refused
first failed = time last try = time2 next try = time2 + 900
Retry rule: *.star.ex * F,3d,10m;
Retry rule: lsearch*@;TESTSUITE/aux-fixed/0099.rlist * F,1d,3m;
+++++++++++++++++++++++++++
R:userx@myhost.test.ex -1 0 forcibly deferred
-first failed = time last try = time2 next try = time2 + 10
- R:userz@myhost.test.ex -1 0 forcibly deferred
first failed = time last try = time2 next try = time2 + 10
R:usery@myhost.test.ex -1 0 forcibly deferred
+first failed = time last try = time2 next try = time2 + 10
+ R:userz@myhost.test.ex -1 0 forcibly deferred
first failed = time last try = time2 next try = time2 + 10
+++++++++++++++++++++++++++
R:userx@myhost.test.ex -1 0 forcibly deferred
-first failed = time last try = time2 next try = time2 + 10
- R:userz@myhost.test.ex -1 0 forcibly deferred
first failed = time last try = time2 next try = time2 + 10
R:usery@myhost.test.ex -1 0 forcibly deferred
+first failed = time last try = time2 next try = time2 + 10
+ R:userz@myhost.test.ex -1 0 forcibly deferred
first failed = time last try = time2 next try = time2 + 10
+++++++++++++++++++++++++++
R:userx@myhost.test.ex -1 0 forcibly deferred
-first failed = time last try = time2 next try = time2 + 10
- R:userz@myhost.test.ex -1 0 forcibly deferred
first failed = time last try = time2 next try = time2 + 10
R:usery@myhost.test.ex -1 0 forcibly deferred
+first failed = time last try = time2 next try = time2 + 10
+ R:userz@myhost.test.ex -1 0 forcibly deferred
first failed = time last try = time2 next try = time2 + 10
+++++++++++++++++++++++++++
R:userx@myhost.test.ex -1 0 forcibly deferred
first failed = time last try = time2 next try = time2 + 10
+++++++++++++++++++++++++++
R:userx@myhost.test.ex -1 0 forcibly deferred
-first failed = time last try = time2 next try = time2 + 10
- R:userz@myhost.test.ex -1 0 forcibly deferred
first failed = time last try = time2 next try = time2 + 10
R:usery@myhost.test.ex -1 0 forcibly deferred
+first failed = time last try = time2 next try = time2 + 10
+ R:userz@myhost.test.ex -1 0 forcibly deferred
first failed = time last try = time2 next try = time2 + 10
T:userx@test.ex -22 xxxx mailbox is full (MTA-imposed quota exceeded while writing to TESTSUITE/test-mail/userx)
first failed = time last try = time2 next try = time2 + 600
+++++++++++++++++++++++++++
- T:userx@test.ex -22 xxxx mailbox is full (MTA-imposed quota exceeded while writing to TESTSUITE/test-mail/userx)
-first failed = time last try = time2 next try = time2 + 600
T:test.ex -22 xxxx mailbox is full (MTA-imposed quota exceeded while writing to TESTSUITE/test-mail/notuser)
first failed = time last try = time2 next try = time2 + 1200
+ T:userx@test.ex -22 xxxx mailbox is full (MTA-imposed quota exceeded while writing to TESTSUITE/test-mail/userx)
+first failed = time last try = time2 next try = time2 + 600
Message 10HmaX-0005vi-00 has been removed
Message 10HmbA-0005vi-00 has been removed
Message 10HmbB-0005vi-00 has been removed