<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FU-BAR &#187; Paroli</title>
	<atom:link href="http://blog.1407.org/tag/paroli/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.1407.org</link>
	<description>Fucked Up Beyond All Recognition</description>
	<lastBuildDate>Thu, 02 Feb 2012 22:15:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Import VCF contacts into Paroli</title>
		<link>http://blog.1407.org/2009/06/11/import-vcf-contacts-into-paroli/</link>
		<comments>http://blog.1407.org/2009/06/11/import-vcf-contacts-into-paroli/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 18:40:45 +0000</pubDate>
		<dc:creator>Rui Seabra</dc:creator>
				<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[OpenMoko]]></category>
		<category><![CDATA[Paroli]]></category>

		<guid isPermaLink="false">http://blog.1407.org/?p=511</guid>
		<description><![CDATA[Om2009&#8242;s telephony application is Paroli, and it uses it&#8217;s own contacts database. Ingvaldur Sigurjonsson made a script to import VCF contacts but it wouldn&#8217;t work on most of my contacts, which were imported via Bluetooth about two years ago. Since some had CRLF and others had LF as line terminators (ok, some VCF contacts were <a href='http://blog.1407.org/2009/06/11/import-vcf-contacts-into-paroli/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Om2009&#8242;s telephony application is Paroli, and it uses it&#8217;s own contacts database. <a href="http://www.mail-archive.com/support@lists.openmoko.org/msg04770.html">Ingvaldur Sigurjonsson made a script to import VCF contacts</a> but it wouldn&#8217;t work on most of my contacts, which were imported via Bluetooth about two years ago.</p>
<p>Since some had CRLF and others had LF as line terminators (ok, some VCF contacts were hand-made, as it&#8217;s a very nice contacts backup format which you can grep, etc&#8230;), I hacked the script to handle both cases, but mostly, to handle the case when the phone_info list had only one element, which the script wouldn&#8217;t take in account resuling in about 150 contacts lost from 270.</p>
<p>It also doesn&#8217;t take in account <strong>PREF</strong>erred phone numbers, so I removed then with the following command:</p>
<pre>sed -i -e 's,;PREF,,' *.vcf</pre>
<p>As it is likely helpful to others, here it is under a title which will surely be picked up by search engines for this issue: <a href="http://files.1407.org/openmoko/contacts/vcf2paroli">vcf2paroli</a></p>
<p>Do you enjoy the results?</p>
<div id="attachment_512" class="wp-caption aligncenter" style="width: 284px"><a href="http://blog.1407.org/wp-content/uploads/2009/06/screenshot-1.png"><img class="size-full wp-image-512" title="Successfully imported 270 contacts!" src="http://blog.1407.org/wp-content/uploads/2009/06/screenshot-1.png" alt="Successfully imported 270 contacts!" width="274" height="366" /></a><p class="wp-caption-text">Successfully imported 270 contacts!</p></div>
<p>There two things I didn&#8217;t like:</p>
<ol>
<li>it imported multiple times the same contact if it has more than one phone number</li>
<li>clicking on the die produced the expected result but with a bug: some buttons are hidden (so I registered <a href="http://www.paroli-project.org/trac/ticket/180">bug #180</a>)</li>
</ol>
<div id="attachment_513" class="wp-caption aligncenter" style="width: 284px"><a href="http://blog.1407.org/wp-content/uploads/2009/06/screenshot-2.png"><img class="size-full wp-image-513" title="Oops! They don't fit at all! #180" src="http://blog.1407.org/wp-content/uploads/2009/06/screenshot-2.png" alt="Oops! They don't fit at all! #180" width="274" height="366" /></a><p class="wp-caption-text">Oops! They don&#39;t fit at all! #180</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.1407.org/2009/06/11/import-vcf-contacts-into-paroli/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

