http://bugzilla.spamassassin.org/show_bug.cgi?id=4589

           Summary: GLOB referance in Mail/SpamAssassin/Message.pm
           Product: Spamassassin
           Version: 3.1.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


On line 126 in Mail/SpamAssassin/Message.pm, you check for GLOB to see if a
handle is passed.  Unfortunately, if you pass an IO::File, it fails.  Very
simple change suggested:

  if (ref $message eq 'ARRAY') {
     @message = @{$message};
  }
  elsif (ref $message =~ 'GLOB') {
    if (defined fileno $message) {
      @message = <$message>;
    }
  }

to change from eq to =~ so it matches any GLOB type passed in.



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

Reply via email to