Hello:
IMP 6.1.0beta2
Horde 5.1.0beta3
I have a username hook in horde that converts the username to
usern...@example.com.
So the user inputs 'test' in horde login screen, and then
$registry->getAuth() will return 't...@example.com'.
When I click "New Message" in IMP, the 'username' field in '_params'
from Horde_Mail_Transport_Smtp is set correctly (with the
'@example.com'), like this:
2013-05-20T04:06:47+00:00 DEBUG: Variable information:
object(Horde_Mail_Transport_Smtp)#277 (6) {
["greeting"]=>
NULL
["queuedAs"]=>
NULL
["_smtp":protected]=>
NULL
["_extparams":protected]=>
array(0) {
}
["sep"]=>
string(2) "
"
["_params":protected]=>
array(10) {
["auth"]=>
bool(true)
["debug"]=>
bool(false)
["host"]=>
string(9) "localhost"
["localhost"]=>
string(14) "smtp.gmail.com"
["password"]=>
string(17) "XXX"
["persist"]=>
bool(false)
["pipelining"]=>
bool(false)
["port"]=>
int(465)
["timeout"]=>
NULL
["username"]=>
string(22) *"t...@example.com"*
}
}
Backtrace:
1. IMP_Dynamic_Base->__construct() /var/www/horde/imp/dynamic.php:31
2. IMP_Dynamic_Compose->_init() /var/www/horde/imp/lib/Dynamic/Base.php:90
3. Horde_Notification_Handler->notify()
/var/www/horde/imp/lib/Dynamic/Compose.php:260
4. Horde_Notification_Handler_Decorator_Alarm->notify()
/usr/share/php/Horde/Notification/Handler.php:317
5. Horde_Core_Factory_Alarm->create()
/usr/share/php/Horde/Notification/Handler/Decorator/Alarm.php:61
6. Horde_Injector->getInstance()
/usr/share/php/Horde/Core/Factory/Alarm.php:93
7. Horde_Injector->createInstance() /usr/share/php/Horde/Injector.php:247
8. Horde_Injector_Binder_Factory->create()
/usr/share/php/Horde/Injector.php:213
9. Horde_Core_Factory_Mail->create()
/usr/share/php/Horde/Injector/Binder/Factory.php:111
10. Horde_Mail_Transport_Smtp->__construct()
/usr/share/php/Horde/Core/Factory/Mail.php:32
11. Horde::debug() /usr/share/php/Horde/Mail/Transport/Smtp.php:155
But when I click the *'send'* button, the 'username' is set without the
domain part ('@example.com'), and then the smtp authentication fails (in
my case the smtp server needs the complete address in order to success).
This is the same debug information as above, but this is shown when I
click the 'send' button in the compose window (you can see the username
without the domain part):
2013-05-20T04:12:09+00:00 DEBUG: Variable information:
object(Horde_Mail_Transport_Smtp)#208 (6) {
["greeting"]=>
NULL
["queuedAs"]=>
NULL
["_smtp":protected]=>
NULL
["_extparams":protected]=>
array(0) {
}
["sep"]=>
string(2) "
"
["_params":protected]=>
array(11) {
["auth"]=>
bool(true)
["debug"]=>
bool(false)
["host"]=>
string(20) "ssl://smtp.gmail.com"
["localhost"]=>
string(9) "localhost"
["password"]=>
string(17) "XXX"
["persist"]=>
bool(false)
["pipelining"]=>
bool(false)
["port"]=>
int(465)
["timeout"]=>
NULL
["username"]=>
string(6) *"test"*
["secure"]=>
string(3) "ssl"
}
}
Backtrace:
1. Horde_Core_Ajax_Application->doAction()
/var/www/horde/services/ajax.php:56
2. call_user_func() /usr/share/php/Horde/Core/Ajax/Application.php:162
3. IMP_Ajax_Application_Handler_Common->sendMessage()
4. IMP_Compose->buildAndSendMessage()
/var/www/horde/imp/lib/Ajax/Application/Handler/Common.php:528
5. IMP_Compose->sendMessage() /var/www/horde/imp/lib/Compose.php:842
6. Horde_Injector->getInstance() /var/www/horde/imp/lib/Compose.php:1067
7. Horde_Injector->createInstance() /usr/share/php/Horde/Injector.php:247
8. Horde_Injector_Binder_Factory->create()
/usr/share/php/Horde/Injector.php:213
9. IMP_Factory_Mail->create()
/usr/share/php/Horde/Injector/Binder/Factory.php:111
10. Horde_Mail_Transport_Smtp->__construct()
/var/www/horde/imp/lib/Factory/Mail.php:62
11. Horde::debug() /usr/share/php/Horde/Mail/Transport/Smtp.php:155
Any pointers?
Thanks.
--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org