summaryrefslogtreecommitdiff
path: root/FS/FS/part_export/communigate_pro_singledomain.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/part_export/communigate_pro_singledomain.pm')
-rw-r--r--FS/FS/part_export/communigate_pro_singledomain.pm28
1 files changed, 27 insertions, 1 deletions
diff --git a/FS/FS/part_export/communigate_pro_singledomain.pm b/FS/FS/part_export/communigate_pro_singledomain.pm
index 11574af..6a1bf60 100644
--- a/FS/FS/part_export/communigate_pro_singledomain.pm
+++ b/FS/FS/part_export/communigate_pro_singledomain.pm
@@ -1,11 +1,37 @@
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',
+ 'notes' => <<'END'
+Real time export to a
+<a href="http://www.stalker.com/CommuniGatePro/">CommuniGate Pro</a>
+mail server. This is an unusual export to CommuniGate Pro that forces all
+accounts into a single domain. As CommuniGate Pro supports multipledomains,
+unless you have a specific reason for using this export, you probably want to
+use the communigate_pro export instead. The
+<a href="http://www.stalker.com/CGPerl/">CommuniGate Pro Perl Interface</a>
+must be installed as CGP::CLI.
+END
+);
+
sub export_username {
my($self, $svc_acct) = (shift, shift);
$svc_acct->username. '@'. $self->option('domain');
}
+
+1;
+