X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fcommunigate_pro_singledomain.pm;h=cecea2826cb9beab6c68249a007cb30b47fd838f;hb=d5d19730fdb7635bf1d4d4c65c06f1108db7f4ff;hp=11574af9be50645632d47ceb94bf233070ee96ee;hpb=6569ee0ceffd720ca55594dc0f5a454187ee3b75;p=freeside.git
diff --git a/FS/FS/part_export/communigate_pro_singledomain.pm b/FS/FS/part_export/communigate_pro_singledomain.pm
index 11574af9b..cecea2826 100644
--- a/FS/FS/part_export/communigate_pro_singledomain.pm
+++ b/FS/FS/part_export/communigate_pro_singledomain.pm
@@ -1,11 +1,38 @@
package FS::part_export::communigate_pro_singledomain;
-use vars qw(@ISA);
+use vars qw(@ISA %info);
+use Tie::IxHash;
use FS::part_export::communigate_pro;
@ISA = qw(FS::part_export::communigate_pro);
+tie my %options, 'Tie::IxHash', %FS::part_export::communigate_pro::options,
+ 'domain' => { label=>'Domain', },
+;
+
+%info = (
+ 'svc' => 'svc_acct',
+ 'desc' =>
+ 'Real-time export to a CommuniGate Pro mail server, one domain only',
+ 'options' => \%options,
+ 'nodomain' => 'Y',
+ 'default_svc_class' => 'Email',
+ 'notes' => <<'END'
+Real time export to a
+CommuniGate Pro
+mail server. This is an unusual export to CommuniGate Pro that forces all
+accounts into a single domain. As CommuniGate Pro supports multiple domains,
+unless you have a specific reason for using this export, you probably want to
+use the communigate_pro export instead. The
+CommuniGate Pro Perl Interface
+must be installed as CGP::CLI.
+END
+);
+
sub export_username {
my($self, $svc_acct) = (shift, shift);
$svc_acct->username. '@'. $self->option('domain');
}
+
+1;
+