You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2007/09/20 20:31:35 UTC

[Bug 5656] New: ref check of passed $message not working.

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5656

           Summary: ref check of passed $message not working.
           Product: Spamassassin
           Version: 3.2.3
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Libraries
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: davidb@chelsea.net


I submitted this bug a long time ago, but I had to change the fix to do a REGEX
match on the ref($message) to see if it was from the IO package, and not just a
GLOB.  In Message.pm, at line 132, I changed it to this:

  # Figure out how the message was passed to us, and deal with it.
  my @message;
  if (ref $message eq 'ARRAY') {
     @message = @{$message};
  }
  elsif ((ref($message) eq 'GLOB') || (ref($message) =~ /^IO/)) {
    if (defined fileno $message) {
      @message = <$message>;
    }
  }

Can this be rolled into the next release?

Thanks,

David.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.