> On June 24, 2012, 2:58 p.m., Pali Rohár wrote: > > In old Kopete history plugin is missing to import and export history. Has > > this new plugin support for import/export? Something which will work for > > synchronization between 2 Kopete instances. And what happends with > > duplicate messages (when importing)? Sometimes (in jabber protocol) is > > message time for same message different (about 1-2 seconds). Will be this > > message (same, but with shifted time in seconds) imported? > > > > Has this new plugin support for HTML messages? > > > > What about adding code for importing history from other IM clients? Has > > this plugin some interface for it? > > Two years ago I wrote small tool which convert IM history from Nokia N900 > > (RTCOM Maemo 5) to Kopete xml logs. Maybe it will be good to integrate this > > support... > > Cyberbeat wrote: > There is an import option for old kopete logs and pidgin. There is no > general "interface" for import, but it should be no problem, to add support > for other clients, too, via additional buttons. The gui is mostly the same as > the old history plugin gui. > > Is there some "standard" IM-Exchange file-format, which would make sense > to export to? > > Shifted messages would be imported, they have to completely match. But > how can shifted messages happen? Is it possible to have multiple clients for > one account be active at the same time, and all these clients receive the > same message? > > Currently I think I only log plain text, but I also have imported > html-messages in my history, which are stored in the sqlite db now, and are > correctly displayed. > > Pali Rohár wrote: > I think "standard" IM-Exchange file-format does not exists. For exporting > I mean button "export" which open save dialog where full history will be > written to one file. Now if this plugin using sqlite database, then it will > be only one file. So export button will only copy current database to user > location. > > Shifted messages - happends if clock in both pc where are IM clients are > different (shifted about 1-2 seconds which is sometimes normal) > > Can you add option to ignore messages which are same but has different > time (but with difference < 10s)? > > Cyberbeat wrote: > > Shifted messages - happends if clock in both pc where are IM clients > are different (shifted about 1-2 seconds which is sometimes normal) > > I understand, but how is it possible, that both IM-Clients receive/send > the same messages? > > For example ICQ logs out a client, when connecting from another. > > > Can you add option to ignore messages which are same but has different > time (but with difference < 10s)? > > that may be possible > > Pali Rohár wrote: > Jabber protocol has support for login from more clients at one time > (identification via resource name). And when you send message to jabber > contact, you can specify resource where to send message. But if you do not > specify it, message can delivered to all connected clients. > > Also skype has support for multilogin, but delivery time is added by > client (so client add timestamp for all received message - and there can be > problem in multiple instances...) > > And ICQ now supports multilogin too, you will no be logged out :-) > > Cyberbeat wrote: > ok, that makes sense to me then. what about the message text then? > Currently the message has to be exact the same. But what, if one client > stores the messages in plaintext, another in html, and another in different > encoding,...? > > I think it is hard to ensure no duplicates in same messages from > different clients, except inventing some normalization.. > > Another bigger problem in the importer is (and also is in the old history > plugin), that it only imports from contacts kopete currently knows. To solve > that, I have to rewrite some parts to not use Kopete::Message (because of the > contact-references stored in there). > > Pali Rohár wrote: > You can convert html text (message) to plain text using some Qt function. > Then removed all whitespace at the begining and at the end of messages. And > then you can compare if two plain text messages are same. I think this is not > hard. > > What is current state of new history plugin? If it works I think it can > be good candidate for new KDE which will be released in 6 months... > > Cyberbeat wrote: > I use this plugin over a half year now, and didn't have any problems. But > I did not spent more time on it yet. > > Has someone except me tested it? > > Pali Rohár wrote: > Maybe you should include this new history plugin under other name into > kopete repository. So users will be able to active it or revert back to old > history plugin.
Its also named "history2", and available for download here: http://kde-apps.org/content/show.php/Improved+Kopete+History+Plugin?content=154660 - Cyberbeat ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://svn.reviewboard.kde.org/r/6998/#review10840 ----------------------------------------------------------- On June 30, 2012, 3:32 p.m., Cyberbeat wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://svn.reviewboard.kde.org/r/6998/ > ----------------------------------------------------------- > > (Updated June 30, 2012, 3:32 p.m.) > > > Review request for Kopete. > > > Description > ------- > > This is a copy of the old history plugin, but with so many changes, that I > created it as a new one "history2". > > Most important changes: > > - based on sqlite3 instead of xml-files > > - import history button in config dialog > > - import option added for the other xml-based history-plugin > > - pidgin import improved > > - test and skip duplicates on import (so it is possible to synchronize > regularly from a windows-pidgin installation for example) > > - more speed in most cases > > The main reason I began to rewrite the complete plugin was, that I had > dataloss by importing from pidgin with the old history plugin. > The months, which where imported from pidgin, did overwrite the kopete > history. This was unacceptable. > > > Diffs > ----- > > /trunk/KDE/kdenetwork/kopete/plugins/CMakeLists.txt 1297320 > /trunk/KDE/kdenetwork/kopete/plugins/history2/CMakeLists.txt PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2chatui.rc > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2config.kcfg > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2config.kcfgc > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2dialog.h PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2dialog.cpp > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2guiclient.h > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2guiclient.cpp > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2import.h PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2import.cpp > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2logger.h PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2logger.cpp > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2plugin.h PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2plugin.cpp > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2preferences.h > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2preferences.cpp > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2prefsui.ui > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2ui.rc PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/history2viewer.ui > PRE-CREATION > /trunk/KDE/kdenetwork/kopete/plugins/history2/kopete_history2.desktop > PRE-CREATION > > /trunk/KDE/kdenetwork/kopete/plugins/history2/kopete_history2_config.desktop > PRE-CREATION > > Diff: http://svn.reviewboard.kde.org/r/6998/diff/ > > > Testing > ------- > > I use it for several days now, and successfully imported my complete pidgin > and old kopete history (some megabytes since 2006). I think it is possible to > use both plugins parallel, although I would like to see this plugin to > replace the old one in longer term. On import nothing is deleted. > > > Thanks, > > Cyberbeat > >
_______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel