[imp] Double spaces in incoming html emails

Jens Pranaitis pranaitis at phil.hhu.de
Tue Oct 21 09:13:40 UTC 2014


On 19.11.2013 02:02, Benderiukas wrote:
> I having issues with html emails what are sent from outlook . When I do reply
> Horde making double spaces on it . I will attach screenshot so you can see
> the problem . On the left is original email and on the right I do reply as
> you can see signature not visible at all anymore  . And If someone reply
> back to me and I reply back again to him so I have huge empty spaces between
> lines . Horde having latest upgrades . The system is runing on Debian 6.0,
> Exim version 4.73, PHP 5.3.25.
> <http://horde.690.n7.nabble.com/file/n118181/webmail_doublespaces.png>

Sorry for resurrecting this old thread, but I just run into the same 
issue. For users receiving HTML mails from Outlook (I only tested 
Outlook 2013), the HTML generated by it, looks something like this:

<p>Lorem ipsum<o:p></o:p></p>

which CKEditor converts to

<p>Lorem ipsum<p> </p></p>

which results in the double space issue[0]. While researching I came 
across CKEditor's "pastefromword" plugin. It contains some functions to 
take care of this mess, I'll see if I can write a patch to filter this crap.

Kind regards,

Jens Pranaitis

[0]: https://pthree.org/2011/05/06/outlook-insanity/
-- 
IKM-Serviceteam der Philosophischen Fakultät
HHU Düsseldorf
Gebäude 23.03, Ebene 01, Raum 27a
Tel.: 0211/81-13077


More information about the imp mailing list