Mail handler module is breaking html tags into two lines, which is displaying unnecessary html tags in body instead of rendering html. for example:

<IMG height=219 alt=art.oil.iraq.ap.jpg src="http://i.l.cnn.net/cnn/2008/POLITICS/04/29/iraq.windfall/art.oil.iraq.ap..." width=292 border=0 _extended="true" NOSEND="1"&rt;

is broken into four lines as below:
<IMG
height=219 alt=art.oil.iraq.ap.jpg
src="http://i.l.cnn.net/cnn/2008/POLITICS/04/29/iraq.windfall/art.oil.iraq.ap..."
width=292 border=0 _extended="true" NOSEND="1"&rt;

and while rendering it is displaying the below unnecessary html in body:
height=219 alt=art.oil.iraq.ap.jpg src="http://i.l.cnn.net/cnn/2008/POLITICS/04/29/iraq.windfall/art.oil.iraq.ap..." width=292 border=0 _extended="true" NOSEND="1"> instead of image.

Can any one help me in sovling this.

Thanks in advance,
Chandra

Comments

Pamulapati’s picture

Title: Mail handler creating line breaks while processing a message » Mailhandler creating line breaks while processing a message and displaying Hexadecimal codes

Mailhandler module is breaking html tags into two lines, which is displaying unnecessary html tags in body instead of rendering html and also Mailhandler is displaying =OD=OA in place of linebreak where linebreak's hexadecimal value is &#x0D;&#x0A;

Can any one help me in fixing this.

Thanks in advace,
Chandra

Pamulapati’s picture

Assigned: Unassigned » Pamulapati
Status: Active » Closed (fixed)

I am able to fix it. It was the problem with imap_8bit (). This function splits input text into several lines aligned to 75 characters and encodes with some characters like =20, =OA=OD and else.