X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fsqlmail.pm;h=38308b6016383602abce03e4c9c0fbbb0722ce70;hb=ffa18709ee8a4d05e18d2d406cf73afe79e52524;hp=cbdaf7f52f8e20f728e40df5567a07f18737fcdd;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git diff --git a/FS/FS/part_export/sqlmail.pm b/FS/FS/part_export/sqlmail.pm index cbdaf7f52..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); @@ -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 {