[Bug 378428] Re: Kopete does not import pidgin history

Maddev khulap at mail.ru
Tue May 26 19:15:26 UTC 2009


I attach the example of my html log. I hide all private information in it but the structure of  log is unchanged.
I think that using QRegExp is better because the result parser is much simpler and clear to understand. I hope you have one message per line format too.  The speed is not important because import of logs is operation that user performs only one time. 
The RegExp parser is simple to adapt to your message format. For example, in your log <font color="#A82F2F"><font size="2">(22:12:33)</font> <b>Nick:</b></font> <font sml="AIM/ICQ">[MessageText]</font><br/> you need to correct beginMessage to "</b></font> " and replace text <font sml="AIM/ICQ"> and </font><br/> with "".
There is a problem with html links in the text body such as <a href='mailto:xxxxxxx at gmail.com'>xxxxxxx at gmail.com</a> but it can be solved with a regexp too.

** Attachment added: "The example of html log."
   http://launchpadlibrarian.net/27180297/2009-01-05.110826%2B0200EET.html

-- 
Kopete does not import pidgin history
https://bugs.launchpad.net/bugs/378428
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdenetwork in ubuntu.




More information about the kubuntu-bugs mailing list