summaryrefslogtreecommitdiff
path: root/fml
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-03-21 13:01:43 +0000
committerfukachan <fukachan>2006-03-21 13:01:43 +0000
commit1bc94a5f4800ddd25c889ff57a4de9f7bf1988de (patch)
tree33b8d34c2fb76cfdd6d004b59ad9ff0bc86cb907 /fml
parent379db534241ae0ad830190e6458ebdd8aa263ebc (diff)
downloadfml8-1bc94a5f4800ddd25c889ff57a4de9f7bf1988de.tar.gz
fml8-1bc94a5f4800ddd25c889ff57a4de9f7bf1988de.tar.bz2
fml8-1bc94a5f4800ddd25c889ff57a4de9f7bf1988de.zip
bug fix starting position in fallback process.
Diffstat (limited to 'fml')
-rw-r--r--fml/lib/Mail/Delivery/SMTP.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/fml/lib/Mail/Delivery/SMTP.pm b/fml/lib/Mail/Delivery/SMTP.pm
index 840f230a..5f828ecd 100644
--- a/fml/lib/Mail/Delivery/SMTP.pm
+++ b/fml/lib/Mail/Delivery/SMTP.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: SMTP.pm,v 1.34 2004/08/15 11:59:05 fukachan Exp $
+# $FML: SMTP.pm,v 1.35 2006/03/21 07:04:07 fukachan Exp $
#
@@ -613,8 +613,8 @@ sub _fallback_into_queue
my ($self, $args, $map, $status) = @_;
# log current status.
- my $n = $self->get_map_position($map) || 0;
- Log("map=$map pos=$n status=\"$status\"");
+ my $pos = $self->get_map_position($map) || 0;
+ Log("map=$map pos=$pos status=\"$status\"");
# dump into queue.
if (defined $args->{ use_queue_dir } && $args->{ use_queue_dir }) {
@@ -634,6 +634,10 @@ sub _fallback_into_queue
return;
};
+ if ($pos) {
+ $obj->setpos($pos);
+ }
+
my $rcpt;
while (defined ($rcpt = $obj->get_next_key)) {
$num_rcpt++;