Fix address generation in Newmail block.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Jan 2009 16:39:05 +0000 (09:39 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Jan 2009 19:37:20 +0000 (12:37 -0700)
imp/lib/Block/Newmail.php

index 9ee0387..672d134 100644 (file)
@@ -52,7 +52,7 @@ class IMP_Block_Newmail extends Horde_Block
 
             while (list($uid, $ob) = each($fetch_ret)) {
                 $date = $imp_ui->getDate($ob['envelope']['date']);
-                $from = $imp_ui->getFrom($ob, array('specialchars' => $charset));
+                $from = $imp_ui->getFrom($ob['envelope'], array('specialchars' => $charset));
                 $subject = $imp_ui->getSubject($ob['envelope']['subject'], true);
 
                 $html .= '<tr style="cursor:pointer" class="text" onclick="DimpBase.go(\'msg:INBOX:' . $uid . '\');return false;"><td>' .