[imp] Double spaces in incoming html emails

Michael M Slusarz slusarz at horde.org
Tue Oct 21 18:33:53 UTC 2014


Quoting Jens Pranaitis <pranaitis at phil.hhu.de>:

> 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.

I'm working on a new DOM filter for use with H6/IMP 7, that will much  
more easily allow this kind of thing to be taken care of at that level  
(i.e. you can write a plugin filter that will strip out these useless  
tags).  That's probably the best way of handling this.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list