summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process/QueueManager.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-03-25 04:07:26 +0000
committerfukachan <fukachan>2006-03-25 04:07:26 +0000
commitdc3acdadcfb6ebc58df6ca4531f2db1ced25dfa6 (patch)
treeeb97810dd5d2960a7ded11cfebef6545b9c39772 /fml/lib/FML/Process/QueueManager.pm
parenta54a4d0893c4f64fab7c38747b2237ed722c9779 (diff)
downloadfml8-dc3acdadcfb6ebc58df6ca4531f2db1ced25dfa6.tar.gz
fml8-dc3acdadcfb6ebc58df6ca4531f2db1ced25dfa6.tar.bz2
fml8-dc3acdadcfb6ebc58df6ca4531f2db1ced25dfa6.zip
rewritten to use access methods to sync w/ Mail::Delivery overhaul.
Diffstat (limited to 'fml/lib/FML/Process/QueueManager.pm')
-rw-r--r--fml/lib/FML/Process/QueueManager.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/fml/lib/FML/Process/QueueManager.pm b/fml/lib/FML/Process/QueueManager.pm
index c2c8dcad..7923f142 100644
--- a/fml/lib/FML/Process/QueueManager.pm
+++ b/fml/lib/FML/Process/QueueManager.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: QueueManager.pm,v 1.36 2005/06/04 01:35:25 fukachan Exp $
+# $FML: QueueManager.pm,v 1.37 2005/11/30 23:30:38 fukachan Exp $
#
package FML::Process::QueueManager;
@@ -90,7 +90,7 @@ sub send
my $queue = new Mail::Delivery::Queue { directory => $queue_dir };
my $ra = [];
- $queue->set_log_function($fp);
+ $queue->set_log_debug_function($fp);
if (defined $id) {
$ra = [ $id ];
@@ -114,7 +114,7 @@ sub send
id => $qid,
directory => $queue_dir,
};
- $q->set_log_function($fp);
+ $q->set_log_debug_function($fp);
if ( $q->lock() ) {
my $is_locked = 1;
@@ -223,7 +223,7 @@ sub cleanup
use Mail::Delivery::Queue;
my $queue = new Mail::Delivery::Queue { directory => $queue_dir };
- $queue->set_log_function($fp);
+ $queue->set_log_debug_function($fp);
# XXX-TODO: customizable. $mail_queue_max_lifetime = 5d ?
my $list = $queue->list_all() || [];
@@ -235,7 +235,7 @@ sub cleanup
id => $qid,
directory => $queue_dir,
};
- $q->set_log_function($fp);
+ $q->set_log_debug_function($fp);
unless ( $q->is_valid_active_queue() ) {
my $mtime = $q->last_modified_time();