[imp] IMAP ACLs [PATCH]
Chris Hastie
lists at oak-wood.co.uk
Mon Feb 3 18:02:54 PST 2003
On Mon, 3 Feb 2003, Jan Schneider <jan at horde.org> wrote
>It would be great if you could also make a patch for test.php that includes
>an (optional) check for Auth_SASL.
I think this should do the trick
-------------- next part --------------
--- horde/test.php,v 1.84
+++ horde/test.php Mon Feb 3 17:57:50 2003
@@ -25,7 +25,7 @@
function testErrorHandler($errno, $errmsg, $filename, $linenum, $vars) {
global $pear, $newpear, $pearmail, $pearmailmime, $pearlog, $peardb,
- $pearsocket, $pearcsv, $pearhcemd5, $peardate, $unkerr;
+ $pearsocket, $pearcsv, $pearhcemd5, $peardate, $pearsasl, $unkerr;
if (preg_match('/PEAR\.php/', $errmsg)) {
$pear = false;
} elseif (preg_match('/RFC822\.php/', $errmsg)) {
@@ -42,6 +42,8 @@
$pearcsv = false;
} elseif (preg_match('/Calc\.php/', $errmsg)) {
$peardate = false;
+ } elseif (preg_match('/SASL\.php/', $errmsg)) {
+ $pearsasl = false;
} else {
$unkerr = "$errmsg ($filename:$linenum)";
}
@@ -184,6 +186,7 @@
$pearhcemd5 = true;
$peardate = true;
$pearhtml = true;
+$pearsasl = true;
$unkerr = '';
set_error_handler('testErrorHandler');
include 'PEAR.php';
@@ -193,6 +196,7 @@
include 'DB.php';
include 'Net/Socket.php';
include 'Date/Calc.php';
+include 'Auth/SASL.php';
restore_error_handler();
/* Check the version of the pear database API. */
@@ -451,6 +455,11 @@
<?php if ($pear && !$peardate) { ?>
<li><font color="red">Horde requires the Date_Calc class for Kronolith to calculate dates.</font></li>
<?php } ?>
+ <li>SASL - <?php status($pearsasl); ?></li>
+ <?php if ($pear && !$pearsasl) { ?>
+ <li><font color="red">Horde will work without the Auth_SASL class, but if you use Access Control Lists in Imp
+ you should be aware that without this class passwords will be sent to the IMAP server in plain text when retrieving ACLs.</font></li>
+ <?php } ?>
<?php if ($unkerr) { ?>
<li><font color="red">Unknown error:</font> <?php echo $unkerr; ?></li>
<?php } ?>
-------------- next part --------------
--
Chris Hastie
More information about the imp
mailing list