[turba] problem with address book when logging into a remote server

Peter Farrow peter.farrow at 3d-computers.co.uk
Mon Sep 15 03:17:53 PDT 2003


Dear All,

Using: turba/config/sources.php.dist,v 1.22.2.17 2003/02/10 01:14:22

When I log into a remote server from the main login screen to imp, and 
then click on the address book page I get an error on this line of the 
sources.php script:
(about line 234)
$uid = $uid[1]

The error comes about because the previous line

preg_match('/(^.*)@/', $uid, $uid);

tries to stip everything from the "@" sign onwards in the user id, as 
per the comments in the script above.

Unfortunately, if you log into a remote server (i.e. not the same 
machine that is running the imp/horde web pages), the user id is of the 
format <username> rather than <username>@domain

So this line strips the whole userid leaving it blank and causing the error.

So I prepended the following condition to avoid this and allow it to work:

if (stristr($uid,"@"))
  preg_match('/(^.*)@/', $uid, $uid);

THis then allows turba to work ok, but the default identity becomes just 
"username@" when you try to send a mail,  this is not a problem because 
you can easily edit it to change this, but I wondered if there was 
something else wrong with my installation that might have been causing this.

Kronolith, imp,nag mnemo all work fine...

Horde
Version 2.2.3
IMP
Version 3.2
Turba
Version 1.0

Any input gratefully received

thanks

Pete


-- 
Technical director
3D Computer systems Ltd.	
11 New Road
Chippenham
Wilts
SN15 1HJ
www.3d-computers.co.uk
Tel: 01249 460766
Fax:01249 460583
This message is intended only for the use of the person(s) ("the intended  recipient(s)") to whom it is addressed. It may contain information which  is  privileged and confidential within the meaning of applicable law. If you are not the intended recipient, please contact the sender as soon as possible. The views expressed in this communication may not necessarily be the views held by 3d Computer Systems Ltd. 
Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this e-mail, the company cannot accept responsibility for any loss or damage arising from the use of this e-mail or any attachments 




More information about the turba mailing list