From owner-freebsd-ports@freebsd.org Tue Nov 28 00:50:59 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F708DEEC84 for ; Tue, 28 Nov 2017 00:50:59 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 1C0626CCC9 for ; Tue, 28 Nov 2017 00:50:59 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: by mailman.ysv.freebsd.org (Postfix) id 18382DEEC83; Tue, 28 Nov 2017 00:50:59 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 156FCDEEC82 for ; Tue, 28 Nov 2017 00:50:59 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD50A6CCC8 for ; Tue, 28 Nov 2017 00:50:58 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id vAS0pHIv074828; Mon, 27 Nov 2017 16:51:23 -0800 (PST) (envelope-from bsd-lists@BSDforge.com) X-Mailer: Cypht MIME-Version: 1.0 Cc: "Julian H. Stacey" , In-Reply-To: <201711272142.vARLgEAN094148@fire.js.berklix.net> From: "Chris H" Reply-To: bsd-lists@BSDforge.com To: "Julian H. Stacey" Subject: Re: Exporting phone list to a fritz router (.xml) & android phone app. Date: Mon, 27 Nov 2017 16:51:23 -0800 Message-Id: <77a97d3e7802de404c399a5dffda40a2@udns.ultimatedns.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 00:50:59 -0000 On Mon, 27 Nov 2017 22:42:14 +0100 "Julian H=2E Stacey" sai= d > 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 own > 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 package ? >=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 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 would 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 easier than sed(1)=2E Which is what I was originally attempting to do it with=2E My =2E02=C2=A2 FWIW >=20 > Cheers, > Julian --Chris > --=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