You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2006/11/27 23:59:49 UTC
svn commit: r479796 -
/spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm
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'};