Roundcube Community Forum

 

Summary Plugin misfeature

Started by Granada, May 20, 2010, 03:51:52 AM

Previous topic - Next topic

Granada

Hello everyone,

I find it quite annoying to see the motd-plugin (aka plugin.summary) redirect to itself even after one does no longer want to see the motd. This leads to an error "mailbox empty" while no mailbox is selected after loggin into RC.
I added the following diff to summary.php to redirect to INBOX when the user has set nosummary:

62a63,66
>     else {
>       header('Location: ./?_task=mail&_mbox=INBOX');
>       die;
>     }
89a94,95
>       header('Location: ./?_task=mail&_mbox=INBOX');
>       die;

Regards
Ruediger


Granada

Hi Robert,

thank you for the quick update and for the more elegant way to set the appropriate variables. I quickly chose the header()-way as it was done in function login_after(), but using $rcmail->output->redirect() is far more elegant. Great!

Regards
Ruediger