From patrick.ohly at intel.com Wed Mar 2 13:56:17 2016 From: patrick.ohly at intel.com (Patrick Ohly) Date: Wed, 02 Mar 2016 14:56:17 +0100 Subject: [SyncEvolution] Help needed In-Reply-To: References: <1456581239.26407.11.camel@intel.com> <1456729612.15445.16.camel@intel.com> Message-ID: <1456926977.9947.4.camel@intel.com> On Mon, 2016-02-29 at 20:51 +0100, deloptes wrote: > Thank you once again, > > Patrick Ohly wrote: > > Watch out for a method-call to "StoreSyncReport". It should appear > > twice: once when getting send by the child, once when received by the > > parent. For that message, a corresponding method-return message should > > be sent by parent to child, again being logged twice. > > This is there once (but better have a look yourself, please). I attach gz. > There is also 'method-return' and there it stops So based on the glib-dbus dumps, the messages pass back and forth fine. What remains unclear is why the child process does not seem to process the response message once it got received. It is also strange that there seems to be debug output missing from the child process. There's no "child sending sync report" output at all. I thought there should be, but I'll have to check that in more detail. > > /** > > * optional: write all changes, throw error if that fails > > * > > * This is called while the sync is still active whereas > > * close() is called afterwards. Reporting problems > > * as early as possible may be useful at some point, > > * but currently doesn't make a relevant difference. > > */ > > virtual void flush() {} > > > > /** > > * closes the data source so that it can be reopened > > * > > * Just as open() it should not affect the state of > > * the database unless some previous action requires > > * it. > > */ > > virtual void close() = 0; > > > > I have seen the flush function, however the tde/kde3 logic is such that it > would cleanup the pointers when ticket gets saved and in my opinion the > best is to do it in close() as opposed to open(). If all works fine it > would be sufficient, but thank you for the advise anyway. > > I also added some from the html log at the end of the file with > corresponding source. > Both sides say: > "Never received status for command 'SyncHdr', (outgoing MsgID=4, CmdID=0)" > "Never received status for command 'SyncHdr', (outgoing MsgID=3, CmdID=0)" > > Is this OK? It leads to TSyncSession::InternalResetSessionEx > > // reset session to inital state (new) > ...... In some cases it is, but I am not sure without further analysis. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter. From deloptes at gmail.com Wed Mar 2 22:52:55 2016 From: deloptes at gmail.com (deloptes) Date: Wed, 2 Mar 2016 23:52:55 +0100 Subject: [SyncEvolution] Help needed References: <1456581239.26407.11.camel@intel.com> <1456729612.15445.16.camel@intel.com> <1456926977.9947.4.camel@intel.com> Message-ID: Thanks again Patrick Ohly wrote: > It is also strange that there seems to be debug output missing from the > child process. There's no "child sending sync report" output at all. I > thought there should be, but I'll have to check that in more detail. I have noticed this as well (yesterday) but did not want to overpost here. It would be great if you could investigate as I am at the end of my capabilities. I'll appreciate it a lot. However I do not understand why using file type or other plugin worked and that one does not. Thanks anyway in advance regards _______________________________________________ SyncEvolution mailing list SyncEvolution at syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution From deloptes at yahoo.com Wed Mar 16 11:51:52 2016 From: deloptes at yahoo.com (Emanoil Kotsev) Date: Wed, 16 Mar 2016 11:51:52 +0000 Subject: [SyncEvolution] Help needed In-Reply-To: References: Message-ID: <1638499257.781812.1458129112688.JavaMail.yahoo@mail.yahoo.com> HiI have found a resolution to the problem with the blocked parent/child in sync. After thinking for while about what you said in your previous postings, I inspected the configure options and configure output. I found out that gio-gdbus was enabled by default together with dbus. So I added????--without-gio-gdbusto the configure options and now it runs without blocking. I have some other questions related to the syncing, but I'll open another thread for them. thanks for the hint! regards On Wednesday, March 2, 2016 11:53 PM, deloptes wrote: Thanks again Patrick Ohly wrote: > It is also strange that there seems to be debug output missing from the > child process. There's no "child sending sync report" output at all. I > thought there should be, but I'll have to check that in more detail. I have noticed this as well (yesterday) but did not want to overpost here. It would be great if you could investigate as I am at the end of my capabilities. I'll appreciate it a lot. However I do not understand why using file type or other plugin worked and that one does not. Thanks anyway in advance regards _______________________________________________ SyncEvolution mailing list SyncEvolution at syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution -------------- next part -------------- An HTML attachment was scrubbed... URL: From deloptes at gmail.com Wed Mar 23 07:39:11 2016 From: deloptes at gmail.com (deloptes) Date: Wed, 23 Mar 2016 08:39:11 +0100 Subject: [SyncEvolution] Char encoding in syncevo config Message-ID: Hi all, I might be too frustrated recently and might have overseen something, but is there a way to set up specific char encoding in SyncEvolution configuration? The reason is that I have few old phones in Latin1/ISO-8859-15 and a newer N9 using UTF-8 While N9 works fine, I get mangled ?/?/? in the contacts from the older phones. I'm just thinking how can I solve this. regards _______________________________________________ SyncEvolution mailing list SyncEvolution at syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution From patrick.ohly at intel.com Wed Mar 23 08:13:40 2016 From: patrick.ohly at intel.com (Patrick Ohly) Date: Wed, 23 Mar 2016 09:13:40 +0100 Subject: [SyncEvolution] Char encoding in syncevo config In-Reply-To: References: Message-ID: <1458720820.21177.11.camel@intel.com> On Wed, 2016-03-23 at 08:39 +0100, deloptes wrote: > Hi all, > > I might be too frustrated recently and might have overseen something, but is > there a way to set up specific char encoding in SyncEvolution > configuration? > > The reason is that I have few old phones in Latin1/ISO-8859-15 and a newer > N9 using UTF-8 > While N9 works fine, I get mangled ?/?/? in the contacts from the older > phones. > I'm just thinking how can I solve this. The older phones presumably use vCard 2.1? 3.0 always uses UTF-8. When you receive vCards from those phones and they contain data in ISO-8859-15, does the vCard contain a CHARSET parameter on the property with the non-ASCII content? It is possible to override the default charset for specific phones. See "11.36.19 " in libsynthesis/doc/SySync_config_reference.pdf There is an example of that in syncevolution/src/syncevo/configs/remoterules/server/00_sony_ericsson.xml You can add similar .xml fragments for your phones, using manufacturer and model tags to limit the effect to certain phones. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter. From deloptes at gmail.com Wed Mar 23 23:13:00 2016 From: deloptes at gmail.com (deloptes) Date: Thu, 24 Mar 2016 00:13:00 +0100 Subject: [SyncEvolution] Char encoding in syncevo config References: <1458720820.21177.11.camel@intel.com> Message-ID: Patrick Ohly wrote: > On Wed, 2016-03-23 at 08:39 +0100, deloptes wrote: >> Hi all, >> >> I might be too frustrated recently and might have overseen something, but >> is there a way to set up specific char encoding in SyncEvolution >> configuration? >> >> The reason is that I have few old phones in Latin1/ISO-8859-15 and a >> newer N9 using UTF-8 >> While N9 works fine, I get mangled ?/?/? in the contacts from the older >> phones. >> I'm just thinking how can I solve this. > > The older phones presumably use vCard 2.1? 3.0 always uses UTF-8. Yes it is vCard 2.1. > > When you receive vCards from those phones and they contain data in > ISO-8859-15, does the vCard contain a CHARSET parameter on the property > with the non-ASCII content? My assumption was wrong that it was not UTF (may be). It says quoted printable/utf-8. Could be that the UTF there is misleading? > > It is possible to override the default charset for specific phones. See > "11.36.19 " in > libsynthesis/doc/SySync_config_reference.pdf > > There is an example of that in > syncevolution/src/syncevo/configs/remoterules/server/00_sony_ericsson.xml > > You can add similar .xml fragments for your phones, using manufacturer > and model tags to limit the effect to certain phones. > I attach here some snippets from the log. I see the data properly converted/mapped to the internal fields, only I don't know at which stage it is done. The result however in the Addressbook is not readable (for the cyrillic) and mangled for the ?. I'll have a look next week as the time window for private work gets closed now. Thanks in advance _______________________________________________ SyncEvolution mailing list SyncEvolution at syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution From patrick.ohly at intel.com Thu Mar 24 10:29:38 2016 From: patrick.ohly at intel.com (Patrick Ohly) Date: Thu, 24 Mar 2016 11:29:38 +0100 Subject: [SyncEvolution] Char encoding in syncevo config In-Reply-To: References: <1458720820.21177.11.camel@intel.com> Message-ID: <1458815378.7194.36.camel@intel.com> On Thu, 2016-03-24 at 00:13 +0100, deloptes wrote: > Patrick Ohly wrote: > > > On Wed, 2016-03-23 at 08:39 +0100, deloptes wrote: > > When you receive vCards from those phones and they contain data in > > ISO-8859-15, does the vCard contain a CHARSET parameter on the property > > with the non-ASCII content? > > My assumption was wrong that it was not UTF (may be). It says quoted > printable/utf-8. Could be that the UTF there is misleading? N;ENCODING=QUOTED-PRINTABLE;CHARSET=utf-8:H=C3=B6sch;;;; seems to decode fine to "H?sch", so it should be correct. > > It is possible to override the default charset for specific phones. See > > "11.36.19 " in > > libsynthesis/doc/SySync_config_reference.pdf > > > > There is an example of that in > > syncevolution/src/syncevo/configs/remoterules/server/00_sony_ericsson.xml > > > > You can add similar .xml fragments for your phones, using manufacturer > > and model tags to limit the effect to certain phones. > > > > I attach here some snippets from the log. I see the data properly > converted/mapped to the internal fields, only I don't know at which stage > it is done. In the Synthesis vCard parser. It knows about ENCODING and CHARSET parameters. I'm not exactly sure where in the source, though. > The result however in the Addressbook is not readable (for the > cyrillic) and mangled for the ?. What's mangled about the ?? The name "H?sch" looks okay to me, at least in the internal representation. I can't read cyrillic, so no idea whether that example is okay. If it is wrong after storing in your local database, then you need to dig further in the processing pipeline. The internal representation will get re-encoded again as vCard for storage, and that string then gets passed to your backend. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter. From deloptes at gmail.com Thu Mar 24 21:48:27 2016 From: deloptes at gmail.com (deloptes) Date: Thu, 24 Mar 2016 22:48:27 +0100 Subject: [SyncEvolution] Char encoding in syncevo config References: <1458720820.21177.11.camel@intel.com> <1458815378.7194.36.camel@intel.com> Message-ID: Patrick Ohly wrote: > On Thu, 2016-03-24 at 00:13 +0100, deloptes wrote: >> Patrick Ohly wrote: >> >> > On Wed, 2016-03-23 at 08:39 +0100, deloptes wrote: >> > When you receive vCards from those phones and they contain data in >> > ISO-8859-15, does the vCard contain a CHARSET parameter on the property >> > with the non-ASCII content? >> >> My assumption was wrong that it was not UTF (may be). It says quoted >> printable/utf-8. Could be that the UTF there is misleading? > > N;ENCODING=QUOTED-PRINTABLE;CHARSET=utf-8:H=C3=B6sch;;;; seems to decode > fine to "H?sch", so it should be correct. > yes indeed >> > It is possible to override the default charset for specific phones. See >> > "11.36.19 " in >> > libsynthesis/doc/SySync_config_reference.pdf >> > >> > There is an example of that in >> > syncevolution/src/syncevo/configs/remoterules/server/00_sony_ericsson.xml >> > >> > You can add similar .xml fragments for your phones, using manufacturer >> > and model tags to limit the effect to certain phones. >> > >> >> I attach here some snippets from the log. I see the data properly >> converted/mapped to the internal fields, only I don't know at which stage >> it is done. > > In the Synthesis vCard parser. It knows about ENCODING and CHARSET > parameters. I'm not exactly sure where in the source, though. > >> The result however in the Addressbook is not readable (for the >> cyrillic) and mangled for the ?. > > What's mangled about the ?? The name "H?sch" looks okay to me, at least > in the internal representation. I can't read cyrillic, so no idea > whether that example is okay. > What I mean that I see the Cyrillic as ????? and the ? as two squares. The first happens according my experience when you convert to ASCII and the latter when you do utf to utf - anyway this is not that important. Important is that it is broken and most probably not in syncevolution. > If it is wrong after storing in your local database, then you need to > dig further in the processing pipeline. The internal representation will > get re-encoded again as vCard for storage, and that string then gets > passed to your backend. > I now also think the problem is somewhere deeper. From what I see the vCard passed to the backend looks properly encoded. I'll try to get it printed out to check how it looks like when we receive it and after we've saved it in the address book. thank you for looking into it regards _______________________________________________ SyncEvolution mailing list SyncEvolution at syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution From deloptes at gmail.com Thu Mar 24 23:15:46 2016 From: deloptes at gmail.com (deloptes) Date: Fri, 25 Mar 2016 00:15:46 +0100 Subject: [SyncEvolution] Char encoding in syncevo config [identified] References: <1458720820.21177.11.camel@intel.com> <1458815378.7194.36.camel@intel.com> Message-ID: Hi Patrick, thanks again for the input. It seems to be a bug in the vCard to addressee converter in TDE. regards _______________________________________________ SyncEvolution mailing list SyncEvolution at syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution From deloptes at gmail.com Fri Mar 25 16:16:14 2016 From: deloptes at gmail.com (deloptes) Date: Fri, 25 Mar 2016 17:16:14 +0100 Subject: [SyncEvolution] Char encoding in syncevo config References: <1458720820.21177.11.camel@intel.com> <1458815378.7194.36.camel@intel.com> Message-ID: Looking further into it I solved the issue by passing c_str() to parseVCard TDEABC::Addressee addressee = converter.parseVCard(item.c_str()); works OK and when reading an item the same, after converting the TQString into std::string, passing the c_str() to the item object item.assign(data_str.c_str()); works OK so in both directions now encoding is preserved. thanks for the hints and advises, without your help I wouldn't have solved it so fast. _______________________________________________ SyncEvolution mailing list SyncEvolution at syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution From deloptes at gmail.com Thu Mar 24 07:00:37 2016 From: deloptes at gmail.com (deloptes) Date: Thu, 24 Mar 2016 08:00:37 +0100 Subject: [SyncEvolution] Char encoding in syncevo config References: <1458720820.21177.11.camel@intel.com> Message-ID: Patrick Ohly wrote: > On Wed, 2016-03-23 at 08:39 +0100, deloptes wrote: I forgot to attach the portions from syncevo logs -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: notes.txt URL: -------------- next part -------------- _______________________________________________ SyncEvolution mailing list SyncEvolution at syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution From tino.keitel+syncevolution at tikei.de Tue Mar 1 11:13:23 2016 From: tino.keitel+syncevolution at tikei.de (Tino Mettler) Date: Tue, 1 Mar 2016 12:13:23 +0100 Subject: [SyncEvolution] reject file in git tree Message-ID: <20160301111323.GA1984@mac.home> Hi Patrick, there is a file that does not belong to the git tree IMHO: src/backends/pbap/PbapSyncSource.cpp.rej Regards, Tino _______________________________________________ SyncEvolution mailing list SyncEvolution at syncevolution.org https://lists.syncevolution.org/mailman/listinfo/syncevolution