andig / carddav2fb

Download CardDAV VCards and upload as phonebook to AVM FRITZ!Box
63 stars 19 forks source link

Save special attributes #151

Closed blacksenator closed 5 years ago

blacksenator commented 5 years ago

The idea behind this feature branch is that the special phone attributes (which are not loaded by the CardDAV server) are stored for backup in the internal memory of the Fritz! Box (csv file). This also protects possible data loss, such as during firmware upgrades or unintentional deletion of the first phone book. Thus, the old solution with X-FB-* properties is completely superfluous.

blacksenator commented 5 years ago

If you agree to merge, then please wait. Although I have tested the PR tens of times, but something is not right - I just noticed: Is probably due to my test data - but may not happen ... Atributes.csv:

uid,number,id,type,quickdial,vanity,prio,name
,100,0,home,99,,1,"HD-Sprache"

I'm just walk through the coding again ...

blacksenator commented 5 years ago

I could not reproduce the error. :(

My suspicion was that this could be the cause:

The backup of such entries before overwriting, I wanted to make next. I'm not sure, but maybe I had created such an entry and thought that would cause this error - but that's not the case.