You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2006/10/24 19:23:15 UTC

svn commit: r467392 - /spamassassin/rules/trunk/sandbox/jm/VBounce.pm

Author: jm
Date: Tue Oct 24 10:23:14 2006
New Revision: 467392

URL: http://svn.apache.org/viewvc?view=rev&rev=467392
Log:
avoid undef lines causing a warning

Modified:
    spamassassin/rules/trunk/sandbox/jm/VBounce.pm

Modified: spamassassin/rules/trunk/sandbox/jm/VBounce.pm
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/jm/VBounce.pm?view=diff&rev=467392&r1=467391&r2=467392
==============================================================================
--- spamassassin/rules/trunk/sandbox/jm/VBounce.pm (original)
+++ spamassassin/rules/trunk/sandbox/jm/VBounce.pm Tue Oct 24 10:23:14 2006
@@ -114,11 +114,9 @@
   # now check any "message/anything" attachment MIME parts, too
   foreach my $p ($pms->{msg}->find_parts(qr/^message\//, 1)) {
     my $line = $p->decode();
- {
-      next unless ($line =~ /Received: /);
-      while ($line =~ / (\S+\.\S+) /g) {
-        return 1 if $self->_relay_is_in_whitelist_bounce_relays($pms, $1);
-      }
+    next unless $line && ($line =~ /Received: /);
+    while ($line =~ / (\S+\.\S+) /g) {
+      return 1 if $self->_relay_is_in_whitelist_bounce_relays($pms, $1);
     }
   }