freeside/bin sendmail.import,1.4,1.5
ivan
ivan at pouncequick.420.am
Mon May 10 02:59:08 PDT 2004
Update of /home/cvs/cvsroot/freeside/bin
In directory pouncequick:/tmp/cvs-serv14257
Modified Files:
sendmail.import
Log Message:
allow for multiple svc_acct svcparts
Index: sendmail.import
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/sendmail.import,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sendmail.import 10 May 2004 09:40:38 -0000 1.4
+++ sendmail.import 10 May 2004 09:59:06 -0000 1.5
@@ -20,11 +20,11 @@
#$FS::domain_record::noserial_hack = 1;
use vars qw($defaultdomain);
-$defaultdomain = 'surferz.net';
+$defaultdomain = '295.ca';
-use vars qw($svcpart $forward_svcpart);
-$svcpart = 2;
-$forward_svcpart = 4;
+use vars qw(@svcpart $forward_svcpart);
+ at svcpart = qw( 2 4 );
+$forward_svcpart = 7;
use vars qw($spooldir);
$spooldir = "/usr/local/etc/freeside/export.". datasrc. "/sendmail";
@@ -144,7 +144,7 @@
my $svc_domain = qsearchs('svc_domain', { 'domain' => $domain } );
my $domsvc = $svc_domain ? $svc_domain->svcnum : '';
- my @svc_acct = grep { $_->cust_svc->svcpart == $svcpart }
+ my @svc_acct = grep { grep { $_->cust_svc->svcpart == $_ } @svcpart }
qsearch('svc_acct', {
'username' => $username,
'domsvc' => $domsvc,
More information about the freeside-commits
mailing list