summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-10-18 21:55:28 +0000
committerthierry <thierry@FreeBSD.org>2005-10-18 21:55:28 +0000
commit879aec8c3f7878b0dcf76c78864bfd441e03f9d4 (patch)
tree300a96c064c40785a57e918b416fe69d70342234
parentb173800638dcb02cb8c09d5dba179664fe46f694 (diff)
downloadFreeBSD-ports-879aec8c3f7878b0dcf76c78864bfd441e03f9d4.zip
FreeBSD-ports-879aec8c3f7878b0dcf76c78864bfd441e03f9d4.tar.gz
Upgrade to 2.0.4.
Changelog at <http://cvs.horde.org/diff.php/turba/docs/CHANGES?r1=1.181.2.43&r2=1.181.2.50&ty=h>
-rw-r--r--mail/horde-turba/Makefile2
-rw-r--r--mail/horde-turba/distinfo4
-rw-r--r--mail/horde-turba/files/patch-config::sources.php.dist302
-rw-r--r--mail/horde4-turba/Makefile2
-rw-r--r--mail/horde4-turba/distinfo4
-rw-r--r--mail/horde4-turba/files/patch-config::sources.php.dist302
-rw-r--r--mail/turba/Makefile2
-rw-r--r--mail/turba/distinfo4
-rw-r--r--mail/turba/files/patch-config::sources.php.dist302
9 files changed, 483 insertions, 441 deletions
diff --git a/mail/horde-turba/Makefile b/mail/horde-turba/Makefile
index 1d273b6..025776f 100644
--- a/mail/horde-turba/Makefile
+++ b/mail/horde-turba/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= turba
-PORTVERSION= 2.0.3
+PORTVERSION= 2.0.4
CATEGORIES= mail www
MASTER_SITES= ftp://ftp.horde.org/pub/turba/ \
ftp://ftp.planetmirror.com/pub/horde/turba/ \
diff --git a/mail/horde-turba/distinfo b/mail/horde-turba/distinfo
index b909f09..73d41b9 100644
--- a/mail/horde-turba/distinfo
+++ b/mail/horde-turba/distinfo
@@ -1,2 +1,2 @@
-MD5 (turba-h3-2.0.3.tar.gz) = 315c5e1b3e635afed59c84ed4435eb95
-SIZE (turba-h3-2.0.3.tar.gz) = 1335946
+MD5 (turba-h3-2.0.4.tar.gz) = 1c1cd26497393f805391b915ee6c010b
+SIZE (turba-h3-2.0.4.tar.gz) = 1413938
diff --git a/mail/horde-turba/files/patch-config::sources.php.dist b/mail/horde-turba/files/patch-config::sources.php.dist
index 5f11eab..46b4a1b 100644
--- a/mail/horde-turba/files/patch-config::sources.php.dist
+++ b/mail/horde-turba/files/patch-config::sources.php.dist
@@ -1,156 +1,170 @@
---- config/sources.php.dist.orig Wed Jun 22 20:21:52 2005
-+++ config/sources.php.dist Tue Jul 19 14:25:35 2005
-@@ -468,82 +468,82 @@
- * populated with the current username.
- */
- // First, get the user name
--$uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
--$pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
--if (!strlen($uid)) {
-- $uid = Auth::getAuth();
-- if (preg_match('/(^.*)@/', $uid, $matches)) {
-- $uid = $matches[1];
+--- config/sources.php.dist.orig Mon Oct 17 22:51:49 2005
++++ config/sources.php.dist Tue Oct 18 22:24:34 2005
+@@ -469,87 +469,87 @@
+ // Check that IMSP is configured in Horde but fall through if there is no
+ // configuration at all - in case we aren't using up to date Horde install.
+ // (In that case, be sure to change the params array below to suit your needs.
+-if (!empty($GLOBALS['conf']['imsp']['enabled']) ||
+- !isset($GLOBALS['conf']['imsp']['enabled'])) {
+-
+- // First, get the user name
+- $uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
+- $pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
+- if (!strlen($uid)) {
+- $uid = Auth::getAuth();
+- if (preg_match('/(^.*)@/', $uid, $matches)) {
+- $uid = $matches[1];
+- }
+- $pass = Auth::getCredential('password');
- }
-- $pass = Auth::getCredential('password');
--}
-
--$cfgSources['imsp'] = array(
-- 'title' => _("IMSP"),
-- 'type' => 'imsp',
-- 'params' => array(
-- 'server' => 'localhost',
-- 'port' => '406',
-- 'username' => $uid,
-- 'password' => $pass,
-- 'name' => $uid,
-- 'auth_method' => 'cram_md5',
-- 'group_id_field' => 'group',
-- 'group_id_value' => 'group',
-- 'contact_ownership' => false
-- ),
-- 'map' => array(
-- '__key' => 'name',
-- '__type' => '__type',
-- '__members' => '__members',
-- '__owner' => '__owner',
-- '__uid' => '__uid',
-- 'name' => 'fullname',
-- 'email' => 'email',
-- 'alias' => 'alias',
-- 'company' => 'company',
-- 'notes' => 'notes',
-- 'workPhone' => 'phone-work',
-- 'fax' => 'fax',
-- 'homePhone' => 'phone-home',
-- 'cellPhone' => 'cellphone',
-- 'freebusyUrl' => 'freebusyUrl'
-- ),
-- 'search' => array(
-- 'name',
-- 'email',
-- 'alias',
-- 'company',
-- 'homePhone'
-- ),
-- 'strict' => array(),
-- 'public' => false,
-- 'readonly' => false,
-- 'export' => true
-- );
-+//UNCOMMENTIFIMSP$uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
-+//UNCOMMENTIFIMSP$pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
-+//UNCOMMENTIFIMSPif (!strlen($uid)) {
-+//UNCOMMENTIFIMSP $uid = Auth::getAuth();
-+//UNCOMMENTIFIMSP if (preg_match('/(^.*)@/', $uid, $matches)) {
-+//UNCOMMENTIFIMSP $uid = $matches[1];
-+//UNCOMMENTIFIMSP }
-+//UNCOMMENTIFIMSP $pass = Auth::getCredential('password');
-+//UNCOMMENTIFIMSP}
-+//UNCOMMENTIFIMSP
-+//UNCOMMENTIFIMSP$cfgSources['imsp'] = array(
-+//UNCOMMENTIFIMSP 'title' => _("IMSP"),
-+//UNCOMMENTIFIMSP 'type' => 'imsp',
-+//UNCOMMENTIFIMSP 'params' => array(
-+//UNCOMMENTIFIMSP 'server' => 'localhost',
-+//UNCOMMENTIFIMSP 'port' => '406',
-+//UNCOMMENTIFIMSP 'username' => $uid,
-+//UNCOMMENTIFIMSP 'password' => $pass,
-+//UNCOMMENTIFIMSP 'name' => $uid,
-+//UNCOMMENTIFIMSP 'auth_method' => 'cram_md5',
-+//UNCOMMENTIFIMSP 'group_id_field' => 'group',
-+//UNCOMMENTIFIMSP 'group_id_value' => 'group',
-+//UNCOMMENTIFIMSP 'contact_ownership' => false
-+//UNCOMMENTIFIMSP ),
-+//UNCOMMENTIFIMSP 'map' => array(
-+//UNCOMMENTIFIMSP '__key' => 'name',
-+//UNCOMMENTIFIMSP '__type' => '__type',
-+//UNCOMMENTIFIMSP '__members' => '__members',
-+//UNCOMMENTIFIMSP '__owner' => '__owner',
-+//UNCOMMENTIFIMSP '__uid' => '__uid',
-+//UNCOMMENTIFIMSP 'name' => 'fullname',
-+//UNCOMMENTIFIMSP 'email' => 'email',
-+//UNCOMMENTIFIMSP 'alias' => 'alias',
-+//UNCOMMENTIFIMSP 'company' => 'company',
-+//UNCOMMENTIFIMSP 'notes' => 'notes',
-+//UNCOMMENTIFIMSP 'workPhone' => 'phone-work',
-+//UNCOMMENTIFIMSP 'fax' => 'fax',
-+//UNCOMMENTIFIMSP 'homePhone' => 'phone-home',
-+//UNCOMMENTIFIMSP 'cellPhone' => 'cellphone',
-+//UNCOMMENTIFIMSP 'freebusyUrl' => 'freebusyUrl'
-+//UNCOMMENTIFIMSP ),
-+//UNCOMMENTIFIMSP 'search' => array(
-+//UNCOMMENTIFIMSP 'name',
-+//UNCOMMENTIFIMSP 'email',
-+//UNCOMMENTIFIMSP 'alias',
-+//UNCOMMENTIFIMSP 'company',
-+//UNCOMMENTIFIMSP 'homePhone'
-+//UNCOMMENTIFIMSP ),
-+//UNCOMMENTIFIMSP 'strict' => array(),
-+//UNCOMMENTIFIMSP 'public' => false,
-+//UNCOMMENTIFIMSP 'readonly' => false,
-+//UNCOMMENTIFIMSP 'export' => true
-+//UNCOMMENTIFIMSP );
-
- /**
- * Get any other addressbooks this user might be privy to.
- */
--require_once 'Net/IMSP/Utils.php';
--$result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
--if (!is_a($result, 'PEAR_Error')) {
-- for ($i = 0; $i < count($result); $i++) {
-- // Make sure we didn't define this source explicitly.
-- $dup = false;
-- foreach ($cfgSources as $thisSource) {
-- if (($thisSource['type'] == 'imsp') &&
-- ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
-- $dup = true;
+- $cfgSources['imsp'] = array(
+- 'title' => _("IMSP"),
+- 'type' => 'imsp',
+- 'params' => array(
+- 'server' => $GLOBALS['conf']['imsp']['server'],
+- 'port' => $GLOBASL['conf']['imsp']['port'],
+- 'auth_method' => $GLOBALS['conf']['imsp']['auth_method'],
+- 'username' => $uid,
+- 'password' => $pass,
+- 'name' => $uid,
+- 'group_id_field' => 'group',
+- 'group_id_value' => 'group',
+- 'contact_ownership' => false
+- ),
+- 'map' => array(
+- '__key' => 'name',
+- '__type' => '__type',
+- '__members' => '__members',
+- '__owner' => '__owner',
+- '__uid' => '__uid',
+- 'name' => 'fullname',
+- 'email' => 'email',
+- 'alias' => 'alias',
+- 'company' => 'company',
+- 'notes' => 'notes',
+- 'workPhone' => 'phone-work',
+- 'fax' => 'fax',
+- 'homePhone' => 'phone-home',
+- 'cellPhone' => 'cellphone',
+- 'freebusyUrl' => 'freebusyUrl'
+- ),
+- 'search' => array(
+- 'name',
+- 'email',
+- 'alias',
+- 'company',
+- 'homePhone'
+- ),
+- 'strict' => array(),
+- 'public' => false,
+- 'readonly' => false,
+- 'export' => true
+- );
+-
+- /**
+- * Get any other address books this user might be privy to.
+- */
+- require_once 'Net/IMSP/Utils.php';
+- $result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
+- if (!is_a($result, 'PEAR_Error')) {
+- for ($i = 0; $i < count($result); $i++) {
+- // Make sure we didn't define this source explicitly.
+- $dup = false;
+- foreach ($cfgSources as $thisSource) {
+- if (($thisSource['type'] == 'imsp') &&
+- ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
+- $dup = true;
+- }
+- }
+- if (!$dup) {
+- $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
- }
- }
-- if (!$dup) {
-- $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
-- }
+- } else {
+- $notification->push($result);
- }
--} else {
-- $notification->push($result);
-}
-+//UNCOMMENTIFIMSPrequire_once 'Net/IMSP/Utils.php';
-+//UNCOMMENTIFIMSP$result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
-+//UNCOMMENTIFIMSPif (!is_a($result, 'PEAR_Error')) {
-+//UNCOMMENTIFIMSP for ($i = 0; $i < count($result); $i++) {
-+//UNCOMMENTIFIMSP // Make sure we didn't define this source explicitly.
-+//UNCOMMENTIFIMSP $dup = false;
-+//UNCOMMENTIFIMSP foreach ($cfgSources as $thisSource) {
-+//UNCOMMENTIFIMSP if (($thisSource['type'] == 'imsp') &&
-+//UNCOMMENTIFIMSP ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
-+//UNCOMMENTIFIMSP $dup = true;
-+//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSPif (!empty($GLOBALS['conf']['imsp']['enabled']) ||
++//UNCOMMENTIFIMSP !isset($GLOBALS['conf']['imsp']['enabled'])) {
++//UNCOMMENTIFIMSP
++//UNCOMMENTIFIMSP // First, get the user name
++//UNCOMMENTIFIMSP $uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
++//UNCOMMENTIFIMSP $pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
++//UNCOMMENTIFIMSP if (!strlen($uid)) {
++//UNCOMMENTIFIMSP $uid = Auth::getAuth();
++//UNCOMMENTIFIMSP if (preg_match('/(^.*)@/', $uid, $matches)) {
++//UNCOMMENTIFIMSP $uid = $matches[1];
+//UNCOMMENTIFIMSP }
-+//UNCOMMENTIFIMSP if (!$dup) {
-+//UNCOMMENTIFIMSP $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
++//UNCOMMENTIFIMSP $pass = Auth::getCredential('password');
++//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP
++//UNCOMMENTIFIMSP $cfgSources['imsp'] = array(
++//UNCOMMENTIFIMSP 'title' => _("IMSP"),
++//UNCOMMENTIFIMSP 'type' => 'imsp',
++//UNCOMMENTIFIMSP 'params' => array(
++//UNCOMMENTIFIMSP 'server' => $GLOBALS['conf']['imsp']['server'],
++//UNCOMMENTIFIMSP 'port' => $GLOBASL['conf']['imsp']['port'],
++//UNCOMMENTIFIMSP 'auth_method' => $GLOBALS['conf']['imsp']['auth_method'],
++//UNCOMMENTIFIMSP 'username' => $uid,
++//UNCOMMENTIFIMSP 'password' => $pass,
++//UNCOMMENTIFIMSP 'name' => $uid,
++//UNCOMMENTIFIMSP 'group_id_field' => 'group',
++//UNCOMMENTIFIMSP 'group_id_value' => 'group',
++//UNCOMMENTIFIMSP 'contact_ownership' => false
++//UNCOMMENTIFIMSP ),
++//UNCOMMENTIFIMSP 'map' => array(
++//UNCOMMENTIFIMSP '__key' => 'name',
++//UNCOMMENTIFIMSP '__type' => '__type',
++//UNCOMMENTIFIMSP '__members' => '__members',
++//UNCOMMENTIFIMSP '__owner' => '__owner',
++//UNCOMMENTIFIMSP '__uid' => '__uid',
++//UNCOMMENTIFIMSP 'name' => 'fullname',
++//UNCOMMENTIFIMSP 'email' => 'email',
++//UNCOMMENTIFIMSP 'alias' => 'alias',
++//UNCOMMENTIFIMSP 'company' => 'company',
++//UNCOMMENTIFIMSP 'notes' => 'notes',
++//UNCOMMENTIFIMSP 'workPhone' => 'phone-work',
++//UNCOMMENTIFIMSP 'fax' => 'fax',
++//UNCOMMENTIFIMSP 'homePhone' => 'phone-home',
++//UNCOMMENTIFIMSP 'cellPhone' => 'cellphone',
++//UNCOMMENTIFIMSP 'freebusyUrl' => 'freebusyUrl'
++//UNCOMMENTIFIMSP ),
++//UNCOMMENTIFIMSP 'search' => array(
++//UNCOMMENTIFIMSP 'name',
++//UNCOMMENTIFIMSP 'email',
++//UNCOMMENTIFIMSP 'alias',
++//UNCOMMENTIFIMSP 'company',
++//UNCOMMENTIFIMSP 'homePhone'
++//UNCOMMENTIFIMSP ),
++//UNCOMMENTIFIMSP 'strict' => array(),
++//UNCOMMENTIFIMSP 'public' => false,
++//UNCOMMENTIFIMSP 'readonly' => false,
++//UNCOMMENTIFIMSP 'export' => true
++//UNCOMMENTIFIMSP );
++//UNCOMMENTIFIMSP
++//UNCOMMENTIFIMSP /**
++//UNCOMMENTIFIMSP * Get any other address books this user might be privy to.
++//UNCOMMENTIFIMSP */
++//UNCOMMENTIFIMSP require_once 'Net/IMSP/Utils.php';
++//UNCOMMENTIFIMSP $result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
++//UNCOMMENTIFIMSP if (!is_a($result, 'PEAR_Error')) {
++//UNCOMMENTIFIMSP for ($i = 0; $i < count($result); $i++) {
++//UNCOMMENTIFIMSP // Make sure we didn't define this source explicitly.
++//UNCOMMENTIFIMSP $dup = false;
++//UNCOMMENTIFIMSP foreach ($cfgSources as $thisSource) {
++//UNCOMMENTIFIMSP if (($thisSource['type'] == 'imsp') &&
++//UNCOMMENTIFIMSP ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
++//UNCOMMENTIFIMSP $dup = true;
++//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP if (!$dup) {
++//UNCOMMENTIFIMSP $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
++//UNCOMMENTIFIMSP }
+//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP } else {
++//UNCOMMENTIFIMSP $notification->push($result);
+//UNCOMMENTIFIMSP }
-+//UNCOMMENTIFIMSP} else {
-+//UNCOMMENTIFIMSP $notification->push($result);
+//UNCOMMENTIFIMSP}
/* Begin Kolab sources. */
diff --git a/mail/horde4-turba/Makefile b/mail/horde4-turba/Makefile
index 1d273b6..025776f 100644
--- a/mail/horde4-turba/Makefile
+++ b/mail/horde4-turba/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= turba
-PORTVERSION= 2.0.3
+PORTVERSION= 2.0.4
CATEGORIES= mail www
MASTER_SITES= ftp://ftp.horde.org/pub/turba/ \
ftp://ftp.planetmirror.com/pub/horde/turba/ \
diff --git a/mail/horde4-turba/distinfo b/mail/horde4-turba/distinfo
index b909f09..73d41b9 100644
--- a/mail/horde4-turba/distinfo
+++ b/mail/horde4-turba/distinfo
@@ -1,2 +1,2 @@
-MD5 (turba-h3-2.0.3.tar.gz) = 315c5e1b3e635afed59c84ed4435eb95
-SIZE (turba-h3-2.0.3.tar.gz) = 1335946
+MD5 (turba-h3-2.0.4.tar.gz) = 1c1cd26497393f805391b915ee6c010b
+SIZE (turba-h3-2.0.4.tar.gz) = 1413938
diff --git a/mail/horde4-turba/files/patch-config::sources.php.dist b/mail/horde4-turba/files/patch-config::sources.php.dist
index 5f11eab..46b4a1b 100644
--- a/mail/horde4-turba/files/patch-config::sources.php.dist
+++ b/mail/horde4-turba/files/patch-config::sources.php.dist
@@ -1,156 +1,170 @@
---- config/sources.php.dist.orig Wed Jun 22 20:21:52 2005
-+++ config/sources.php.dist Tue Jul 19 14:25:35 2005
-@@ -468,82 +468,82 @@
- * populated with the current username.
- */
- // First, get the user name
--$uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
--$pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
--if (!strlen($uid)) {
-- $uid = Auth::getAuth();
-- if (preg_match('/(^.*)@/', $uid, $matches)) {
-- $uid = $matches[1];
+--- config/sources.php.dist.orig Mon Oct 17 22:51:49 2005
++++ config/sources.php.dist Tue Oct 18 22:24:34 2005
+@@ -469,87 +469,87 @@
+ // Check that IMSP is configured in Horde but fall through if there is no
+ // configuration at all - in case we aren't using up to date Horde install.
+ // (In that case, be sure to change the params array below to suit your needs.
+-if (!empty($GLOBALS['conf']['imsp']['enabled']) ||
+- !isset($GLOBALS['conf']['imsp']['enabled'])) {
+-
+- // First, get the user name
+- $uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
+- $pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
+- if (!strlen($uid)) {
+- $uid = Auth::getAuth();
+- if (preg_match('/(^.*)@/', $uid, $matches)) {
+- $uid = $matches[1];
+- }
+- $pass = Auth::getCredential('password');
- }
-- $pass = Auth::getCredential('password');
--}
-
--$cfgSources['imsp'] = array(
-- 'title' => _("IMSP"),
-- 'type' => 'imsp',
-- 'params' => array(
-- 'server' => 'localhost',
-- 'port' => '406',
-- 'username' => $uid,
-- 'password' => $pass,
-- 'name' => $uid,
-- 'auth_method' => 'cram_md5',
-- 'group_id_field' => 'group',
-- 'group_id_value' => 'group',
-- 'contact_ownership' => false
-- ),
-- 'map' => array(
-- '__key' => 'name',
-- '__type' => '__type',
-- '__members' => '__members',
-- '__owner' => '__owner',
-- '__uid' => '__uid',
-- 'name' => 'fullname',
-- 'email' => 'email',
-- 'alias' => 'alias',
-- 'company' => 'company',
-- 'notes' => 'notes',
-- 'workPhone' => 'phone-work',
-- 'fax' => 'fax',
-- 'homePhone' => 'phone-home',
-- 'cellPhone' => 'cellphone',
-- 'freebusyUrl' => 'freebusyUrl'
-- ),
-- 'search' => array(
-- 'name',
-- 'email',
-- 'alias',
-- 'company',
-- 'homePhone'
-- ),
-- 'strict' => array(),
-- 'public' => false,
-- 'readonly' => false,
-- 'export' => true
-- );
-+//UNCOMMENTIFIMSP$uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
-+//UNCOMMENTIFIMSP$pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
-+//UNCOMMENTIFIMSPif (!strlen($uid)) {
-+//UNCOMMENTIFIMSP $uid = Auth::getAuth();
-+//UNCOMMENTIFIMSP if (preg_match('/(^.*)@/', $uid, $matches)) {
-+//UNCOMMENTIFIMSP $uid = $matches[1];
-+//UNCOMMENTIFIMSP }
-+//UNCOMMENTIFIMSP $pass = Auth::getCredential('password');
-+//UNCOMMENTIFIMSP}
-+//UNCOMMENTIFIMSP
-+//UNCOMMENTIFIMSP$cfgSources['imsp'] = array(
-+//UNCOMMENTIFIMSP 'title' => _("IMSP"),
-+//UNCOMMENTIFIMSP 'type' => 'imsp',
-+//UNCOMMENTIFIMSP 'params' => array(
-+//UNCOMMENTIFIMSP 'server' => 'localhost',
-+//UNCOMMENTIFIMSP 'port' => '406',
-+//UNCOMMENTIFIMSP 'username' => $uid,
-+//UNCOMMENTIFIMSP 'password' => $pass,
-+//UNCOMMENTIFIMSP 'name' => $uid,
-+//UNCOMMENTIFIMSP 'auth_method' => 'cram_md5',
-+//UNCOMMENTIFIMSP 'group_id_field' => 'group',
-+//UNCOMMENTIFIMSP 'group_id_value' => 'group',
-+//UNCOMMENTIFIMSP 'contact_ownership' => false
-+//UNCOMMENTIFIMSP ),
-+//UNCOMMENTIFIMSP 'map' => array(
-+//UNCOMMENTIFIMSP '__key' => 'name',
-+//UNCOMMENTIFIMSP '__type' => '__type',
-+//UNCOMMENTIFIMSP '__members' => '__members',
-+//UNCOMMENTIFIMSP '__owner' => '__owner',
-+//UNCOMMENTIFIMSP '__uid' => '__uid',
-+//UNCOMMENTIFIMSP 'name' => 'fullname',
-+//UNCOMMENTIFIMSP 'email' => 'email',
-+//UNCOMMENTIFIMSP 'alias' => 'alias',
-+//UNCOMMENTIFIMSP 'company' => 'company',
-+//UNCOMMENTIFIMSP 'notes' => 'notes',
-+//UNCOMMENTIFIMSP 'workPhone' => 'phone-work',
-+//UNCOMMENTIFIMSP 'fax' => 'fax',
-+//UNCOMMENTIFIMSP 'homePhone' => 'phone-home',
-+//UNCOMMENTIFIMSP 'cellPhone' => 'cellphone',
-+//UNCOMMENTIFIMSP 'freebusyUrl' => 'freebusyUrl'
-+//UNCOMMENTIFIMSP ),
-+//UNCOMMENTIFIMSP 'search' => array(
-+//UNCOMMENTIFIMSP 'name',
-+//UNCOMMENTIFIMSP 'email',
-+//UNCOMMENTIFIMSP 'alias',
-+//UNCOMMENTIFIMSP 'company',
-+//UNCOMMENTIFIMSP 'homePhone'
-+//UNCOMMENTIFIMSP ),
-+//UNCOMMENTIFIMSP 'strict' => array(),
-+//UNCOMMENTIFIMSP 'public' => false,
-+//UNCOMMENTIFIMSP 'readonly' => false,
-+//UNCOMMENTIFIMSP 'export' => true
-+//UNCOMMENTIFIMSP );
-
- /**
- * Get any other addressbooks this user might be privy to.
- */
--require_once 'Net/IMSP/Utils.php';
--$result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
--if (!is_a($result, 'PEAR_Error')) {
-- for ($i = 0; $i < count($result); $i++) {
-- // Make sure we didn't define this source explicitly.
-- $dup = false;
-- foreach ($cfgSources as $thisSource) {
-- if (($thisSource['type'] == 'imsp') &&
-- ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
-- $dup = true;
+- $cfgSources['imsp'] = array(
+- 'title' => _("IMSP"),
+- 'type' => 'imsp',
+- 'params' => array(
+- 'server' => $GLOBALS['conf']['imsp']['server'],
+- 'port' => $GLOBASL['conf']['imsp']['port'],
+- 'auth_method' => $GLOBALS['conf']['imsp']['auth_method'],
+- 'username' => $uid,
+- 'password' => $pass,
+- 'name' => $uid,
+- 'group_id_field' => 'group',
+- 'group_id_value' => 'group',
+- 'contact_ownership' => false
+- ),
+- 'map' => array(
+- '__key' => 'name',
+- '__type' => '__type',
+- '__members' => '__members',
+- '__owner' => '__owner',
+- '__uid' => '__uid',
+- 'name' => 'fullname',
+- 'email' => 'email',
+- 'alias' => 'alias',
+- 'company' => 'company',
+- 'notes' => 'notes',
+- 'workPhone' => 'phone-work',
+- 'fax' => 'fax',
+- 'homePhone' => 'phone-home',
+- 'cellPhone' => 'cellphone',
+- 'freebusyUrl' => 'freebusyUrl'
+- ),
+- 'search' => array(
+- 'name',
+- 'email',
+- 'alias',
+- 'company',
+- 'homePhone'
+- ),
+- 'strict' => array(),
+- 'public' => false,
+- 'readonly' => false,
+- 'export' => true
+- );
+-
+- /**
+- * Get any other address books this user might be privy to.
+- */
+- require_once 'Net/IMSP/Utils.php';
+- $result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
+- if (!is_a($result, 'PEAR_Error')) {
+- for ($i = 0; $i < count($result); $i++) {
+- // Make sure we didn't define this source explicitly.
+- $dup = false;
+- foreach ($cfgSources as $thisSource) {
+- if (($thisSource['type'] == 'imsp') &&
+- ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
+- $dup = true;
+- }
+- }
+- if (!$dup) {
+- $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
- }
- }
-- if (!$dup) {
-- $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
-- }
+- } else {
+- $notification->push($result);
- }
--} else {
-- $notification->push($result);
-}
-+//UNCOMMENTIFIMSPrequire_once 'Net/IMSP/Utils.php';
-+//UNCOMMENTIFIMSP$result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
-+//UNCOMMENTIFIMSPif (!is_a($result, 'PEAR_Error')) {
-+//UNCOMMENTIFIMSP for ($i = 0; $i < count($result); $i++) {
-+//UNCOMMENTIFIMSP // Make sure we didn't define this source explicitly.
-+//UNCOMMENTIFIMSP $dup = false;
-+//UNCOMMENTIFIMSP foreach ($cfgSources as $thisSource) {
-+//UNCOMMENTIFIMSP if (($thisSource['type'] == 'imsp') &&
-+//UNCOMMENTIFIMSP ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
-+//UNCOMMENTIFIMSP $dup = true;
-+//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSPif (!empty($GLOBALS['conf']['imsp']['enabled']) ||
++//UNCOMMENTIFIMSP !isset($GLOBALS['conf']['imsp']['enabled'])) {
++//UNCOMMENTIFIMSP
++//UNCOMMENTIFIMSP // First, get the user name
++//UNCOMMENTIFIMSP $uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
++//UNCOMMENTIFIMSP $pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
++//UNCOMMENTIFIMSP if (!strlen($uid)) {
++//UNCOMMENTIFIMSP $uid = Auth::getAuth();
++//UNCOMMENTIFIMSP if (preg_match('/(^.*)@/', $uid, $matches)) {
++//UNCOMMENTIFIMSP $uid = $matches[1];
+//UNCOMMENTIFIMSP }
-+//UNCOMMENTIFIMSP if (!$dup) {
-+//UNCOMMENTIFIMSP $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
++//UNCOMMENTIFIMSP $pass = Auth::getCredential('password');
++//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP
++//UNCOMMENTIFIMSP $cfgSources['imsp'] = array(
++//UNCOMMENTIFIMSP 'title' => _("IMSP"),
++//UNCOMMENTIFIMSP 'type' => 'imsp',
++//UNCOMMENTIFIMSP 'params' => array(
++//UNCOMMENTIFIMSP 'server' => $GLOBALS['conf']['imsp']['server'],
++//UNCOMMENTIFIMSP 'port' => $GLOBASL['conf']['imsp']['port'],
++//UNCOMMENTIFIMSP 'auth_method' => $GLOBALS['conf']['imsp']['auth_method'],
++//UNCOMMENTIFIMSP 'username' => $uid,
++//UNCOMMENTIFIMSP 'password' => $pass,
++//UNCOMMENTIFIMSP 'name' => $uid,
++//UNCOMMENTIFIMSP 'group_id_field' => 'group',
++//UNCOMMENTIFIMSP 'group_id_value' => 'group',
++//UNCOMMENTIFIMSP 'contact_ownership' => false
++//UNCOMMENTIFIMSP ),
++//UNCOMMENTIFIMSP 'map' => array(
++//UNCOMMENTIFIMSP '__key' => 'name',
++//UNCOMMENTIFIMSP '__type' => '__type',
++//UNCOMMENTIFIMSP '__members' => '__members',
++//UNCOMMENTIFIMSP '__owner' => '__owner',
++//UNCOMMENTIFIMSP '__uid' => '__uid',
++//UNCOMMENTIFIMSP 'name' => 'fullname',
++//UNCOMMENTIFIMSP 'email' => 'email',
++//UNCOMMENTIFIMSP 'alias' => 'alias',
++//UNCOMMENTIFIMSP 'company' => 'company',
++//UNCOMMENTIFIMSP 'notes' => 'notes',
++//UNCOMMENTIFIMSP 'workPhone' => 'phone-work',
++//UNCOMMENTIFIMSP 'fax' => 'fax',
++//UNCOMMENTIFIMSP 'homePhone' => 'phone-home',
++//UNCOMMENTIFIMSP 'cellPhone' => 'cellphone',
++//UNCOMMENTIFIMSP 'freebusyUrl' => 'freebusyUrl'
++//UNCOMMENTIFIMSP ),
++//UNCOMMENTIFIMSP 'search' => array(
++//UNCOMMENTIFIMSP 'name',
++//UNCOMMENTIFIMSP 'email',
++//UNCOMMENTIFIMSP 'alias',
++//UNCOMMENTIFIMSP 'company',
++//UNCOMMENTIFIMSP 'homePhone'
++//UNCOMMENTIFIMSP ),
++//UNCOMMENTIFIMSP 'strict' => array(),
++//UNCOMMENTIFIMSP 'public' => false,
++//UNCOMMENTIFIMSP 'readonly' => false,
++//UNCOMMENTIFIMSP 'export' => true
++//UNCOMMENTIFIMSP );
++//UNCOMMENTIFIMSP
++//UNCOMMENTIFIMSP /**
++//UNCOMMENTIFIMSP * Get any other address books this user might be privy to.
++//UNCOMMENTIFIMSP */
++//UNCOMMENTIFIMSP require_once 'Net/IMSP/Utils.php';
++//UNCOMMENTIFIMSP $result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
++//UNCOMMENTIFIMSP if (!is_a($result, 'PEAR_Error')) {
++//UNCOMMENTIFIMSP for ($i = 0; $i < count($result); $i++) {
++//UNCOMMENTIFIMSP // Make sure we didn't define this source explicitly.
++//UNCOMMENTIFIMSP $dup = false;
++//UNCOMMENTIFIMSP foreach ($cfgSources as $thisSource) {
++//UNCOMMENTIFIMSP if (($thisSource['type'] == 'imsp') &&
++//UNCOMMENTIFIMSP ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
++//UNCOMMENTIFIMSP $dup = true;
++//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP if (!$dup) {
++//UNCOMMENTIFIMSP $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
++//UNCOMMENTIFIMSP }
+//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP } else {
++//UNCOMMENTIFIMSP $notification->push($result);
+//UNCOMMENTIFIMSP }
-+//UNCOMMENTIFIMSP} else {
-+//UNCOMMENTIFIMSP $notification->push($result);
+//UNCOMMENTIFIMSP}
/* Begin Kolab sources. */
diff --git a/mail/turba/Makefile b/mail/turba/Makefile
index 1d273b6..025776f 100644
--- a/mail/turba/Makefile
+++ b/mail/turba/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= turba
-PORTVERSION= 2.0.3
+PORTVERSION= 2.0.4
CATEGORIES= mail www
MASTER_SITES= ftp://ftp.horde.org/pub/turba/ \
ftp://ftp.planetmirror.com/pub/horde/turba/ \
diff --git a/mail/turba/distinfo b/mail/turba/distinfo
index b909f09..73d41b9 100644
--- a/mail/turba/distinfo
+++ b/mail/turba/distinfo
@@ -1,2 +1,2 @@
-MD5 (turba-h3-2.0.3.tar.gz) = 315c5e1b3e635afed59c84ed4435eb95
-SIZE (turba-h3-2.0.3.tar.gz) = 1335946
+MD5 (turba-h3-2.0.4.tar.gz) = 1c1cd26497393f805391b915ee6c010b
+SIZE (turba-h3-2.0.4.tar.gz) = 1413938
diff --git a/mail/turba/files/patch-config::sources.php.dist b/mail/turba/files/patch-config::sources.php.dist
index 5f11eab..46b4a1b 100644
--- a/mail/turba/files/patch-config::sources.php.dist
+++ b/mail/turba/files/patch-config::sources.php.dist
@@ -1,156 +1,170 @@
---- config/sources.php.dist.orig Wed Jun 22 20:21:52 2005
-+++ config/sources.php.dist Tue Jul 19 14:25:35 2005
-@@ -468,82 +468,82 @@
- * populated with the current username.
- */
- // First, get the user name
--$uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
--$pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
--if (!strlen($uid)) {
-- $uid = Auth::getAuth();
-- if (preg_match('/(^.*)@/', $uid, $matches)) {
-- $uid = $matches[1];
+--- config/sources.php.dist.orig Mon Oct 17 22:51:49 2005
++++ config/sources.php.dist Tue Oct 18 22:24:34 2005
+@@ -469,87 +469,87 @@
+ // Check that IMSP is configured in Horde but fall through if there is no
+ // configuration at all - in case we aren't using up to date Horde install.
+ // (In that case, be sure to change the params array below to suit your needs.
+-if (!empty($GLOBALS['conf']['imsp']['enabled']) ||
+- !isset($GLOBALS['conf']['imsp']['enabled'])) {
+-
+- // First, get the user name
+- $uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
+- $pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
+- if (!strlen($uid)) {
+- $uid = Auth::getAuth();
+- if (preg_match('/(^.*)@/', $uid, $matches)) {
+- $uid = $matches[1];
+- }
+- $pass = Auth::getCredential('password');
- }
-- $pass = Auth::getCredential('password');
--}
-
--$cfgSources['imsp'] = array(
-- 'title' => _("IMSP"),
-- 'type' => 'imsp',
-- 'params' => array(
-- 'server' => 'localhost',
-- 'port' => '406',
-- 'username' => $uid,
-- 'password' => $pass,
-- 'name' => $uid,
-- 'auth_method' => 'cram_md5',
-- 'group_id_field' => 'group',
-- 'group_id_value' => 'group',
-- 'contact_ownership' => false
-- ),
-- 'map' => array(
-- '__key' => 'name',
-- '__type' => '__type',
-- '__members' => '__members',
-- '__owner' => '__owner',
-- '__uid' => '__uid',
-- 'name' => 'fullname',
-- 'email' => 'email',
-- 'alias' => 'alias',
-- 'company' => 'company',
-- 'notes' => 'notes',
-- 'workPhone' => 'phone-work',
-- 'fax' => 'fax',
-- 'homePhone' => 'phone-home',
-- 'cellPhone' => 'cellphone',
-- 'freebusyUrl' => 'freebusyUrl'
-- ),
-- 'search' => array(
-- 'name',
-- 'email',
-- 'alias',
-- 'company',
-- 'homePhone'
-- ),
-- 'strict' => array(),
-- 'public' => false,
-- 'readonly' => false,
-- 'export' => true
-- );
-+//UNCOMMENTIFIMSP$uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
-+//UNCOMMENTIFIMSP$pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
-+//UNCOMMENTIFIMSPif (!strlen($uid)) {
-+//UNCOMMENTIFIMSP $uid = Auth::getAuth();
-+//UNCOMMENTIFIMSP if (preg_match('/(^.*)@/', $uid, $matches)) {
-+//UNCOMMENTIFIMSP $uid = $matches[1];
-+//UNCOMMENTIFIMSP }
-+//UNCOMMENTIFIMSP $pass = Auth::getCredential('password');
-+//UNCOMMENTIFIMSP}
-+//UNCOMMENTIFIMSP
-+//UNCOMMENTIFIMSP$cfgSources['imsp'] = array(
-+//UNCOMMENTIFIMSP 'title' => _("IMSP"),
-+//UNCOMMENTIFIMSP 'type' => 'imsp',
-+//UNCOMMENTIFIMSP 'params' => array(
-+//UNCOMMENTIFIMSP 'server' => 'localhost',
-+//UNCOMMENTIFIMSP 'port' => '406',
-+//UNCOMMENTIFIMSP 'username' => $uid,
-+//UNCOMMENTIFIMSP 'password' => $pass,
-+//UNCOMMENTIFIMSP 'name' => $uid,
-+//UNCOMMENTIFIMSP 'auth_method' => 'cram_md5',
-+//UNCOMMENTIFIMSP 'group_id_field' => 'group',
-+//UNCOMMENTIFIMSP 'group_id_value' => 'group',
-+//UNCOMMENTIFIMSP 'contact_ownership' => false
-+//UNCOMMENTIFIMSP ),
-+//UNCOMMENTIFIMSP 'map' => array(
-+//UNCOMMENTIFIMSP '__key' => 'name',
-+//UNCOMMENTIFIMSP '__type' => '__type',
-+//UNCOMMENTIFIMSP '__members' => '__members',
-+//UNCOMMENTIFIMSP '__owner' => '__owner',
-+//UNCOMMENTIFIMSP '__uid' => '__uid',
-+//UNCOMMENTIFIMSP 'name' => 'fullname',
-+//UNCOMMENTIFIMSP 'email' => 'email',
-+//UNCOMMENTIFIMSP 'alias' => 'alias',
-+//UNCOMMENTIFIMSP 'company' => 'company',
-+//UNCOMMENTIFIMSP 'notes' => 'notes',
-+//UNCOMMENTIFIMSP 'workPhone' => 'phone-work',
-+//UNCOMMENTIFIMSP 'fax' => 'fax',
-+//UNCOMMENTIFIMSP 'homePhone' => 'phone-home',
-+//UNCOMMENTIFIMSP 'cellPhone' => 'cellphone',
-+//UNCOMMENTIFIMSP 'freebusyUrl' => 'freebusyUrl'
-+//UNCOMMENTIFIMSP ),
-+//UNCOMMENTIFIMSP 'search' => array(
-+//UNCOMMENTIFIMSP 'name',
-+//UNCOMMENTIFIMSP 'email',
-+//UNCOMMENTIFIMSP 'alias',
-+//UNCOMMENTIFIMSP 'company',
-+//UNCOMMENTIFIMSP 'homePhone'
-+//UNCOMMENTIFIMSP ),
-+//UNCOMMENTIFIMSP 'strict' => array(),
-+//UNCOMMENTIFIMSP 'public' => false,
-+//UNCOMMENTIFIMSP 'readonly' => false,
-+//UNCOMMENTIFIMSP 'export' => true
-+//UNCOMMENTIFIMSP );
-
- /**
- * Get any other addressbooks this user might be privy to.
- */
--require_once 'Net/IMSP/Utils.php';
--$result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
--if (!is_a($result, 'PEAR_Error')) {
-- for ($i = 0; $i < count($result); $i++) {
-- // Make sure we didn't define this source explicitly.
-- $dup = false;
-- foreach ($cfgSources as $thisSource) {
-- if (($thisSource['type'] == 'imsp') &&
-- ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
-- $dup = true;
+- $cfgSources['imsp'] = array(
+- 'title' => _("IMSP"),
+- 'type' => 'imsp',
+- 'params' => array(
+- 'server' => $GLOBALS['conf']['imsp']['server'],
+- 'port' => $GLOBASL['conf']['imsp']['port'],
+- 'auth_method' => $GLOBALS['conf']['imsp']['auth_method'],
+- 'username' => $uid,
+- 'password' => $pass,
+- 'name' => $uid,
+- 'group_id_field' => 'group',
+- 'group_id_value' => 'group',
+- 'contact_ownership' => false
+- ),
+- 'map' => array(
+- '__key' => 'name',
+- '__type' => '__type',
+- '__members' => '__members',
+- '__owner' => '__owner',
+- '__uid' => '__uid',
+- 'name' => 'fullname',
+- 'email' => 'email',
+- 'alias' => 'alias',
+- 'company' => 'company',
+- 'notes' => 'notes',
+- 'workPhone' => 'phone-work',
+- 'fax' => 'fax',
+- 'homePhone' => 'phone-home',
+- 'cellPhone' => 'cellphone',
+- 'freebusyUrl' => 'freebusyUrl'
+- ),
+- 'search' => array(
+- 'name',
+- 'email',
+- 'alias',
+- 'company',
+- 'homePhone'
+- ),
+- 'strict' => array(),
+- 'public' => false,
+- 'readonly' => false,
+- 'export' => true
+- );
+-
+- /**
+- * Get any other address books this user might be privy to.
+- */
+- require_once 'Net/IMSP/Utils.php';
+- $result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
+- if (!is_a($result, 'PEAR_Error')) {
+- for ($i = 0; $i < count($result); $i++) {
+- // Make sure we didn't define this source explicitly.
+- $dup = false;
+- foreach ($cfgSources as $thisSource) {
+- if (($thisSource['type'] == 'imsp') &&
+- ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
+- $dup = true;
+- }
+- }
+- if (!$dup) {
+- $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
- }
- }
-- if (!$dup) {
-- $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
-- }
+- } else {
+- $notification->push($result);
- }
--} else {
-- $notification->push($result);
-}
-+//UNCOMMENTIFIMSPrequire_once 'Net/IMSP/Utils.php';
-+//UNCOMMENTIFIMSP$result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
-+//UNCOMMENTIFIMSPif (!is_a($result, 'PEAR_Error')) {
-+//UNCOMMENTIFIMSP for ($i = 0; $i < count($result); $i++) {
-+//UNCOMMENTIFIMSP // Make sure we didn't define this source explicitly.
-+//UNCOMMENTIFIMSP $dup = false;
-+//UNCOMMENTIFIMSP foreach ($cfgSources as $thisSource) {
-+//UNCOMMENTIFIMSP if (($thisSource['type'] == 'imsp') &&
-+//UNCOMMENTIFIMSP ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
-+//UNCOMMENTIFIMSP $dup = true;
-+//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSPif (!empty($GLOBALS['conf']['imsp']['enabled']) ||
++//UNCOMMENTIFIMSP !isset($GLOBALS['conf']['imsp']['enabled'])) {
++//UNCOMMENTIFIMSP
++//UNCOMMENTIFIMSP // First, get the user name
++//UNCOMMENTIFIMSP $uid = $GLOBALS['prefs']->getValue('imsp_auth_user');
++//UNCOMMENTIFIMSP $pass = $GLOBALS['prefs']->getValue('imsp_auth_pass');
++//UNCOMMENTIFIMSP if (!strlen($uid)) {
++//UNCOMMENTIFIMSP $uid = Auth::getAuth();
++//UNCOMMENTIFIMSP if (preg_match('/(^.*)@/', $uid, $matches)) {
++//UNCOMMENTIFIMSP $uid = $matches[1];
+//UNCOMMENTIFIMSP }
-+//UNCOMMENTIFIMSP if (!$dup) {
-+//UNCOMMENTIFIMSP $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
++//UNCOMMENTIFIMSP $pass = Auth::getCredential('password');
++//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP
++//UNCOMMENTIFIMSP $cfgSources['imsp'] = array(
++//UNCOMMENTIFIMSP 'title' => _("IMSP"),
++//UNCOMMENTIFIMSP 'type' => 'imsp',
++//UNCOMMENTIFIMSP 'params' => array(
++//UNCOMMENTIFIMSP 'server' => $GLOBALS['conf']['imsp']['server'],
++//UNCOMMENTIFIMSP 'port' => $GLOBASL['conf']['imsp']['port'],
++//UNCOMMENTIFIMSP 'auth_method' => $GLOBALS['conf']['imsp']['auth_method'],
++//UNCOMMENTIFIMSP 'username' => $uid,
++//UNCOMMENTIFIMSP 'password' => $pass,
++//UNCOMMENTIFIMSP 'name' => $uid,
++//UNCOMMENTIFIMSP 'group_id_field' => 'group',
++//UNCOMMENTIFIMSP 'group_id_value' => 'group',
++//UNCOMMENTIFIMSP 'contact_ownership' => false
++//UNCOMMENTIFIMSP ),
++//UNCOMMENTIFIMSP 'map' => array(
++//UNCOMMENTIFIMSP '__key' => 'name',
++//UNCOMMENTIFIMSP '__type' => '__type',
++//UNCOMMENTIFIMSP '__members' => '__members',
++//UNCOMMENTIFIMSP '__owner' => '__owner',
++//UNCOMMENTIFIMSP '__uid' => '__uid',
++//UNCOMMENTIFIMSP 'name' => 'fullname',
++//UNCOMMENTIFIMSP 'email' => 'email',
++//UNCOMMENTIFIMSP 'alias' => 'alias',
++//UNCOMMENTIFIMSP 'company' => 'company',
++//UNCOMMENTIFIMSP 'notes' => 'notes',
++//UNCOMMENTIFIMSP 'workPhone' => 'phone-work',
++//UNCOMMENTIFIMSP 'fax' => 'fax',
++//UNCOMMENTIFIMSP 'homePhone' => 'phone-home',
++//UNCOMMENTIFIMSP 'cellPhone' => 'cellphone',
++//UNCOMMENTIFIMSP 'freebusyUrl' => 'freebusyUrl'
++//UNCOMMENTIFIMSP ),
++//UNCOMMENTIFIMSP 'search' => array(
++//UNCOMMENTIFIMSP 'name',
++//UNCOMMENTIFIMSP 'email',
++//UNCOMMENTIFIMSP 'alias',
++//UNCOMMENTIFIMSP 'company',
++//UNCOMMENTIFIMSP 'homePhone'
++//UNCOMMENTIFIMSP ),
++//UNCOMMENTIFIMSP 'strict' => array(),
++//UNCOMMENTIFIMSP 'public' => false,
++//UNCOMMENTIFIMSP 'readonly' => false,
++//UNCOMMENTIFIMSP 'export' => true
++//UNCOMMENTIFIMSP );
++//UNCOMMENTIFIMSP
++//UNCOMMENTIFIMSP /**
++//UNCOMMENTIFIMSP * Get any other address books this user might be privy to.
++//UNCOMMENTIFIMSP */
++//UNCOMMENTIFIMSP require_once 'Net/IMSP/Utils.php';
++//UNCOMMENTIFIMSP $result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
++//UNCOMMENTIFIMSP if (!is_a($result, 'PEAR_Error')) {
++//UNCOMMENTIFIMSP for ($i = 0; $i < count($result); $i++) {
++//UNCOMMENTIFIMSP // Make sure we didn't define this source explicitly.
++//UNCOMMENTIFIMSP $dup = false;
++//UNCOMMENTIFIMSP foreach ($cfgSources as $thisSource) {
++//UNCOMMENTIFIMSP if (($thisSource['type'] == 'imsp') &&
++//UNCOMMENTIFIMSP ($thisSource['params']['name'] == $result[$i]['params']['name'])) {
++//UNCOMMENTIFIMSP $dup = true;
++//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP if (!$dup) {
++//UNCOMMENTIFIMSP $cfgSources[sprintf('imsp%d', $i + 1)] = $result[$i];
++//UNCOMMENTIFIMSP }
+//UNCOMMENTIFIMSP }
++//UNCOMMENTIFIMSP } else {
++//UNCOMMENTIFIMSP $notification->push($result);
+//UNCOMMENTIFIMSP }
-+//UNCOMMENTIFIMSP} else {
-+//UNCOMMENTIFIMSP $notification->push($result);
+//UNCOMMENTIFIMSP}
/* Begin Kolab sources. */
OpenPOWER on IntegriCloud