[dev] patch: show total number of mails in imp summary

Stefan Kronawithleitner stefan at kronawithleitner.at
Sun Apr 11 06:14:42 PDT 2004


Don't know if it is useful for others or has been discussed and disliked, but i
like this very much - this is a patch against imp/lib/Block/summary.php (head),
which can show the total number of mails in a folder.

Commit it, if you like it.

Stefan



--- summary.phpr	2004-01-19 01:28:10.000000000 +0100
+++ summary.php	2004-04-11 14:58:50.765702000 +0200
@@ -26,6 +26,9 @@
 
        return array('show_unread' => array('type' => 'checkbox',
                                            'name' => _("Only display folders
with unread messages in them?"),
+                                           'default' => 0),
+                    'show_total' => array('type' => 'checkbox',
+                                           'name' => _("Show total number of
mails in folder?"),
                                            'default' => 0)
                            );
     }
@@ -110,6 +113,7 @@
                            }
                            $html .= '</td><td>&nbsp;&nbsp;&nbsp;</td><td>';
                            $html .= !empty($info['unseen']) ? '<b>' .
$info['unseen'] . '</b>' : '0';
+                           if (!empty($this->_params['show_total'])) { $html .=
'</td><td>(' . $info['messages'] . ')'; }
                            $html .= '</td></tr>';
                        }
                     }




More information about the dev mailing list