daniele-occhipinti / php-email-parser

PHP Raw Email Parser
GNU Lesser General Public License v3.0
170 stars 81 forks source link

fail to check body line in boundaries #24

Open hitapia opened 9 years ago

hitapia commented 9 years ago

I have a problem where I use function getBody(). This is some message in my test mail data.

---------------------------------------
Content-Type: text/html; charset=EUC-KR
Content-Transfer-Encoding: base64

PGRpdiBkaXI9Imx0ciI+s6q02S4uIMDfIMH2s7vB9j88ZGl2Pr+stvTBuyDH2H6ku6S7PC9kaXY+
PC9kaXY+DQo=
--001a11c1feaacd1c7e050e27ef0e--  <--- this line
-----------------------------------------

When I use getBody function, the last line (boundary) is also included. I find the lines for checking line in boundaries in php code, but failed.