webOS Nation Forums >  webOS Discussion >  webOS Synergy and Synchronization > Building your own cloud with Zarafa using EAS to sync
Building your own cloud with Zarafa using EAS to sync
  Reply
Like Tree5Likes
  • 4 Post By gizmo21
  • 1 Post By magog96

 
Thread Tools Display Modes
Old 07/14/2012, 05:58 AM   #1 (permalink)
pivotCE Developer
 
Posts: 2,115
This is a quick manual for setting up a PIM-sync solution for all your webOS devices on your Synology NAS (for other NAS or own server see last paragraph) using the groupware Zarafa which implements ActiveSync protocoll, so you can use the good working webOS synergy service for Microsoft Exchange.

Working sync between Zarafa and webOS does include:
** E-Mail
** Contacts
** Adresssearch (which implements a JustType "Global Adressbook search" on the Zarafa-Server)
** Calendar
** Tasks (Not available on stock webOS 3.X, but you can get the 2.x task app with syncing to work on Touchpad)

I personally use 2 webOS phones Pre2/3 (webOS 2.2.4) and a TouchPad (3.05) to sync data with the same account on the server, but it could be even used to sync crossplattform and with Outlook, Thunderbird....


Installation on a Synology (here DS-212+):
####################################

Code:
This community edition can be used with for up to three users with the proprietary Zarafa Windows Client (for connecting with Microsoft Outlook).
The WebAccess, IMAP gateway and mobile synchronisation can be used for unlimited users.
For now you have to download the zarafa Install package manually and upload it as file into your Synology Package Center (but there are postings, that in July 2012 the package will be available in the Package Center-Repository)

Download Package:
-----------------------------
"0.2.5 [x86]- contains Zarafa ZCP 7.0.3 / Z-Push 1.5.7 / Fetchmail 6.3.21" from:
https://community.zarafa.com/pg/plug...r-synology-nas
Please ignore the warning regarding "not recommended release" when downloading the ARM release - this is only due to limitations of the Zarafa Community Hub.
If your Syno-NAS has an ARM processor you need the ARM-version and have to press:
"I understand the potential risks and want this release." to get the file:
Zarafa_0.2.5_arm.spk

Then continue reading here:
http://www.zarafa.com/wiki/index.php...r_Synology_NAS
* As i don't use Zarafa for managing my mails at all, i enabled the Mailserver for installation only (with "localhost" as domainname) , but disabled it after all installations where done
* and did not make any "Postfix / Fetchmail Configuration" at all
* I choose to only sync in my local wifi so i did not open the ports to be accessible from outside and connect with Dyndns, but if you want to
read here



* For the different ways to get client-access to Zarafa countinue reading here:
http://www.zarafa.com/wiki/index.php...#Client_Access
** I did not test the Outlook connector so far

Zarafa Webaccess:
---------------------------
* To configure your new "Exchange account" on Zarafa before syncing the first time, you can go to:
http://<yourlocalNASIP>/webaccess or https://<yourDynDNS>/webaccess (from outside, if configured)

* webOS-EAS-Synergy Service only syncs Contacts, Calendars, Tasks, Mails - so you can use "Notes" but for now these are only accessible in the webaccess or Outlook
** if someone knows an webOS app that can sync notes via Active-Sync please post

* Tasks and Calendars
** you can't change the name for the first Tasks-List/Calendar in Zarafa (it's always "Tasks" and "Calendar")
** Taks will apear in the webos stock app "Tasks" as new List "Exchange" with an Exchange symbol, there you could change the list name
** Calendar will apear in the webos stock app "Calendar" as "Microsoft Exchange <<Accountname>>" Calendar with it's own color
** Additional lists and calendars can only be added in Zarafa by right clicking on "Tasks" / "Calendar" - "new Folder"
*** additional lists should appear in webOS after some time with the listname you entered. If not, it's always save to do a Account-Re-Login (see below)
*** additional calendars should appear in webOS after some time with the calendarname you entered and a new color (just like google calendars), if not it's always save to do a Account-Re-Login (see below)
** Calendar can sync all almost all webOS calendar items (haven't tested invitations as i don't use mail in zarafa)
and does sync even more stuff which is just not displayed in the webOS calendar like categories, busystatus, private (sensitivity=2)
** in Ubercalendar "categories" can now be displayed, edited and synced back, perhaps with openwebOS also some other fields will be availaible in the webOS cal

