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 2004/10/30 07:33:47 UTC
svn commit: rev 56025 - spamassassin/trunk/lib/Mail/SpamAssassin
Author: felicity
Date: Fri Oct 29 22:33:47 2004
New Revision: 56025
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm
Log:
since applications can pass in opt_head and opt_tail == undef to ArchiveIterator, deal with that possibility.
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm Fri Oct 29 22:33:47 2004
@@ -176,8 +176,8 @@
if (!defined $self) { $self = { }; }
bless ($self, $class);
- $self->{opt_head} = 0 unless exists $self->{opt_head};
- $self->{opt_tail} = 0 unless exists $self->{opt_tail};
+ $self->{opt_head} = 0 unless (defined $self->{opt_head});
+ $self->{opt_tail} = 0 unless (defined $self->{opt_tail});
$self->{s} = [ ]; # spam, of course
$self->{h} = [ ]; # ham, as if you couldn't guess