spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From felic...@apache.org
Subject svn commit: r479796 - /spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm
Date Mon, 27 Nov 2006 22:59:49 GMT
Author: felicity
Date: Mon Nov 27 14:59:49 2006
New Revision: 479796

URL: http://svn.apache.org/viewvc?view=rev&rev=479796
Log:
if we store a part in a temp file, leave it there.

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm?view=diff&rev=479796&r1=479795&r2=479796
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm Mon Nov 27 14:59:49 2006
@@ -265,8 +265,6 @@
 
   # Ok, if we're called we are expected to return an array.
   # so if it's a file reference, read in the message into an array...
-  # and since we're already sucking up the extra RAM to load it back in, store
-  # the reference.
   #
   # NOTE: that "ref undef" works, so don't bother checking for a defined var
   # first.
@@ -275,8 +273,7 @@
     my $fd = $self->{'raw'};
     seek $fd, 0, 0;
     @array = <$fd>;
-    close $fd;
-    $self->{'raw'} = \@array;
+    return \@array;
   }
 
   return $self->{'raw'};



Mime
View raw message