Source for file functions.php
Documentation is available at functions.php
/* functions for info plugin
* Copyright (c) 1999-2012 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
* 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
* by: Jason Munro jason@stdbev.com
* $Id: functions.php 14345 2012-12-09 11:58:17Z kink $
$query =
"$sid CAPABILITY\r\n";
fputs ($imap_stream, $query);
$query =
"$sid ".
trim($string).
"\r\n";
fputs ($imap_stream, $query);
foreach($response as $index=>
$value) {
* Check if plugin is enabled
* @param string $plugin_name plugin name
if (empty($plugins) ||
! is_array($plugins))
if ( in_array($plugin_name,$plugins) ) {
Documentation generated on Mon, 20 May 2013 04:22:10 +0200 by phpDocumentor 1.4.3