[Tickets #232] NEW: imp2turba.pl again

bugs at bugs.horde.org bugs at bugs.horde.org
Wed May 26 08:58:34 PDT 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

-Ticket 232
-Queue: IMP
-Created By: 

-Summary:
imp2turba.pl again

>From Daniel Ortiz <d.ortiz at in.ilimit.es> (Wed May 26 08:58:33 2004):
On my mail server I have virtualdomains with vpopmail.
In imp_addr mysql table the users appears as user at domain.com@mailhost.
Default domain users appears as user at mailhost.
When I run imp2turba.pl default users becomes user at mydefaultdomain.com but
users from virtualdomains becomes virtualdomainuser at mydefaultdomain.com
instead of virtualdomainuser at virtualdomain@defaultdomain.

Modify the next regexp:

@@ -104,7 +103,7 @@
     $unique_key = join("", @chars[ map {rand @chars} (1 .. 31) ]);
 
     # Remove the @domain.com part from the $owner, doesn't work in Turba
-    $owner =~ s/(.*\@*.)\@.*$/$1/;
+    $owner =~ s/\@.*$//;
     $owner .= "\@$domain";
 
     # Quote the strings appropriately for the database

With that now the addressbook of virtualdomain users works.





http://bugs.horde.org/details.php?id=232

-- 


More information about the bugs mailing list