[RCD] Plugin API: 'abort' flag

A.L.E.C alec at alec.pl
Sat Jun 25 16:03:51 CEST 2011


The question to plugin authors. How do you use 'abort' flag and what do
you think about it?

See rcube_plugin_api::exec_hook(). I'm not sure that 'abort' flag should
break the loop. I think it was designed to prevent only default action.

Imagine two plugins that are executing some actions when folder is
updated. If first plugin will set abort=true, the second plugin will be
prevented from any actions. I think the second plugin should decide if
it wants to do anything not the API.

-- 
Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer  [http://roundcube.net]
---------------------------------------------------
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80



More information about the Dev mailing list