[Kolab-devel] multiple alias support
Lorenzo Musizza
lorenzo.musizza at 1000asa.com
Thu Sep 25 20:51:37 CEST 2003
Hi all,
I needed this feature so here is a simple patch to the kolab script in
order to get multiple alias support. You can specify comma separated
multiple alias in the alias field when you create or modify an user
trough the web.
@@ -567,13 +567,18 @@
#push @$aliases, $ldapobject->get_value('mail');
foreach (@$aliases) {
$_ = trim($_);
- my $rule = $_." ".$mail;
- defined($opt_v) && print "adding virtual entry
'$rule'\n";
- print $virtual $rule."\n";
+
+ @splitted=split(/,/,$_);
+ foreach $line (@splitted){
+ my $rule = $line." ".$mail;
+ defined($opt_v) && print "adding virtual entry
'$rule'\n";
+ print $virtual $rule."\n";
+ }
Hope it helps,
Lorenzo Musizza
--
"The price of freedom is responsibility, but it's a bargain, because freedom is priceless." - Hugh Downs.
Learn to live freely, learn GNU/Linux! :-)
Lorenzo Musizza - RedHat Linux Certified Engineer (RHCE)
web developer - Linux sysadmin
1000 ASA - http://www.1000asa.com
More information about the devel
mailing list