Bugreport and patch for Avelsieve
by: Pascal-Nicolas Becker <pnb.NOSP@MMER.pascal-becker.de>, @ Mon, 21 Dec 2009 03:53:19 +0200


I hope this mail reaches anyone who can apply patches to Avelsieve. In version
1.9.9 of avelsieve there's a small bug avoiding avelsieve to work with
dovecot. The auth_type is converted lower cases. The value it is compared with
is not converted. Dovecote repots its authentification capabilities in
upper cases so no allowed authentification method is found. Adding strtolower()
in line 538 fixes this problem.

If found no way to signup at email.uoa.gr. Without account it's impossible to
report a bug report in avelsieves trac.

Sincerely yours,
Pascal Becker

--- include/managesieve.lib.php
+++ managesieve.lib.php 2009-12-21 02:18:21.000000000 +0100
@@ -535,7 +535,7 @@

/* Loop through each allowed authentication type and see if the server
allows the type */
foreach(explode(" ", $this->auth_types) as $auth_type) {
- if ($this->capabilities["auth"][$auth_type]) {
+ if ($this->capabilities["auth"][strtolower($auth_type)]) {
/* We found an auth type that is allowed. */
$this->auth_in_use = $auth_type;