X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fsqlmail.pm;h=38308b6016383602abce03e4c9c0fbbb0722ce70;hb=fcce61390d750f98bd82e84d4664ae9c03202be2;hp=6d61e0e29271354027f1bfeea21fe3185ae505c5;hpb=f7fd2a3e34da751cbc02bbf215e99c6dc89adc15;p=freeside.git diff --git a/FS/FS/part_export/sqlmail.pm b/FS/FS/part_export/sqlmail.pm index 6d61e0e29..38308b601 100644 --- a/FS/FS/part_export/sqlmail.pm +++ b/FS/FS/part_export/sqlmail.pm @@ -6,6 +6,7 @@ use Digest::MD5 qw(md5_hex); use FS::Record qw(qsearchs); use FS::part_export; use FS::svc_domain; +use FS::DBI; @ISA = qw(FS::part_export); @@ -25,9 +26,9 @@ tie my %options, 'Tie::IxHash', 'svc_acct_fields' => { label => 'svc_acct Export Fields', default => 'username _password domsvc svcnum' }, 'svc_forward_fields' => { label => 'svc_forward Export Fields', - default => 'domain svcnum catchall' }, - 'svc_domain_fields' => { label => 'svc_domain Export Fields', default => 'srcsvc dstsvc dst' }, + 'svc_domain_fields' => { label => 'svc_domain Export Fields', + default => 'domain svcnum catchall' }, 'resolve_dstsvc' => { label => q{Resolve svc_forward.dstsvc to an email address and store it in dst. (Doesn't require that you also export dstsvc.)}, type => 'checkbox' }, ; @@ -37,6 +38,7 @@ tie my %options, 'Tie::IxHash', 'desc' => 'Real-time export to SQL-backed mail server', 'options' => \%options, 'nodomain' => '', + 'default_svc_class' => 'Email', 'notes' => <<'END' Database schema can be made to work with Courier IMAP, Exim and Dovecot. Others could work but are untested. (more detailed description from @@ -173,7 +175,7 @@ sub sqlmail_replace { } sub sqlmail_connect { - DBI->connect(@_) or die $DBI::errstr; + FS::DBI->connect(@_) or die $FS::DBI::errstr; } sub update_values {