Source for file functions.php
Documentation is available at functions.php
/* functions for info plugin
* Copyright (c) 1999-2020 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
* $Id: functions.php 14840 2020-01-07 07:42:38Z pdontthink $
$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, 13 Jan 2020 04:24:39 +0100 by phpDocumentor 1.4.3