1 Sep 2011 12:35
[RCD] Strange hook "new_messages"
Tilman Stremlau <tilman <at> stremlau.net>
2011-09-01 10:35:14 GMT
2011-09-01 10:35:14 GMT
Hello there :D I'm a new subscriber in the dev-mailing list, my name is Tilman Stremlau, I'm 17 years old and I use roundcube as my main mail-client since I try to get away from Google Mail. So my aim is to help developing the project and some plugins (my fist one is html5_notifier http://www.roundcubeforum.net/7-third-party-contributions/46-api-based-plugins/8836-new-plugin-html5_notifier-desktop-notification.html ). There is a point I am not happy with: The implementation of the hook "new_messages". The hook is just fired, if a new mail arrived in the current opened mailbox. On my opinion is this very useless for plugins. It would be better if it is fired every time a new message arrives. Check if it's the current mailbox could be done in the plugin itself - if necessary. Changing the Code: check_recent.inc line 37 " if ($mbox_name == $current && ($status = $IMAP->mailbox_status($mbox_name))) {" to " $status = $IMAP->mailbox_status($mbox_name); if ($status & 1) { if ($RCMAIL->config->get('focus_on_new_message', true) &&(Continue reading)
RSS Feed