summaryrefslogtreecommitdiff
path: root/FS/bin/freeside-email
diff options
context:
space:
mode:
authorivan <ivan>2002-09-18 22:50:44 +0000
committerivan <ivan>2002-09-18 22:50:44 +0000
commitc1e33a61324f4e06157c522af7882a97a021830f (patch)
tree60c3cacf57464dbaf791f097160d066b7d8b48f3 /FS/bin/freeside-email
parent89d15555270a63ab09116107f3dc327e86d831c5 (diff)
remove domain config file, closes: Bug#269
Diffstat (limited to 'FS/bin/freeside-email')
-rwxr-xr-xFS/bin/freeside-email6
1 files changed, 2 insertions, 4 deletions
diff --git a/FS/bin/freeside-email b/FS/bin/freeside-email
index c7ff41114..400dc2ac7 100755
--- a/FS/bin/freeside-email
+++ b/FS/bin/freeside-email
@@ -12,11 +12,9 @@ my $user = shift or die &usage;
adminsuidsetup $user;
my $conf = new FS::Conf;
-my $domain = $conf->config('domain');
my @svc_acct = qsearch('svc_acct', {});
-my @usernames = map $_->username, @svc_acct;
-my @emails = map "$_\@$domain", @usernames;
+my @emails = map $_->email, @svc_acct;
print join("\n", @emails), "\n";
@@ -51,7 +49,7 @@ user: From the mapsecrets file - see config.html from the base documentation
=head1 VERSION
-$Id: freeside-email,v 1.1 2001-05-15 07:52:34 ivan Exp $
+$Id: freeside-email,v 1.2 2002-09-18 22:50:44 ivan Exp $
=head1 BUGS