| 5 | | Plugins are tools to extend the functionality of RoundCube. |
| 6 | | They are not part of the application core but can be installed and activated individually. |
| 7 | | |
| 8 | | == How to write a plugin == |
| | 5 | Plugins extend the functionality of RoundCube. |
| | 6 | They are not part of the core application but can be installed and activated individually. |
| | 7 | !RoundCube comes with a number of plugins, and more third-party plugins are available for download. |
| | 8 | |
| | 9 | == Installing Plugins and Activating Plugins == |
| | 10 | |
| | 11 | After downloading and unpacking a plugin in !RoundCube's {{{plugin}}} directory, you have to activate it by adding its directory name as an array element, to the config option {{{plugins}}}. This is done by editing your local {{{config/main.inc.php}}} file. Only plugins listed in the array will be enabled. |
| | 12 | |
| | 13 | For example, to enable plugins named {{{additional_message_headers}}} and {{{archive}}}, {{{config/main.inc.php}}} should contain this line: |
| | 14 | |
| | 15 | {{{ |
| | 16 | $rcmail_config['plugins'] = array('additional_message_headers', 'archive'); |
| | 17 | }}} |
| | 18 | |
| | 19 | === Community Plugin Repository === |
| | 20 | |
| | 21 | Many plugins have been written by community members. |
| | 22 | |
| | 23 | [wiki:Plugin_Repository] has a list of plugins available for download. |
| | 24 | |
| | 25 | |
| | 26 | == How to Write a Plugin == |