<?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>edeca.net &#187; horde</title>
	<atom:link href="http://edeca.net/wp/tag/horde/feed/" rel="self" type="application/rss+xml" />
	<link>http://edeca.net/wp</link>
	<description>Musings of a geek</description>
	<lastBuildDate>Sat, 10 Jul 2010 11:10:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Syncing the iPhone addressbook with Horde</title>
		<link>http://edeca.net/wp/2010/01/syncing-the-iphone-addressbook-with-horde/</link>
		<comments>http://edeca.net/wp/2010/01/syncing-the-iphone-addressbook-with-horde/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 13:48:57 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[horde]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://edeca.net/wp/?p=275</guid>
		<description><![CDATA[Since I&#8217;d had my iPhone I&#8217;ve wanted to be able to sync my contacts with my Horde Webmail install.  This post is about setting up the Funambol application in order to do so. Firstly, you need something on the phone which will support SyncML, the standard that allows different devices to exchange data.  To sync, [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;d had my iPhone I&#8217;ve wanted to be able to sync my contacts with my Horde Webmail install.  This post is about setting up the Funambol application in order to do so.<br />
<span id="more-275"></span></p>
<p>Firstly, you need something on the phone which will support <a title="Wikipedia entry for SyncML" href="http://en.wikipedia.org/wiki/SyncML">SyncML</a>, the standard that allows different devices to exchange data.  To sync, install the iPhone Funambol application (<a title="Funambol application iTunes store link" href="http://itunes.apple.com/gb/artist/funambol-us/id284457847" target="_blank">iTunes store link</a>) which is currently free and works really well.</p>
<p>The Funambol application itself is very simple, adding an account is easy:</p>
<ul>
<li> set the &#8220;Server&#8221; field to something like <tt>http://example.com/horde/rpc.php</tt> (replace the location appropriately)</li>
<li>set the &#8220;Username&#8221; and &#8220;Password&#8221; fields to the same ones you use to login normally</li>
<li>in the &#8220;Contacts&#8221; section of the setup, the &#8220;Remote Name&#8221; should be set to <tt>card</tt></li>
</ul>
<p>The &#8220;Sync Direction&#8221; can be set whichever way you prefer.  A cavaet: I only do one way synchronisation.  That is, I sync my contacts from iPhone to server, but not the other way.  Whilst it does work both ways, I haven&#8217;t tested it extensively.  It is possible that rabid zombies will eat your firstborn if you change something on the server and try to update the iPhone.</p>
<p>Once these settings are updated, you can go back to the main screen and hit the big &#8220;Sync Contacts&#8221; button.  If it succeeds, you will see your contacts appear on the Horde server.  If not, you can always view the log from the settings menu to work out what went wrong.</p>
<p>One of the coolest (but most useless) features is that any photos associated with contacts will also be uploaded to the server.</p>
<p>Note that some fields aren&#8217;t automatically used by Horde, such as the &#8220;Home Email&#8221; and &#8220;Work Email&#8221;.  This is very easy to fix, but you&#8217;ll need to ask your system administrator to have a look at <a href="http://edeca.net/wp/2010/01/modifying-the-horde-turba-addressbook-for-the-iphone/">this post</a> on my blog.</p>
<p>Feel free to leave me a comment if you get stuck and I will endeavour to help you fix it.</p>
]]></content:encoded>
			<wfw:commentRss>http://edeca.net/wp/2010/01/syncing-the-iphone-addressbook-with-horde/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Modifying fields in the Turba addressbook</title>
		<link>http://edeca.net/wp/2010/01/modifying-fields-in-the-turba-addressbook/</link>
		<comments>http://edeca.net/wp/2010/01/modifying-fields-in-the-turba-addressbook/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 13:48:26 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[horde]]></category>

		<guid isPermaLink="false">http://edeca.net/wp/?p=290</guid>
		<description><![CDATA[I have recently started using the Funambol iPhone app to keep my contacts in sync with my webmail addressbook.  However, some fields aren&#8217;t included in Turba by default and need adding.  This post is for system administrators rather than users, so if you don&#8217;t run your own webmail then point your friendly geek at this [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently started using the <a title="Funambol iPhone app" href="http://www.funambol.com/solutions/iphone.php">Funambol iPhone app</a> to keep my contacts in sync with my webmail addressbook.  However, some fields aren&#8217;t included in Turba by default and need adding.  This post is for system administrators rather than users, so if you don&#8217;t run your own webmail then point your friendly geek at this post.<br />
<span id="more-290"></span><br />
Firstly make sure you are using a recent version of Horde (e.g. 3.3.6).  There are three easy steps to adding the fields you would like in Turba:</p>
<ul>
<li>define an attribute (e.g. it is called &#8220;Home Email&#8221; and is of type &#8220;email&#8221;)</li>
<li>add it to list of fields that Turba uses (so it is displayed in the right place)</li>
<li>add the backend storage (so Turba can query/save the values)</li>
</ul>
<p>For this example, we are adding the home and work email fields, which are compatible with the iPhone contacts.  This post assumes you use a database backend, if you don&#8217;t then step 3 will be slightly different.</p>
<h4>1: Define an attribute</h4>
<p>Firstly, check the file <tt>turba/config/attributes.php</tt> and make sure the following is present:</p>
<pre>$attributes['homeEmail'] = array(
'label' =&gt; _("Home Email"),
'type' =&gt; 'email',
'required' =&gt; false,
'params' =&gt; array('allow_multi' =&gt; false, 'strip_domain' =&gt; false, 'link_compose' =&gt; true)
);</pre>
<p>This defines the field &#8220;Home Email&#8221;.  In recent versions of Horde this should already exist, so you shouldn&#8217;t need to modify the config. If you are creating a different type of field that does not exist already, it is easiest to copy the definition of something similar and change the label and attribute name.</p>
<h4>2: Tell Turba we want to use this field</h4>
<p>Next the file <tt>turba/config/sources.php</tt> needs to be edited.  Find the line <tt>'email' =&gt; 'object_email'</tt> and add below it the following two lines:</p>
<pre>'homeEmail' =&gt; 'object_homeemail',
'workEmail' =&gt; 'object_workemail',</pre>
<p>This tells Turba that the fields <tt>homeEmail</tt> and <tt>workEmail</tt> come from the database fields <tt>object_homeemail</tt> and <tt>object_workemail</tt>, respectively.  We also need to modify the list of tabs so that Turba knows to display our new values in the right place.</p>
<p>Email addresses should go on the &#8220;Communications&#8221; tab, after the existing email field, so we modify the array and insert the attribute names like below:</p>
<pre>_("Communications") =&gt; array('email', 'homeEmail', 'workEmail', 'homePhone', 'workPhone',
'cellPhone', 'fax', 'pager'),</pre>
<h4>3: Add the backend storage</h4>
<p>Assuming you use a database backend, this is as easy as creating two new fields in the database.  They should be named according to the values in <tt>sources.php</tt> that we defined above and should be similar to an existing row of the same type.  As we are creating email fields, we can use the same data type as the <tt>object_email</tt> row.</p>
<p>For this example, the following SQL will modify the database appropriately:</p>
<pre>ALTER TABLE `turba_objects`
ADD `object_homeemail` VARCHAR( 255 ) NOT NULL AFTER `object_email`,
ADD `object_workemail` VARCHAR( 255 ) NOT NULL AFTER `object_homeemail`</pre>
<p>The same process above can be followed for other fields that might be missing, post a comment if there is something that you&#8217;d like help adding.</p>
]]></content:encoded>
			<wfw:commentRss>http://edeca.net/wp/2010/01/modifying-fields-in-the-turba-addressbook/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
