Kontakte mit dem Handy abgleichen über Nextcloud-Adressbuch, .vcf einlesen (0.44.0)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-11-04 19:48:42 +00:00
parent bbeaa39ad1
commit 8fde24a8a2
15 changed files with 733 additions and 5 deletions

View File

@@ -0,0 +1,31 @@
-- Kontakte mit dem Handy abgleichen über ein Adressbuch in der Nextcloud (Henning, 04.11.2026).
-- Der Kontakt bekommt Mobilnummer und Adresse, wie sie im Handy stehen.
alter table kontakt
add column mobil text,
add column strasse text,
add column plz text,
add column ort text;
-- Je Karte im Adressbuch: zu welchem Kontakt sie gehört und welcher Stand zuletzt auf beiden Seiten gleich war.
-- Ohne Änderungsprotokoll und nicht in der Sicherungsdatei: der Abgleich baut sie neu auf.
create table kontakt_abgleich (
href text primary key,
-- null: im Programm gelöscht, die Karte wird beim nächsten Abgleich im Adressbuch entfernt
kontakt_id uuid unique references kontakt (id) on delete set null,
uid text not null,
etag text,
karte text not null,
-- Fingerabdruck der gepflegten Felder beim letzten Abgleich
stand text not null,
-- im Handy gelöscht; der Kontakt bleibt im Programm
geloescht boolean not null default false,
geaendert_am timestamptz not null default now()
);
-- letzter Lauf je Abgleich, ohne Protokoll (läuft alle paar Minuten)
create table abgleich_stand (
art text primary key,
zuletzt timestamptz,
meldung text,
fehler text
);