diff options
| author | fukachan <fukachan> | 2005-12-18 12:03:52 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2005-12-18 12:03:52 +0000 |
| commit | 817c796e8d7fcc90dfceef7e0a56de83eecbdd7c (patch) | |
| tree | c1180995815df7d0b02ad4e6c2af6bc0be245e6c /fml/lib/FML | |
| parent | 5a7e165b95e83c339899219ae49f9aa7607926c5 (diff) | |
| download | fml8-817c796e8d7fcc90dfceef7e0a56de83eecbdd7c.tar.gz fml8-817c796e8d7fcc90dfceef7e0a56de83eecbdd7c.tar.bz2 fml8-817c796e8d7fcc90dfceef7e0a56de83eecbdd7c.zip | |
clean up
Diffstat (limited to 'fml/lib/FML')
| -rw-r--r-- | fml/lib/FML/MUA/POP3.pm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fml/lib/FML/MUA/POP3.pm b/fml/lib/FML/MUA/POP3.pm index eb5bd00c..d5b63d43 100644 --- a/fml/lib/FML/MUA/POP3.pm +++ b/fml/lib/FML/MUA/POP3.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: POP3.pm,v 1.4 2005/08/19 12:08:18 fukachan Exp $ +# $FML: POP3.pm,v 1.5 2005/08/23 13:16:20 fukachan Exp $ # package FML::MUA::POP3; @@ -97,9 +97,10 @@ sub login sub retrieve { my ($self, $r_args) = @_; - my $curproc = $self->{ _curproc }; - my $pop = $self->{ _pop } || undef; - my $class = $r_args->{ class } || undef; + my $curproc = $self->{ _curproc }; + my $pop = $self->{ _pop } || undef; + my $class = $r_args->{ class } || undef; + my $tmp_queue = "incoming"; if (defined $pop && defined $class) { my $msgnums = $pop->list; # hashref of msgnum => size @@ -108,7 +109,7 @@ sub retrieve foreach my $msgnum (keys %$msgnums) { my $q = $self->_new_queue_file($r_args); if (defined $q) { - my $wh = $q->open("incoming", { mode => "w" }); + my $wh = $q->open($tmp_queue, { mode => "w" }); if (defined $wh) { $wh->autoflush(1); @@ -120,7 +121,7 @@ sub retrieve } else { my $id = $q->id(); - $q->dup_content($class); + $q->dup_content($tmp_queue, $class); $q->remove(); $pop->delete($msgnum); $curproc->log("fetched: qid=$id"); |
