Skip to content

Instantly share code, notes, and snippets.

@bobjflong
Created September 24, 2016 13:07
Show Gist options
  • Select an option

  • Save bobjflong/58b4b031f4f9e6919b71e3e70e64beab to your computer and use it in GitHub Desktop.

Select an option

Save bobjflong/58b4b031f4f9e6919b71e3e70e64beab to your computer and use it in GitHub Desktop.
> m1 = Mail.new("To: [email protected]\r\nSubject: Yo!\r\n\r\nHello there")
> m2 = Mail.new("To: [email protected]\r\nMessage-ID: <[email protected]>\r\nSubject: Yo!\r\n\r\nHello there")
> message_id = m2.header[:message_id].value
"<[email protected]>"
> m1 == m2
true
> message_id == m2.header[:message_id].value
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment