File/plugins/serversidefilter/functions.php

Description

NaSMail Serverside Filter Plugin

Copyright (c) 2000-2005 Patrick Swieskowski, Rick Sheaffer, Jon Stroud, Tony Lownds, Paul Lesneiwski Copyright (c) 2007 The NaSMail Project Licensed under the GNU GPL. For full terms see the file COPYING. Plugin is based on SquirrelMail Server Side Filter plugin.

Includes
Functions
check_filter_do (line 40)

Create filters at login for new users

void check_filter_do ()
filter_exists (line 58)
void filter_exists ()
filter_get (line 54)

Filter functions

These are the functions you call to get or write the filter files These simply call the only available backend, "local"

void filter_get ()
filter_put (line 62)
void filter_put ( $file)
  • $file
my_virtual_domain_user (line 130)

Virtual domain functions

These functions pertain to information necessary when working with virtual domains

void my_virtual_domain_user ( $domain)
  • $domain
serversidefilter_optpage_register_block_do (line 20)

Show options page entry for filter configuration

void serversidefilter_optpage_register_block_do ()
set_filter_app (line 89)

Create Filter files

This function is used to write the application specific function to the filter file

void set_filter_app ()
write_default_recipie (line 108)

This function is used to write a default delivery action

void write_default_recipie ( $fd)
  • $fd
write_filter_recipie (line 96)
void write_filter_recipie ( $fd,  $action,  $field,  $string,  $folder,  $toFolder,  $toAddress,  $add_string,  $matching)
  • $fd
  • $action
  • $field
  • $string
  • $folder
  • $toFolder
  • $toAddress
  • $add_string
  • $matching
write_forward (line 67)
void write_forward ()
write_spam_filter (line 117)
void write_spam_filter ( $fd)
  • $fd

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