Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: Granada on May 20, 2010, 03:51:52 AM

Title: Summary Plugin misfeature
Post by: Granada on May 20, 2010, 03:51:52 AM
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
Title: Summary Plugin misfeature
Post by: rosali on May 21, 2010, 04:21:12 AM
Issue 76 - myroundcube - disabling summary results in error loading messages - Project Hosting on Google Code (http://code.google.com/p/myroundcube/issues/detail?id=76)
Title: Summary Plugin misfeature
Post by: Granada on May 21, 2010, 05:53:15 AM
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