<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -102,7 +102,7 @@ sub HandleFeedback($) {
     my $dbh = DBI-&gt;connect(&quot;DBI:mysql:database=$mysql_db;host=$mysql_host&quot;, $mysql_user, $mysql_pass, {'RaiseError' =&gt; 1});
     
     # Register the record
-    RegisterBounce($email, 'feedback-loop', $dbh);
+    RegisterBounce($email, 'feedback-loop', $dbh, 'soft');
     
     exit(0)
 }</diff>
      <filename>email-processor/feedback-loop-processor.pl</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 #-------------------------------------------------------------------------------
 sub RegisterBounce($$$) {
-    my ($email, $reason, $dbh) = @_;
+    my ($email, $reason, $dbh, $level) = @_;
     print &quot;BOUNCE: $email with reason $reason\n&quot;;
     
     my ($email_user, $email_domain) = split(/\@/, lc($email));
@@ -10,7 +10,7 @@ sub RegisterBounce($$$) {
     }
     my $domain_id = RegisterBounceDomain($email_domain, $dbh);
     
-    my $level = ($reason eq 'over_quota') ? 'soft' : 'hard';
+    $level ||= ($reason eq 'over_quota') ? 'soft' : 'hard';
     RegisterBounceEmail($email_user, $domain_id, $reason, $level, $dbh);
 }
 </diff>
      <filename>email-processor/lib/bounce_db.pm</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fa4bdd5c35a490318cabd73b6536d1f6ab5d5cac</id>
    </parent>
  </parents>
  <author>
    <name>Alexey Kovyrin</name>
    <email>alexey@kovyrin.net</email>
  </author>
  <url>http://github.com/kovyrin/bounces-handler/commit/260d22efa088cb283014296bd9c27dbe715fa32f</url>
  <id>260d22efa088cb283014296bd9c27dbe715fa32f</id>
  <committed-date>2008-08-04T19:49:20-07:00</committed-date>
  <authored-date>2008-08-04T19:49:20-07:00</authored-date>
  <message>feedback loops are soft failures'</message>
  <tree>f02af416d0109686512ed3000d8c38ffc42382c0</tree>
  <committer>
    <name>Alexey Kovyrin</name>
    <email>alexey@kovyrin.net</email>
  </committer>
</commit>
