6 * Copyright (c) 1999-2004 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * Address Take -- steals addresses from incoming email messages. Searches
10 * the To, Cc, From and Reply-To headers, also searches the body of the
15 * @subpackage abook_take
19 * If SM_PATH isn't defined, define it. Required to include files.
22 if (!defined('SM_PATH')) {
23 define('SM_PATH','../../');
27 * Initialize the plugin
29 function squirrelmail_plugin_init_abook_take()
31 global $squirrelmail_plugin_hooks;
33 $squirrelmail_plugin_hooks['read_body_bottom']['abook_take'] = 'abook_take_read_body_bottom';
34 $squirrelmail_plugin_hooks['loading_prefs']['abook_take'] = 'abook_take_loading_prefs';
35 $squirrelmail_plugin_hooks['options_display_inside']['abook_take'] = 'abook_take_options_display_inside';
36 $squirrelmail_plugin_hooks['options_display_save']['abook_take'] = 'abook_take_options_display_save';
39 function abook_take_read_body_bottom() {
40 include_once(SM_PATH
. 'plugins/abook_take/functions.php');
45 function abook_take_loading_prefs() {
46 include_once(SM_PATH
. 'plugins/abook_take/functions.php');
51 function abook_take_options_display_inside() {
52 include_once(SM_PATH
. 'plugins/abook_take/functions.php');
57 function abook_take_options_display_save() {
58 include_once(SM_PATH
. 'plugins/abook_take/functions.php');