File/sieve-php.lib.php

Description

sieve-php.lib.php

$Id: sieve-php.lib.php,v 1.4 2003/12/18 13:18:05 avel Exp $

Copyright 2001-2003 Dan Ellis <danellis@rushmore.com>

This program is released under the GNU Public License. See the enclosed file COPYING for license information. If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.

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

See CHANGES for updates since last release

  • version: 0.1.0cvs
  • copyright: Copyright 2002-2003, Dan Ellis, All Rights Reserved.
  • author: Dan Ellis
Classes
Class Description
 class sieve SIEVE class - A Class that implements MANAGESIEVE in PHP4|5.
Constants
EC_NOSCRIPTS = 20 (line 35)
EC_NOT_LOGGED_IN = (line 33)
EC_QUOTA = 10 (line 34)
EC_UNKNOWN = 255 (line 36)
F_DATA = 2 (line 30)
F_HEAD = 3 (line 31)
F_NO = (line 28)

Constants

F_OK = 1 (line 29)
Functions
decode_challenge (line 891)

A hack to decode the challenge from timsieved 1.1.0.

This function may not work with other versions and most certainly won't work with other DIGEST-MD5 implentations

void decode_challenge ($input $input)
  • $input $input: string Challenge supplied by timsieved.
hmac_md5 (line 857)

Creates a HMAC digest that can be used for auth purposes.

See RFCs 2104, 2617, 2831 Uses mhash() extension if available

Squirrelmail has this function in functions/auth.php, and it might have been included already. However, it helps remove the dependancy on mhash.so PHP extension, for some sites. If mhash.so _is_ available, it is used for its speed.

This function is Copyright (c) 1999-2003 The SquirrelMail Project Team Licensed under the GNU GPL. For full terms see the file COPYING.

  • return: HMAC Digest string
string hmac_md5 (string $data, [string $key = ''])
  • string $data: Data to apply hash function to.
  • string $key: Optional key, which, if supplied, will be used to calculate data's HMAC.

Documentation generated on Thu, 18 Dec 2003 15:18:53 +0200 by phpDocumentor 1.2.3