[imp] Show new messages in subfolders

Michael M Slusarz slusarz at mail.curecanti.org
Tue Jun 28 08:53:44 PDT 2005


Quoting Nicolas Schmitz <Nicolas.Schmitz at ec-nantes.fr>:

> A quick hack to enable this in the left menu is to comment the "if
> ($imptree->isPolled($mailbox))" in horde/imp/lib/Block/tree_folders.php.
> This sould be "by default", or at least a (global) pref.
>
> diff -Nu tree_folders.php tree_folders.php.new
> --- tree_folders.php    2005-06-28 12:19:58.426759830 +0200
> +++ tree_folders.php.new        2005-06-28 12:19:32.102983539 +0200
> @@ -69,7 +69,7 @@
>                 if (!$imptree->isContainer($mailbox)) {
>                     /* We are dealing with mailboxes here. Determine if we
>                      * need to poll this mailbox for new messages. */
> -                    if ($imptree->isPolled($mailbox)) {
> +                    /*if ($imptree->isPolled($mailbox)) {*/
>                         /* If we need message information for this folder,
>                          * update it now. */
>                         $msgs_info =
> $imptree->getElementInfo($mailbox['value']);
> @@ -80,7 +80,7 @@
>                                 $unseen += $msgs_info['unseen'];
>                                 $mailbox['label'] = '<span
> dir="ltr"><strong>' . $mailbox['label'] . '</strong> (' .
> $msgs_info['unseen'] . ') </span>';
>                             }
> -                        }
> +                       /* }*/
>                     }
>
>                     /* If this is the INBOX, save it to later rewrite
> our parent

Or a much better way is simply to check all folders in the IMP folders 
screen and select "Check folder for new mail" from the drop down list.  
That's the whole purpose of isPolled().

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the imp mailing list