From f59149903d79a02fa05579a2441c813db12fd9d6 Mon Sep 17 00:00:00 2001 From: Pedro Padron Date: Thu, 1 Nov 2018 15:54:06 -0300 Subject: [PATCH] Allowing multipart messages to be split when they are separated by LF only instead of CRLF. --- lib/mail/body.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mail/body.rb b/lib/mail/body.rb index 203f26e83..9c8dd815b 100644 --- a/lib/mail/body.rb +++ b/lib/mail/body.rb @@ -267,7 +267,7 @@ def extract_parts parts_regex = / (?: # non-capturing group \A | # start of string OR - \r\n # line break + \r?\n # line break ) ( --#{Regexp.escape(boundary || "")} # boundary delimiter