Source for file functions.php
Documentation is available at functions.php
* functions for info plugin
* Here are two functions for the info plugin
* The first gets the CAPABILITY response from your IMAP server.
* The second runs the passed IMAP test and returns the results
* The third prints the results of the IMAP command
* @author Jason Munro <jason at stdbev.com>
* @copyright © 1999-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: functions.php,v 1.15 2006/07/15 12:01:18 tokul Exp $
* Get the IMAP capabilities
* @param mixed $imap_stream
function get_caps($imap_stream) {
* Run an IMAP test and return the results
* @param mixed $imap_stream
* @param string $string imap command
* @return array Response from the IMAP server
function imap_test($imap_stream, $string) {
array_push($response, $responses .
' ' .
$message);
* Print the IMAP response to options.php
* @param array $response results of imap command
function print_response($response) {
foreach($response as $index=>
$value) {
Documentation generated on Sat, 07 Oct 2006 16:11:08 +0300 by phpDocumentor 1.3.0RC6