Author Topic: Summary Plugin misfeature  (Read 2042 times)

Offline Granada

  • Jr. Member
  • **
  • Posts: 34
Summary Plugin misfeature
« 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

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline Granada

  • Jr. Member
  • **
  • Posts: 34
Summary Plugin misfeature
« Reply #2 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