CVS: ispman/bin ispman.postfix.makemaps,1.7,1.8
Atif Ghaffar <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv30492
Modified Files:
ispman.postfix.makemaps
Log Message:
replacing @{} with ispman->as_array. This always gives an array even if there is only one element.
With the previous code a scalar was returned if only one service was selected and was misbehaving.
Index: ispman.postfix.makemaps
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman.postfix.makemaps,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** ispman.postfix.makemaps 16 Sep 2003 21:42:03 -0000 1.7
--- ispman.postfix.makemaps 8 Oct 2003 13:59:13 -0000 1.8
***************
*** 29,33 ****
#Allow relaying from these domains.
$relay_map->{$_}=$_;
! $dest_map->{$_}=$_ if grep (/mail/, @{$domain_info->{'ispmanDomainService'}});
$canonical_map->{"\@$_"}=join "", ('@', $domain_info->{'ispmanReplicaMaster'}) if $domain_info->{'ispmanReplicaMaster'};
$transport_map->{$_}=$ispman->getTransportMap($_);
--- 29,33 ----
#Allow relaying from these domains.
$relay_map->{$_}=$_;
! $dest_map->{$_}=$_ if grep (/mail/, $ispman->as_array($domain_info->{'ispmanDomainService'}));
$canonical_map->{"\@$_"}=join "", ('@', $domain_info->{'ispmanReplicaMaster'}) if $domain_info->{'ispmanReplicaMaster'};
$transport_map->{$_}=$ispman->getTransportMap($_);
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf