Ah yes! that would be the issue. In that case the original instructions mostly hold which tell you to copy the database file across from the phplib directory.
Both caldav entries and carddav entries get stored in an sqlite database. I would recommend keeping them separate although the database schemas is actually identical so a single file can be used.
Assuming you are using the version 2 recently updated sabredav / php, to setup the empty carddav database (which defines the schema), copy :
surgemail\phplib\netwin_v2\data\caldb_v2.sqlite
to
surgemail\scripts\data\abkdb_v2.sqlite
which should leave you in the same state as if you had previously run the old version and upgraded.
I will be making both the installation method and the instructions a bit more obvious.
Let me know how that goes thanks.
Marijn
On Monday 04/01/2021 at 4:58 pm, Tom Cross wrote:
Hi
I have not previously used the carddev???
Have I missed a step??
regards
tom cross
partner HTMLnet
e: tomc@html.com.au
m: 0418 295 336
[ Image ]
On Sunday 03/01/2021 at 21:31:30, Surgemail Support (Marijn) wrote:
Hi
Sorry for the delayed response. I have been almost entirely out of internet range for a week!
Check the scripts/abk.php file as to which file was previously being accessed as the carddav database. The default as per instructions is surgemail/scripts/data/abkdb.sqlite although it could just as easily be using surgemail/scripts/data/caldb.sqlite or some other file.
If using caldb.sqlite, the calendar database migration will already have done the addressbook migration so step 4 is not needed.
If you are using some other file copy it to surgemail/scripts/data/abkdb.sqlite and step 4 below should work to do the database upgrade to surgemail/scripts/data/abkdb_v2.sqlite
Regardless of how you do the upgrade, and what the name of the final file is, you will need to make sure surgemail/scripts/abk_v2.php accesses the correct database file.
Let me know what results that yields thanks. If needed send me a listing of the surgemail/scripts directory for further comment.
Marijn
On Tuesday 29/12/2020 at 12:39 pm, Tom Cross wrote:
Hi Marijn
The only sqlite files in Surgemail are caldb_v2.sqlite
No abkdb_v2.sqlite
The Cal functions are working OK.
The Card functions are not.
regards
tom cross
partner HTMLnet
e: tomc@html.com.au
m: 0418 295 336
[ Image ]
On Monday 28/12/2020 at 14:39:01, Tom Cross wrote:
Hi Marijn
When I run the tellmail in step 4, it returns it cannot find the files.
regards
tom cross
partner HTMLnet
e: tomc@html.com.au
m: 0418 295 336
[ Image ]
--- Original message ---
Subject: Re: [SurgeMail List] CardDev Sync Contacts
From: Surgemail Support (Marijn) <surgemail-support@netwinsite.com>
To: <surgemail-list@netwin.co.nz>
Date: Tuesday, 15/12/2020 12:39:06
The carddav functionality should now be functional with the latest caldav / sabredav in surgemail.
You will need to:
1) be running surgemail binary version 7.5b18+
2) run the calendar "Update Current Install" button to get the latest version of the files in surgemail/phplib/*_v2 directories (this is safe to rerun in terms of already running caldav)
3) copy the surgemail/phplib/netwin_v2/abk_v2.php to surgemail/scripts/abk_v2.php
4) Lastly to explicitly upgrade the old abk database (surgemail/scripts/data/abkdb.sqlite) to the new database (surgemail/scripts/data/abkdb_v2.sqlite) run this tellmail command:
tellmail abkdb_migrate
What platform were you on? I have just placed very latest linux64, windows32 and windows 64 builds in the specials directory.
Let us know how that goes thanks, and I'll make sure I update the instructions page too in the next day or so :-)
Marijn
On Monday 07/12/2020 at 2:38 pm, Tom Cross wrote:
Hi
In the instructions
the folder Netwin is used.
We have Netwin and Netwin_v2
Do we use the _v2?
regards
tom cross
partner HTMLnet
e: tomc@html.com.au
m: 0418 295 336
[ Image ]