RubySpamAssassin
RubySpamAssassin copied to clipboard
Fix rule texts parsing
It was using squeeze method without any parameter which will squeeze all characters.
Texts like
Message-Id is not valid, according to RFC 2822
were parsed as
Mesage-Id is not valid, acording to RFC 282
Note that Message-Id was changed to Mesage-Id and RFC 2822 was changed to RFC 282.
As a bonus I corrected the tests in https://github.com/codefriar/RubySpamAssassin/blob/af6d81bdfe0a1438a1911f46d68b1ec3a5e262b6/spec/RubySpamAssassin/report_parser_spec.rb which weren't testing anything since they didn't used expect() method.
Ping. I could use this as well.