* Contacts can sync almost all webOS contact items (like contact photos, birthday, spouse...) but not the contact reminder as this is a webos special


Account creation in webOS
########################
* On your WebOS device you now need to setup a new Microsoft Exchange Account as Zarafa Z-Push uses Exchange Active Sync (EAS) as protocoll to sync your data
* Go to Accounts - Add Accounts - Microsoft Exchange
* select Manual setup:
** enter the real emailadress of your zarafauser-account (if you don't use mail on Zarafa like me you can use any fake adress username@localhost)
** https://<yourlocalNASIP> or https://<yourDynDNS> (from outside, if configured)
** i just entered a fake domain 'localhost.org' at the Domain field
** <zarafauser>
** <Password>

* If connection works you will be presented with the avaibale Sync options
** E-Mail
** Contacts
** Adresssearch (which implements a JustType "Global Adressbook search" on the Zarafa-Server, only useful if configured https://<yourDynDNS>)
** Calendar
** Tasks (Not available on webOS 3.X, but you can get the 2.x task app with syncing to work on Touchpad)

* You can change the <<Accountname>> to something sensible, so you don't mix it up with your companys Exchange Account in when adding calendar events...
* After that Sync-Notification should spin for a while and you are ready to go...


Migration from an other Sync-Providers (Google, Palm Profile, Chapura Echo...)
################################################################

Calendar (on the fly):
----------------------
* Nice thing is in calendar you can change the events from other accounts to zarafa when hitting the account selection button.
* This will delete the event in the old account (google/palm profile...) and add it as new into zarafa.

If you like to keep it in the other account as backup for now, you could also select 'Edit as new Event' in Ubercalendar to create
an identical copy and change account in this one.

* This manual method is only good for a few single events, for exporting/importing many events look for "Export/Import options" (todo)


Contacts (on-the-fly not possible):
--------------
The bad thing is, you can't do the same on-the-fly convert in contacts. No account changing and no copy function there.

Does someone know a method to "batch convert" all events/contacts on the webOS device from one account to a new one - let's say 'Palm Profile' to 'Zarafa'?
Best would be a simple interface to select source account (for contacts/calendar) and destination account and perhaps a checkbox if it should copy or move the events/contacts.


Contacts (Export/Import):
------------------------------------
* As long as batch converting is not available, you have several options to fill your Zarafa-Server with contacts:

1. Exporting all your contacts in your webOS device and reimporting it on your webOS device, having Zarafa as standard contacts account (!!!) - Nice thing is all contactdata of all accounts is exported and merged in one .vcf file so if you have facebook account in your contacts the facebook-emailadresses will be in your Zarafa too afterwards. But more on this in the cleaning the file section below.
* Optional: Before exporting your contacts you perhaps want to apply the following patch for webOS 2.2.4 [Patch] Fixing/Enhancing vCard (.vcf) Export (it fixes some limitations in export noted below)
* Export all contacts as .vcf or via Export all your contacts | webOS Nation
** be sure to set in contacts the default account to "Zarafa"
** before importing the .vcf again on your webOS device you can edit it and so clean data a little bit, because:
*** cause URL is wrong formatted in in export .vcf (fixed with applied patch mentioned above)
*** Kids/Spouse is missing in export .vcf (fixed with applied patch mentioned above)
*** perhaps delete @facebook.com adresses if not wanting them in Zarafa

Be sure to edit the .vcf file only with a UTF-8 compatible editor, else you will get wrong entries on special characters like Umlauts.

Only edit the file like this if you understand what you are doing. Especially the VOICE replacements with +49 only make sense in germany and
that some phonenumbers are saved in email-fields could be a special of my multiconverted data.
These replacements should be perhaps not be made automatically, but by hand one-by-one .

Code:
Search for:                                                                    Replace with:
TYPE=:     		                                                	URL:  or  URL;Type=WORK: (not needed with applied patch mentioned above)
&  				                                                       +    (in Names) 
& 				                                                        can be left in URLs, but will be &amp ; afterwards
>				                                                        will be &gt ; afterwards (delete if not wanted)
EMAIL;TYPE=INTERNET:0     	                                TEL;TYPE=HOME,VOICE:0  
EMAIL;TYPE=INTERNET:+49                                    TEL;TYPE=HOME,VOICE:+49
VOICE:09			                                                VOICE:+499
VOICE:08			                                                VOICE:+498
VOICE:07			                                                VOICE:+497
VOICE:06			                                                VOICE:+496
VOICE:05			                                                 VOICE:+495
VOICE:04			                                                 VOICE:+494
VOICE:03			                                                 VOICE:+493
VOICE:02			                                                VOICE:+492
VOICE:01			                                                VOICE:+491
VOICE:(0			                                                 VOICE:+49
OTHER:01			                                                OTHER:+491
OTHER:02			                                                OTHER:+492
OTHER:09			                                                OTHER:+499
OTHER:08			                                                OTHER:+498
OTHER:(0                                                                      OTHER:+49
FAX:09				                                                FAX:+499
FAX:08				                                               FAX:+498
FAX:04				                                                FAX:+494
FAX:(0				                                                FAX:+49
ADR;TYPE=WORK:;;;;;;de		                               <delete this line seems to be of Skype>
)   at Phonenumbers		                                       <delete> 
TYPE=HOME,VOICE:+491		                                TYPE=CELL,VOICE:+491   Sometimes german cellnumbers should be CELL (e.g. for MojoWhatsapp)
TYPE=OTHER,VOICE:+491		                         TYPE=CELL,VOICE:+491   Sometimes german cellnumbers should be CELL (e.g. for MojoWhatsapp)
* Add the missing lines of Partners and Kids by hand to the vcards (not needed with applied patch mentioned above):
Quote:
X-SPOUSE:<Partnername>
X-CHILD:<childrennames>
"Spouse" (Partner) can be seen in Zarafa but "Children" (kids) sadly not in Webaccess, but both are synced even if said different in z-push (d-push 1.5.10 - vcarddir_8php_source.html)
// not supported: anniversary, assistantname, assistnamephonenumber, children, department, officelocation, radiophonenumber, spouse, rtf


* If you want Companys only to have the Organisation field filled, you have to remove the "N:<Companyname>" line above the lines
FN:<Companyname>
ORG:<Companyname>;

* Skype-only Contacts could be deleted (cause are there already by Skype-Message-Account) or integrated into the contact by copying the line
X-SKYPE:<skypeusername>
to the apropriate contact.

If you cleaned/updated your .vcf this way you have a complete backup of all your contact data, even for backup and later import elsewhere

*At last step count: "BEGIN:VCARD" with a texteditor and compare it later to the xxx imported entries, should be the same

** Before importing the cleaned .vcf you have two choices what to do with your old contatcs account:
*** 1. Option: I left the old account active by purpous, cause i wanted to see if some data is missing after import and wanted then to copy data over fast in webOS contacts, another thing is that available account reminders (Palm propretary and thous not synced) this way stay linked to the new Zarafa contacts as well. (Well but then you have to delete the the old account afterwards)
*** 2. Option: You can now think about removing the standard contacts account you use atm, as the contacts will be then duplicated - this can not be done if you use Palm Profile by now. But is no big problem as Synergy should take care about duplicates.
** Now again be sure to set in contacts the default account to "Zarafa"
** Now you can import the .vcf by sending it to your webOS device by email and clicking the attachment or copy it to your USB-drive and click it in the Filemanager Internalz
** after a while the contacts app opens and displays something like "200 Contacts will be added - could take a while" - BE SURE TO DO THIS ONLY IF YOU HAVE SET ZARAFA AS YOUR DEFAULT CONTACTS ACCOUNT
** Some minutes later all contacts should be visible in your webOS device sometimes merged by synergy and after a while also in Webaccess of Zarafa.
*** If not in Zarafa, enter your accounts password again in webos and press "Sync Now" in Contacts App

more Export/Import options:
-----------------------------------
http://www.zarafa.com/wiki/index.php/Migration

* Export as vcard (.vcf) , .ics / .ical from Google, Palm Desktop, webOS Palm Profile, Agendaz (all webOS Cals), Outlook...
* Import on the phone: vcf works directly by clicking, ics,ical could be imported with http://developer.palm.com/appredirec...t.icalimporter
* Import via WebAccess, commandline - possible but not checked
* Import via Outlook and Outlook connector - possible but not checked


Advanced Configuration and troubleshooting
#####################################

Start/stop the Zarafa Service manually
----------------------------------------------------
* Go to Package-Center on your Synology and look if the Status of Zarafa is running
** there you can start/stop Zarafa via button press

* another quick access possibility is to use DSM mobile interface, there you have an iPhone syled switch to start/stop Zarafa.

* via ssh connection to your synology server:
Quote:
/var/packages/Zarafa/scripts/start-stop-status stop
/var/packages/Zarafa/scripts/start-stop-status start
- after restart it can be 5-10min before the sync is done (can be speeded up with Account-Re-Login)

Account Re-Login on webOS Device to start syncing
-----------------------------------------------------------------------
* to speed up syncs while testing or when it seems your webos device does not sync, it's always save on the webos device
to go to "Accounts" - <<Zarafa>> - "Change Login" - and enter same password again -> this triggers a new sync
** (if someone knows a better method, please post here)


Z-Push Test:
------------------
* To test if the Active-Sync interface of Zarafa is running so to:
http://<yourlocalNASIP>/Microsoft-Server-ActiveSync
<zarafauser>/<Password>
* If this page is displayed, z-push is running

Code:
Z-Push - Open Source ActiveSync
Version 1.5.7RC-1082
GET not supported
This is the z-push location and can only be accessed by Microsoft ActiveSync-capable devices
* If you routed the ports to be accessible from outside your local wifi you could also test z-push from your browser in webos by entering
https://<yourDynDNS>/Microsoft-Server-ActiveSync
* be sure use https or else your password will be send plaintext when on "starbucks wifi"


Shutdown/Startup Zarafa-Service automatically:
-----------------------------------------------------------------
* If you leave the Zarafa-Service always running (default), your Synology-HDDs will never go to powersave sleep mode and this is only good mode
if you also manage mails via Zarafa or want to reach the webaccess from outside your wifi. If this is your way, stop reading this paragraph.

* For me i only wanted a Sync-Server to have a backup for my Contacts, Calendars and Tasks and
i didn't want to open the ports to reach zarafa webaccess from outside my wifi, but i wanted to save some energy instead
** Option 1) is to shutdown whole Synology at night for example via Sysnology - Energy-menu
** Option 2) i thought of just to shutdown the Zarafa-Service for the time you want the HDDs to spindown (and if no other traffic is on your NAS)
* You have to edit crontab with 'vi' to do this, which is not so easy for linux newbies
** read manuals here:
Basic commands to get around the Synology Box using the CLI - SynologyWiki
Cron
Vi
Code:
a --> to go to Edit Mode
<ESC> --> end Edit Mode = command mode

Commands:
dd         - delete a line 
u          - undo
:wq        - (write & quit) saves changes to file and quits
:q!        - (quit strong) quits without saving
* start ssh-client like putty.exe and login with root/<<admin-password>> and type
** vi /etc/crontab
**append the following lines to have 2 synctimes (between 7 and 8 in the morning and 22-23h in the evening)

Code:
0       7       *       *       *       root    /var/packages/Zarafa/scripts/start-stop-status start
0       8       *       *       *       root    /var/packages/Zarafa/scripts/start-stop-status stop
0       22      *       *       *       root    /var/packages/Zarafa/scripts/start-stop-status start
0       23      *       *       *       root    /var/packages/Zarafa/scripts/start-stop-status stop
** at this pointYou could also check the other crons tasks that are already there and perhaps change their staring time to be the in the zarafa timeframe, so
the synology spins up the hdds even less often.
* Need to restart crond once after this change :
/usr/syno/etc/rc.d/S04crond.sh stop
/usr/syno/etc/rc.d/S04crond.sh start

* Sadly i found no solution so far for automatically start the sync from the webos device to the server when i'm at home (wifi) at these running hours
** so when zarafa is running you have to manually start syncs in webOS by opening "Accounts" - <<Zarafa>> - "Change Login" - and enter same password again
-> this triggers a new sync, Which is not perfect cause not automatically done.
But is a trade-off for not having the HDDs running all the time and i'm used to start syncing manually as i had Chapura Echo Palm Desktop Sync before

If someone knows a better method or knows why the EAS-Synergy-Service stops to search for the server after not beeing able to connect for a while (which i assume is the problem),
PLEASE POST HERE.



Not having a Synology NAS?
########################
There are ready made packages for other NAS too like QNAP and you can set it up on your own hardware and OS.

Complete manual for install on any server:
Zarafa Collaboration Platform
http://www.zarafa.com/wiki/index.php/Main_Page
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?

Last edited by gizmo21; 06/22/2013 at 05:30 PM. Reason: Added DSMmobile, Added vcf-Export patch option, Added Import Contacts
gizmo21 is offline   Reply With Quote
Liked by darth_luigi, chris42, tovivekmishra and 1 others like this.
Thanked by somline, T-Pad
Old 07/14/2012, 11:16 AM   #2 (permalink)
pivotCE Developer
 
Posts: 2,115
Limitations of the contacts dataformat
------------------------------------------------------
* Due to limitations of Zarafa (or perhaps the underlying MS Exchange dataformat) it does not sync all possible information that can be done entered in a webOS device:

** Email-Adress-Types are lost: in webOS all emailadresses can get a label ("type" in vcard format) WORK,HOME,OTHER like houseadresses. As the exchange contacts format only knows email,email2,email3 the type info is lost after sync. So if you only edit your contact once outside your primary webos device all email lables will go to default adress type OTHER

** Email-Adresses more then 3 will be saved in notes field on Zarafaserver or displayed this way in other non webOS clients. Seems to be also a exchange limitation that it only can store 3 email-adresses, so all other are stored in notefield in Zarafa as:
Code:
--- Palm data (do not modify) ---
@palm@{"emails":["email4@here.com","email5@here.com"]}@palm@
Sadly also without type so also these adresses will lose the label. Good thing is, in all webOS devices these note entries will be converted back to real email fields, but as said above as OTHER

** Instant-message adresses lose their IM-Network-Type (x-yahoo, x-skype) and so their label (SKYPE,YAHOO,MSN) in webOS. Seems to be the same exchange limitation (only 1IM-adress without network type) , but all IMs are stored in Zarafa but not shown in webaccess frontend. The bad thing in webOS is after syncing back to the device all IM-Adresses go to the default IM-Network-Type "IM" which is even worse then losing emaillabel cause you often can't tell which IM name is for which network. On webOS devices itself it is not that bad, cause you usually have connected to your Skype,Yahoo,MSN,ICQ accounts and so having the IM-names in your one synergy merged contact and with correct label.

If someone knows how to get these type limitations fixed, please let me know.



[Update for manual adding of more fields in Zarafa]
If you want to add more fields then available in Zarafa, you can add the fields in the Notes text area using this scheme:
Quote:
--- Palm data (do not modify) ---
@palm@{"emails":["email1@domain1.com","email2@domain1.com","email2@domain1.com","email4@domain1.com"],"ims":["skypename1","yahooid2","icqnumber111111"],"urls":["http://palm.com","http://hp_sux_BigTime.de"],"numbers":["+49123456789","+155511213"]}@palm@

so far i found these field names:
Quote:
{"urls":[" "]}
{"numbers":[" "]}
{"emails":[" "]}
{"ims":[" "]}

Last edited by gizmo21; 12/17/2012 at 08:25 AM.
gizmo21 is offline   Reply With Quote
Old 07/15/2012, 10:48 PM   #3 (permalink)
Member
 
Posts: 2
Good ~~~very good`
liangzhi is offline   Reply With Quote
Old 07/21/2012, 09:58 AM   #4 (permalink)
pivotCE Developer
 
Posts: 2,115
New Version of Zarafa SPK is now included in the Synology Package-Center for easy installation. Only Z-Push for EAS package is now to be installed seperatly:
https://community.zarafa.com/pg/plugins/project/8590

Installation/Update instructions in Wiki are updated:
http://www.zarafa.com/wiki/index.php...r_Synology_NAS
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
gizmo21 is offline   Reply With Quote
Old 08/03/2012, 07:01 AM   #5 (permalink)
pivotCE Developer
 
Posts: 2,115
there could be a way to transfer contact entries to another account by using luna-send commands, will try:
Deleting ALL contacts in 2.1
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
gizmo21 is offline   Reply With Quote
Old 10/04/2012, 03:43 PM   #6 (permalink)
pivotCE Developer
 
Posts: 2,115
Updated "Contacts (Export/Import):" section in first thread.
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
gizmo21 is offline   Reply With Quote
Old 10/04/2012, 06:09 PM   #7 (permalink)
Member
 
Posts: 31
If you want the latest Z-Push v2.0.2 or v2.0.3 for Zarafa on you Synology NAS instead of the old (but official) Z-Push v1.5.x release for the Synology DiskStations, you can get it on my website. It is an unofficial release with no support by myself but uses the official release files (you can extract the *.spk file with e.g. 7-zip; it is basically a tar archive) which have been repackaged and updated with some shell scripts for the installation and removal process on the Synology DiskStation using the DSM package manager.
The added scripts are based on those from the official Z-Push v1.5.x for Synology but updated for the new path details you can find in the official release as well as the *.spk package (in one of the subdirectories of the included archive).
If you don't trust me, just extract the *.spk archive and compare the content to the offical Z-Push release.

German: http://www.juergen-ulbts.de/content/....html#projects
English: http://www.juergen-ulbts.de/content/....html#projects

Note 1: I hope in the future there will be again official Z-Push releases for the Synology DiskStations as I only have limited free time which I would like to work on my own projects.

Note 2: I might add a Java application to optimize the Cellbrite Export based in the information gizmo21 added to the first post to make the migration a bit easier.
__________________
Juergen

Last edited by magog96; 10/04/2012 at 06:17 PM. Reason: Added notes
magog96 is offline   Reply With Quote
Old 10/05/2012, 01:40 AM   #8 (permalink)
pivotCE Developer
 
Posts: 2,115
perhaps for the worst lacks of celbrite export a patch on the webOS script for the Export would be nice. At the moment i found these:
* does not name the URL field correctly: TYPE=: instead of URL:
* misses to export x-spouse and x-child
* seems to copy companyname from ORG: into Name field (N: ) if that is empty in Pre, resulting in double naming this contact.

Perhaps someone knows where to look for the cellebrite export script in webos?

At the import of a .vcf in webOS there are some character conversions made which can break fields or put wrong characters in:
& is getting &amp ;
> is getting &gt ;
and there will be more of these usual html entity conversions.

This is also a problem of webOS, but on the import script side.

As for the new server versions, i will update my synology and see if the dropped lables (types) problems on IM and EMAIL are fixed there.

Last edited by gizmo21; 10/05/2012 at 04:32 AM.
gizmo21 is offline   Reply With Quote
Old 10/05/2012, 06:47 AM   #9 (permalink)
pivotCE Developer
 
Posts: 2,115
Just fixed that bad formed URL line in the newer webOS 2.x++ cellebrite export .vcf files:

there was a line missing to put the URL-Marker (which is "URL") in front of the line, so it just added "Type=:" instead of "URL;Type=<urlType>:"

\usr\palm\frameworks\contacts\submission\111\javascript\vCard\VCardExporter.js
just add this line to after line 555
Quote:
urlLine += VCard.MARKERS.URL + ";";
this is the fixed function then from Line 542-563:
Quote:
_writeUrlToVCard: function (urlObject) {
if (!urlObject) {
return;
}

Assert.require(urlObject instanceof Url, "Object passed to _writeUrlToVCard must be an instance of Url");
var urlValue = urlObject.getValue(),
urlLine = "";

if (!urlValue || urlValue.length < 1) {
console.warn("VCardExporter bad Url passed into _writeUrlToVCard. Not writing URL.");
return;
}

urlLine += VCard.MARKERS.URL + ";";

urlLine += VCardExporter._buildCorrectLabelBasedOnVersion(this.vCardVersion, VCardExporter._getUrlLabels(urlObject.getType())) + ":";

urlLine += urlValue + "\r";

this.vCardFileWriter.writeLine(urlLine);
},
Btw. this fixes also the URL in every other type of vcf export (e.g. single contact export via mms, mail...)

Will see what more i can fix (spouse, child...) it should all be there. and then create a patch to fix this.
Sadly this is not even fixed in webOS 3.0.5 so i have to write it myself
(note to myself based on \usr\palm\frameworks\contacts\submission\111\javascript\properties\Relation.js parsed like \usr\palm\frameworks\contacts\submission\111\javascript\properties\Organization.js)

Usefull files are also:
\usr\palm\frameworks\contacts\submission\111\javascript\vCard\VCard.js MARKERS and more
\usr\palm\frameworks\contacts\submission\111\javascript\vCard\VCardImporter.js perhaps for import fix of html enties
\usr\palm\applications\com.palm.app.monad\app\assistants\main-assistant.js perhaps to create another button for another filename and path in the cellebrite export app
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?

Last edited by gizmo21; 10/05/2012 at 08:36 AM.
gizmo21 is offline   Reply With Quote
Old 10/08/2012, 08:43 AM   #10 (permalink)
Member
 
Posts: 31
Quote:
Originally Posted by gizmo21 View Post
perhaps for the worst lacks of celbrite export a patch on the webOS script for the Export would be nice. At the moment i found these:
* does not name the URL field correctly: TYPE=: instead of URL:
* misses to export x-spouse and x-child
* seems to copy companyname from ORG: into Name field (N: ) if that is empty in Pre, resulting in double naming this contact.

Perhaps someone knows where to look for the cellebrite export script in webos?
...
We should work on this together.
The next 2 or 3 evenings I have to work on my barcode scanner software but a little distraction is always welcome.
I already worked on some of the webOS code as well as the vcard format. You should get an E-Mail later this evening.
__________________
Juergen
magog96 is offline   Reply With Quote
Liked by somline likes this.
Old 10/10/2012, 01:58 AM   #11 (permalink)
pivotCE Developer
 
Posts: 2,115
Just managed to also get relations (x-spouse, x-child) exported in .vcf, so together with the fixing of wrong formatted URL two main bugs of .vcf export are fixed.
Will make a patch for it and perhaps a tweakable to disable relations export. And will post more on it in another thread (this should stay a Zarafa thread):

[Patch] Fixing/Enhancing vCard (.vcf) Export
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?

Last edited by gizmo21; 10/11/2012 at 07:12 AM.
gizmo21 is offline   Reply With Quote
Old 10/28/2012, 02:14 PM   #12 (permalink)
pivotCE Developer
 
Posts: 2,115
Quote:
Originally Posted by gizmo21 View Post
Limitations of the contacts dataformat
------------------------------------------------------

so all other are stored in notefield in Zarafa as:
Code:
--- Palm data (do not modify) ---
@palm@{"emails":["email4@here.com","email5@here.com"]}@palm@
Sadly also without type so also these adresses will lose the label.

If someone knows how to get these type limitations fixed, please let me know.
Found the "@palm@" text in the binary file \usr\bin\mojomail-eas in webOS so all the handling of this seems to be done in webOS and it will be impossible to get this fixed as it is binary.
I just don't know what happens when Zarafa (EAS) would report it could deal with multiple IMS or more Email-fields of the same type

Code:
$? com.palm.contact.eas:1  %Y-%m-%d    invalid date time format    src/data/EasContactAdapter.cpp  %Y-%m-%dT%H:%M:%S.000Z  department  title   streetAddress   locality    region  postalCode  country contactSetId    photo_base64    photos  type_square localPath   .*<(.+)>.*  type_other  anniversary birthday    phoneNumbers    type_assistant  addresses   type_work   tags    relations   type_child  type_spouse organizations   emails  honorificPrefix givenName   middleName  familyName  honorificSuffix nickname    ims urls    accountName assistantName   customerId  governmentId    managerName mms nativeBodyType  officeLocation  yomiCompanyName yomiFirstName   yomiLastName    displayName ,   type_work2  type_work_fax   type_car    type_company    type_home   type_home2  type_personal_fax   type_mobile type_pager  type_radio  skipping photo. file is too large:  unable to stat contact photo:   %Y-%m-%dT%H:%M:%S%Z type_default            X? ? ? ? 4? ?     h? d? E? N5boost6detail17sp_counted_impl_pIN25EasContactMetaDataAdapter7AddressEEE       ? (l? xb?         T* boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = EasContactMetaDataAdapter::Address]  ? ?w?     v?     u?     <v?     ? ?? ?? $? ?? L? `? 8? <? ? ? 4? ,? ? 25EasContactMetaDataAdapter 8? ?     src/data/EasContactMetaDataAdapter.cpp  failed to parse a field from eas metadata   street  city    postal  numbers 

    --- Palm data (do not modify) ---   @palm@  failed to parse an address field from eas metadata  failed to parse eas metadata from notes field
Perhaps i try fiddling aroung with \usr\bin\mojomail-eas-debug
http://forums.webosnation.com/hp-tou...r-working.html
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
gizmo21 is offline   Reply With Quote
Old 01/28/2013, 06:59 AM   #13 (permalink)
pivotCE Developer
 
Posts: 2,115
Task app is not present on TouchPad, but the 2.x task app with syncing works on Touchpad
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
gizmo21 is offline   Reply With Quote
Old 01/29/2013, 12:05 AM   #14 (permalink)
Member
 
Posts: 14
I tried to install Zarafa 7.0.7 to an ubuntu server 12.04LTS on a virtual machine. I installed with z-push 2.0.6.
The Zarafa part is quite easy. I can connect to zarafa server from PC right after installation. I can also dump my contacts from Palm Desktop using a .csv file.

The Z-push part, however, is quite bumpy. I spent a lot of time solving SSL issue. Finally got it solved by applying a free SSL certificate from StartSSL. Now my touchpad can connect to my zarafa server and created an account.

But nothing happened after the account was created. No contacts, calendar, nor email synced. If I go to the account menu in Contacts, I can see the new account. But when I press on that account name, a blank screen shows instead of the normal account details. In Accounts app I can enter the Account Settings page and I can change if I want to use this account with Contacts, Calendar, etc. But when I press 'Change Login Settings', a blank screen shows.

I see no error in z-push-err.log and nothing abnormal in z-push.log. Does someone have experience on this?
chenkl is offline   Reply With Quote
Old 02/04/2013, 01:00 AM   #15 (permalink)
Member
 
Posts: 14
I must did something stupid during installation so Z-push data is kind of messed up. I use z-push-admin.php to remove the user and clear looping data from server side, remove account from phone and re-create a new one. Now it's working. :-D
chenkl is offline   Reply With Quote
Old 02/05/2013, 04:24 PM   #16 (permalink)
pivotCE Developer
 
Posts: 2,115
Quote:
Originally Posted by chenkl View Post
I must did something stupid during installation so Z-push data is kind of messed up. I use z-push-admin.php to remove the user and clear looping data from server side, remove account from phone and re-create a new one. Now it's working. :-D
great to hear zpush 2.x is working for you. Which device do you use? If it's a TouchPad and you have some experince in packing / installing you could try to install the tasks app of webOS 2.x to get tasks also get synced with zarafa.
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
gizmo21 is offline   Reply With Quote
Old 02/06/2013, 11:27 AM   #17 (permalink)
Member
 
Posts: 27
Hi,
I'm using the latest Zarafa 7.1.3-40304 on ubuntu 12.04 LTS Server. After some tryings to become Zarafa working I found "Yaffas" ( yaffas: project ). Yaffas is a server based on webmin for administration of Zarafa. It has an ubuntu package repository and its well documented ( yaffas documentation ).
I became Zarafa running after the first try.

I'm using it with my Pre3 8 moths without any errors. I use calendar, tasks, mail and contacts including online contact search.

Greets
Daniel from Germay
davodego is offline   Reply With Quote
Old 02/06/2013, 12:23 PM   #18 (permalink)
pivotCE Developer
 
Posts: 2,115
Quote:
Originally Posted by davodego View Post
Hi,
I'm using the latest Zarafa 7.1.3-40304 on ubuntu 12.04 LTS Server. After some tryings to become Zarafa working I found "Yaffas" ( yaffas: project ). Yaffas is a server based on webmin for administration of Zarafa. It has an ubuntu package repository and its well documented ( yaffas documentation ).
I became Zarafa running after the first try.

I'm using it with my Pre3 8 moths without any errors. I use calendar, tasks, mail and contacts including online contact search.

Greets
Daniel from Germay
how about your experience with limitations around the saving of IM types (a.k.a displayed as IM instead of displaying SKYPE or YAHOO) when editing contacts in the webfrontend. Did zarafa fix that in 7.1x?
__________________
Patch Enhancing vCard Export -|- Your own cloud with Zarafa (EAS sync) -|-
Tasks-app of 2.x on 3.x incl.EAS sync -|- SYM key in Enyo on phones -|- My hidden webOS Tips and Tricks - like it ?
gizmo21 is offline   Reply With Quote
Old 02/07/2013, 01:46 AM   #19 (permalink)
Member
 
Posts: 27
Quote:
Originally Posted by gizmo21 View Post
how about your experience with limitations around the saving of IM types (a.k.a displayed as IM instead of displaying SKYPE or YAHOO) when editing contacts in the webfrontend. Did zarafa fix that in 7.1x?
I'm not using IM's (just some skype), so I don't know.
I tried a little. When I make a entry in the IM field in Zarafa it was shown as IM in webos and not as skype or something.
When I add a IM account in webos for Zarafa it was not shown in Zarafa.
So I think it's not fixed.

Daniel
davodego is offline   Reply With Quote
Old 02/07/2013, 09:09 AM   #20 (permalink)
Member
 
Posts: 14
Quote:
Originally Posted by gizmo21 View Post
great to hear zpush 2.x is working for you. Which device do you use? If it's a TouchPad and you have some experince in packing / installing you could try to install the tasks app of webOS 2.x to get tasks also get synced with zarafa.
I use Touchpad. Later I will add my veer into use.
The main reason I use zarafa is for contact, so I'm still working on the csv import. Matching Palm desktop and zarafa columns are not easy.
chenkl is offline   Reply With Quote
Reply

 

Tags
activesync, eas, zarafa

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0