--- mailhandler-orig/mailhandler.retrieve.inc	2008-05-22 20:54:40.000000000 +0200
+++ mailhandler/mailhandler.retrieve.inc	2008-07-06 20:57:24.000000000 +0200
@@ -288,7 +288,7 @@ function mailhandler_process_message($he
     }
 
     // Stop when we encounter the sig. we'll discard all remaining text.
-    $start = substr($line, 0, strlen($sep)+3);
+    $start = substr($lines[$i], 0, strlen($sep)+3);
     if ($sep && strstr($start, $sep)) { // mail clients sometimes prefix replies with ' >'
       break;
     }
