emaildecline-exclude skips any errors that contain the strings now, not just match...
authorivan <ivan>
Fri, 12 Mar 2004 08:17:50 +0000 (08:17 +0000)
committerivan <ivan>
Fri, 12 Mar 2004 08:17:50 +0000 (08:17 +0000)
FS/FS/cust_bill.pm

index 1c3941b..6f2f01e 100644 (file)
@@ -896,7 +896,7 @@ sub realtime_bop {
 
     if ( !$realtime_bop_decline_quiet && $conf->exists('emaildecline')
          && grep { $_ ne 'POST' } $cust_main->invoicing_list
-         && ! grep { $_ eq $transaction->error_message }
+         && ! grep { $transaction->error_message =~ /$_/ }
                    $conf->config('emaildecline-exclude')
     ) {
       my @templ = $conf->config('declinetemplate');