[dev] [PATCH] imp/lib/Session.php
Marc Jauvin
marc at r4l.com
Thu Sep 29 09:46:07 PDT 2005
OK, I _finally_ found the problem I had been having all along:
Since I'm using a function to "remap" my IMAP
usernames(_imp_hook_vinfo) and the create() function in Session uses
the $imapuser variable instead of the $_SESSION['imp']['user'] variable
(which contains the "remapped" username).
Index: imp/lib/Session.php
===================================================================
RCS file: /repository/imp/lib/Session.php,v
retrieving revision 1.103
diff -u -r1.103 Session.php
--- imp/lib/Session.php 28 Sep 2005 04:57:41 -0000 1.103
+++ imp/lib/Session.php 29 Sep 2005 16:42:30 -0000
@@ -263,7 +263,7 @@
}
} else {
/* Auto-detect namespace parameters from IMAP server. */
- $res = $imapclient->login($imapuser, $password);
+ $res = $imapclient->login($_SESSION['imp']['user'],
$password);
if (is_a($res, 'PEAR_Error')) {
$auth_imp->IMPsetAuthErrorMsg($res->getMessage());
return false;
--
Marc Jauvin
http://register4less.com
514-905-6500
More information about the dev
mailing list