No need to have an excessively long SPAM header appear in notifications
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 26 Aug 2010 06:14:53 +0000 (00:14 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 26 Aug 2010 06:32:47 +0000 (00:32 -0600)
imp/lib/Spam.php

index e72416e..59af656 100644 (file)
@@ -165,7 +165,7 @@ class IMP_Spam
         /* Report what we've done. */
         if ($report_count == 1) {
             $hdrs = $imp_contents->getHeaderOb();
-            $subject = Horde_String::truncate($hdrs->getValue('subject'));
+            $subject = Horde_String::truncate($hdrs->getValue('subject'), 30);
 
             switch ($action) {
             case 'spam':