Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2017 18:16:06 -0800
From:      "Chris H" <bsd-lists@BSDforge.com>
To:        "Julian H. Stacey" <jhs@berklix.com>
Cc:        <ports@freebsd.org>
Subject:   Re: Exporting phone list to a fritz router (.xml) & android phone app.
Message-ID:  <c5845f55c009abf68650e4a09e5ebc88@udns.ultimatedns.net>
In-Reply-To: <201711292301.vATN1KXT065883@fire.js.berklix.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 30 Nov 2017 00:01:20 +0100 "Julian H=2E Stacey" <jhs@berklix=2Ecom> sai=
d

> "Chris H" wrote:
> > On Mon, 27 Nov 2017 22:42:14 +0100 "Julian H=2E Stacey" <jhs@berklix=2Ecom>=
 said
> >=20
> > > Hi ports@ people
> > > Any reccomendations of ports/ that may manage phone & address booke,
> > > & import/export to Fritz Routers & Android phone app ?  Should I
> > > be using a stack of vCards format as a common intermediary to edit
> > > the master with vi, or some port ?
> > >=20
> > > My large phone+address book has for 20 years been vi editable in my o=
wn
> > > format:
> > > =09http://www=2Eberklix=2Ecom/~jhs/src/bsd/jhs/bin/public/phone/
> > > which supports lots of additional fields way beyond phone & address,
> > > & Makefiles export to 3 device formats:
> > > =09BSD ISDN i4b S0 card man(8) isdnd
> > > =09ports/comms/gnokii nokia etc mobiles
> > > =09ports/misc/estic Istec 1008 etc (PBX=3DLCO=3DTK Anlage)
> > >=20
> > > I now want to export to 2 new device formats:
> > > =09Fritz routers that export & import in xml format, sample appended=2E
> > > =09Android phone app=2E  Format unexamined yet
> > >=20
> > > I expect to lash up an export from phone=2Ec to Fritz XML,
> > > but probably you can reccomend some nicer standard ports &/or formats=
 ?
> > > Didn't there used to be some [kde?] or similar tool in a larger packa=
ge ?
> > >=20
> > > https://www=2Efreebsd=2Eorg/cgi/ports/ gives with
> > > "phone book"
> > >=20
> > > ports/misc/telbook=09
> > > =09in Perl and uses the GTK+ 2 p=09no mention of xml
> > >=20
> > > ports/deskutils/tel/
> > > =09Entries are stored in a simple CSV file=2E This eases import
> > > =09and export with common spread sheet applications like
> > > =09Microsoft Excel or OpenOffice=2Eorg Calc
> > >=20
> > > "address book"
> > >=20
> > > deskutils/dlume
> > > =09stores your contacts in XML format
> > > =09Export to CSV and HTML formats is also available
> > >=20
> > > deskutils/gaddr
> > > =09holds addresses and any other information you want to know
> > > =09about a person
> > >=20
> > > deskutils/py-pycarddav
> > > =09CardDAV CLI client
> > >=20
> > > https://en=2Ewikipedia=2Eorg/wiki/CardDAV
> > > =09based on WebDAV, which is based on HTTP, and it uses vCard
> > > =09for contact data=2E
> > >=20
> > > mail/evolution
> > > =09Big, databases/evolution-data-server make broke=2E
> > > =09pkg install worked =2E=2E=2E=2E starts with mail
> > >=20
> > > mail/horde-turba
> > > =09supports storing contacts in SQL, LDAP, Kolab, and IMSP
> > >=20
> > > "phone numbers"
> > > devel/py-phonenumbers
> >=20
> > I guess if it were me; based on as much of your code as I examined, and
> > the ports mentioned above=2E I'd probably go with: deskutils/dlume
> > or perhaps better, cobble my own=2E
> > Managing the numbers, and associated info in CSV format seems like it w=
ould
> > be almost trivial=2E In my mind could nearly accomplish the whole matter =
with
> > awk(1)=2E
> > In fact, I'm currently managing a database with over 9 million records,
> > and extract, and format most of it with awk=2E *Super* fast, and much eas=
ier
> > than sed(1)=2E Which is what I was originally attempting to do it with=2E
> >=20
> > My =2E02=C2=A2 FWIW
>=20
> Thanks Chris :-)
You're very welcome=2E :)
>=20
> A small Fritz XML sample=20
> =09http://www=2Eberklix=2Ecom/~jhs/src/bsd/jhs/bin/public/phone/fritz/samples=
/
> (better seen with a browser eg firefox that indents, harder to view in vi=
)=2E
>=20
> It now seems best I export to XML via VCF:
>=20
>=20
> https://en=2Eavm=2Ede/service/support-request/your-support-request/knowlegdeb=
asesupport/detail/en_FRITZ-Box-7390-int/1353_Exporting-smartphone-contacts-=
to-a-FRITZ-Box-telephone-book/
>  "Exporting smartphone contacts to a FRITZ!Box telephone book"
>  "You can use FRITZ!App Fon to export entries saved in the People
>   app on your smartphone to a FRITZ!Box telephone book=2E"
>=20
> An android phone app exported Contacts=2Evcf via mail (method:
> =09http://berklix=2Ecom/~jhs/android/#phone_book
> ) to FreeBSD & `file' reports: vCard visiting card
> A stack of vCards, with inter record seperators:
> =09BEGIN:VCARD^M
> =09VERSION:2=2E1^M
>=20
> So I will write an exporter from my phone=2Ec multiple field format to VCF,
> export into Android phone, then reduce VCF & export the few phone number
> fields the Fritz router needs, either by:
> - export with FRITZ!App Fon,
> - &/or or maybe also find a VCF to XML exporter for BSD=2E
>=20
Sweet! Nice work!

--Chris

> Cheers,
> Julian
> --=20
> Julian H=2E Stacey, Computer Consultant, BSD Linux Unix Systems Engineer,
> Munich
> Reply below, Prefix '> '=2E Plain text, No =2Edoc, base64, HTML,
> quoted-printable=2E
> http://berklix=2Eeu/brexit/ UK stole 3,500,000 votes; 700,000 from Brits in
> EU=2E





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c5845f55c009abf68650e4a09e5ebc88>