6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/20/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3854] IMP connecting to a Courier IMAP Proxy
*
Your Email Address
*
Spam protection
Enter the letters below:
. .__.. ,._..__ | [__] \./ | [__) |___| | | _|_[__)
Comment
> If IMP is pointed against a IMAP proxy server, it will fail a user > authentication with "Bad Request" if the user actually gets proxied > to a different IMAP server. If the user is local to that IMAP > server, IMP performs fine. > > > > When Courier IMAP proxy connects to a remote IMAP server, it repeats > the capability statement - IMP doesn't know how to handle this. I > have patched IMAP/Client.php with the following: > > > > --- /usr/src/imp-h3-4.1.1/lib/IMAP/Client.php 2006-03-30 > 10:15:31.000000000 +0000 > > +++ /var/www/html/horde/imp/lib/IMAP/Client.php 2006-04-28 > 18:43:17.000000000 +0000 > > @@ -606,6 +606,18 @@ > > case 'NO': > > return PEAR::raiseError(sprintf(_("Bad login name or > password."), $message), 'horde.error'); > > > > + // If we connect to a Courier IMAP proxy, it will spit out the > > + // capability line from the server that it automatically > re-connects+ // you to. Eat the next line, and proceed > from there > > + case 'CAPABILITY': > > + $read = $this->_fgets(); > > + $results = explode(' ', $read, 3); > > + $response = $results[1]; > > + if( $response != 'OK' ) { > > + return PEAR::raiseError(sprintf(_("Bad login > name or password."), $message), 'horde.error'); > > + } else { > > + return true; > > + } > > case 'BAD': > > default: > > return PEAR::raiseError(sprintf(_("Bad request: > %s"), $message), 'horde.error'); > > > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers