File/plugins/sasql/functions.php

Description

NaSMail Sasql Plugin -- Bayes training functions Copyright (c) 2003-2007 Randy Smith <perlstalker@vuser.org> Copyright (c) 2007 The NaSMail Project This file is part of NaSMail Sasql plugin.

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: functions.php 921 2007-10-16 11:48:30Z tokul $
Includes
 include_once (SM_PATH.'functions/forms.php') (line 30)
 include_once (SM_PATH.'functions/mailbox_display.php') (line 33)

handleAsSent()

 include_once (SM_PATH.'functions/imap.php') (line 31)
 include_once (SM_PATH.'plugins/sasql/sasql_db.php') (line 38)
 include_once (SM_PATH.'plugins/sasql/load_config.php') (line 36)
Functions
sasql_add_sa_score (line 431)
void sasql_add_sa_score ()
sasql_add_sa_wblist (line 153)
void sasql_add_sa_wblist ()
sasql_autocreate_spam_folder (line 87)
void sasql_autocreate_spam_folder ()
sasql_loading_constants (line 779)
void sasql_loading_constants ()
sasql_mailbox_controls_right (line 784)
void sasql_mailbox_controls_right ()
sasql_mailbox_form_before (line 801)

Adds spam/ham buttons to maibox listing

  • since: 3.2.0.nsm
void sasql_mailbox_form_before ()
sasql_move_before_move (line 549)

Processes sasql controls in move_before_move hook

  • since: 3.2.0.nsm
void sasql_move_before_move ()
sasql_optpage_register_block (line 133)
void sasql_optpage_register_block ()
sasql_print_errmsg (line 831)

Prints sasql error message array stored in $_SESSION['sasql_errmsg']

  • since: 3.2.0.nsm
void sasql_print_errmsg ()
sasql_print_notification (line 745)

Prints information about learned spam and ham messages

  • since: 3.2.0.nsm
void sasql_print_notification ()
sasql_rebuild_sort_array (line 719)

Rebuilds message array

void sasql_rebuild_sort_array (stream $imapConnection, string $mailbox)
  • stream $imapConnection: IMAP connection resource
  • string $mailbox: Mailbox name
sasql_report_spam_links (line 370)
void sasql_report_spam_links ()
sasql_report_spam_links_option (line 330)
void sasql_report_spam_links_option ()
sasql_salearn_links (line 521)

Creates links for $sasql_use_salearn option

  • return: html formated line for right table cell in read_body_header
  • since: 3.2.0.nsm
string sasql_salearn_links (string $mailbox, integer $passed_id, [string $passed_ent_id = 0], [array $extra_args = array()])
  • string $mailbox: Mailbox name
  • integer $passed_id: Message ID
  • string $passed_ent_id: Message part ID
  • array $extra_args: Other URL arguments
sasql_special_folder_check (line 68)

Tags special spam folders

  • return: 1 for special spam mailbox, 0 for other mailbox
integer sasql_special_folder_check (string $box)
  • string $box: Mailbox name
sasql_train_filters (line 649)

Feeds selected message or message part to training utility

  • return: Error message or empty string
  • since: 3.2.0.nsm
string sasql_train_filters (stream $imap_stream, string $mailbox, integer $msg_id, string $msg_part_id, integer $msg_type)
  • stream $imap_stream: IMAP connection resource
  • string $mailbox: Mailbox
  • integer $msg_id: Message ID
  • string $msg_part_id: Message Part ID
  • integer $msg_type: Message type. 1 for spam, 2 for ham

Documentation generated on Sun, 22 Nov 2009 17:36:30 +0200 by phpDocumentor 1.4.3