<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -89,14 +89,22 @@ try
           if ($body == &quot;&quot;)
             $body = imap_fetchbody($mbox, $i, &quot;1&quot;);
           $body = ereg_replace(&quot;/\n\r|\r\n|\n|\r/&quot;, &quot; &quot;, $body);
-          echo $subject . &quot;:&quot; . $body . &quot;\n&quot;;
-          $conn-&gt;message($subject, $body);
+        $body=substr($body, 0, strpos($body, &quot;------&quot;)); //Filter original from reply
+        $body=substr($body, 0, strpos($body, &quot;--&quot;)); //Filter below signature
+        $body=quoted_printable_decode($body);
+        $body=str_replace(&quot;= &quot;,&quot;&quot;,$body);
+        $body=preg_replace(&quot;/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/&quot;, &quot; &quot;, $body); //This kills blank lines and makes them spaces
+        $subject=str_replace(&quot;Re: jabber: &quot;,&quot;&quot;,$subject); //This rewrites the incoming subject so a person can just reply
+        echo $subject . &quot;:&quot; . $body . &quot;\n&quot;;
+        unset($xx2);
+          $conn-&gt;message(&quot;$subject&quot;,&quot;$body&quot;);
           imap_delete($mbox, $i);
         }
       }
       imap_close($mbox);
     }
     sleep(1);
+
   }
 }
 catch(XMPPHP_Exception $e)</diff>
      <filename>jabber/karere.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5361801bb5edc220a247e28713aef59c19aba558</id>
    </parent>
  </parents>
  <author>
    <name>dalbaech</name>
    <email>daniel@darkvoip.net</email>
  </author>
  <url>http://github.com/crcx/karere/commit/38b018988eb1653285a0610c83bfca687267889d</url>
  <id>38b018988eb1653285a0610c83bfca687267889d</id>
  <committed-date>2009-06-26T10:29:37-07:00</committed-date>
  <authored-date>2009-06-26T10:29:37-07:00</authored-date>
  <message></message>
  <tree>a35009d66b67608931c096ee8053a6c4539fad96</tree>
  <committer>
    <name>dalbaech</name>
    <email>daniel@darkvoip.net</email>
  </committer>
</commit>
