RubySpamAssassin icon indicating copy to clipboard operation
RubySpamAssassin copied to clipboard

Fix rule texts parsing

Open fernandomm opened this issue 7 years ago • 1 comments

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.

fernandomm avatar Dec 13 '17 15:12 fernandomm

Ping. I could use this as well.

mensfeld avatar Apr 25 '18 16:04 mensfeld