summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2005-12-18 11:39:37 +0000
committerfukachan <fukachan>2005-12-18 11:39:37 +0000
commit73804b0d92580ea28c833bdc4cf0f2ab5e1d888c (patch)
treeec649a81bc8b6d13c486b4451f749b9bb15617ef
parent236a64432f6ca71d7505a483a94ace4e8960f60f (diff)
downloadfml8-73804b0d92580ea28c833bdc4cf0f2ab5e1d888c.tar.gz
fml8-73804b0d92580ea28c833bdc4cf0f2ab5e1d888c.tar.bz2
fml8-73804b0d92580ea28c833bdc4cf0f2ab5e1d888c.zip
enhanced dup_conent() to take two arguments.
-rw-r--r--fml/lib/Mail/Delivery/Queue.pm15
1 files changed, 8 insertions, 7 deletions
diff --git a/fml/lib/Mail/Delivery/Queue.pm b/fml/lib/Mail/Delivery/Queue.pm
index 97ecfd0c..49e85f80 100644
--- a/fml/lib/Mail/Delivery/Queue.pm
+++ b/fml/lib/Mail/Delivery/Queue.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: Queue.pm,v 1.53 2005/08/09 03:23:31 fukachan Exp $
+# $FML: Queue.pm,v 1.54 2005/08/19 12:17:12 fukachan Exp $
#
package Mail::Delivery::Queue;
@@ -1082,18 +1082,19 @@ duplicate content at a class $class other than incoming.
# Descriptions: duplicate content at a class $class other than incoming.
-# Arguments: OBJ($self) STR($class)
+# return new queue id generated in dupilication.
+# Arguments: OBJ($self) STR($old_class) STR($new_class)
# Side Effects: none
-# Return Value: NUM(1 or 0)
+# Return Value: STR
sub dup_content
{
- my ($self, $class) = @_;
+ my ($self, $old_class, $new_class) = @_;
my $id = $self->id();
my $new_id = _new_queue_id();
- my $queue_file = $self->incoming_file_path($id);
- my $new_qf = $self->local_file_path($class, $new_id);
+ my $queue_file = $self->local_file_path($old_class, $id);
+ my $new_qf = $self->local_file_path($new_class, $new_id);
- return( link($queue_file, $new_qf) ? 1 : 0 );
+ return( link($queue_file, $new_qf) ? $new_id : undef );
}