Skip to content

Conversation

@fernandomm
Copy link
Contributor

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.

They weren't using expect() so rspec wasn't testing anything.
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.
@mensfeld
Copy link

Ping. I could use this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants