[horde] Horde6-beta: Error when sending mail
Mike
barjunk at attglobal.net
Sun Apr 19 21:39:58 UTC 2026
I was working on narrowing this down, but my tests for Imp are running
yet. Still trying to figure that out.
Mike
Quoting Ralf Lang <ralf.lang at gmail.com>:
> Hi Mike, fix: Guard against empty string like against null by ralflang ·
> Pull Request #4 · horde/Idna <https://github.com/horde/Idna/pull/4> (probably
> fixes it)
>
> However what I don't really get: How did you end up with an empty string to
> pass through IDNA? This might point to another bug in IMP.
>
> On Sat, Apr 18, 2026 at 4:42 PM Mike <barjunk at attglobal.net> wrote:
>
>>
>> When sending mail to barjunk at attglobal.net I get this error.
>>
>> Apr 18 08:45:33 ubuntu HORDE[6589]: [imp] ValueError: idn_to_ascii():
>> Argument #1 ($domain) must not be empty in
>> /var/www/horde6-beta/vendor/horde/idna/lib/Horde/Idna.php:49
>> Apr 18 08:45:33 ubuntu HORDE[6589]: Stack trace:
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #0
>> /var/www/horde6-beta/vendor/horde/idna/lib/Horde/Idna.php(49):
>> idn_to_ascii()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #1
>> /var/www/horde6-beta/vendor/horde/mail/lib/Horde/Mail/Rfc822/Address.php(141):
>>
>> Horde_Idna::encode()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #2
>> /var/www/horde6-beta/vendor/horde/mail/lib/Horde/Mail/Rfc822/Address.php(168):
>>
>> Horde_Mail_Rfc822_Address->__get()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #3
>> /var/www/horde6-beta/vendor/horde/mail/lib/Horde/Mail/Rfc822/Object.php(68):
>>
>> Horde_Mail_Rfc822_Address->_writeAddress()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #4
>> /var/www/horde6-beta/vendor/horde/mail/lib/Horde/Mail/Rfc822/List.php(238):
>>
>> Horde_Mail_Rfc822_Object->writeAddress()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #5
>> /var/www/horde6-beta/vendor/horde/mail/lib/Horde/Mail/Rfc822/Object.php(68):
>>
>> Horde_Mail_Rfc822_List->_writeAddress()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #6
>> /var/www/horde6-beta/vendor/horde/mime/lib/Horde/Mime/Headers/Addresses.php(166):
>>
>> Horde_Mail_Rfc822_Object->writeAddress()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #7
>> /var/www/horde6-beta/vendor/horde/mime/lib/Horde/Mime/Headers/Addresses.php(133):
>>
>> Horde_Mime_Headers_Addresses::doSendEncode()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #8
>> /var/www/horde6-beta/vendor/horde/mime/lib/Horde/Mime/Headers/Element.php(99):
>>
>> Horde_Mime_Headers_Addresses->_sendEncode()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #9
>> /var/www/horde6-beta/vendor/horde/mime/lib/Horde/Mime/Headers.php(139):
>> Horde_Mime_Headers_Element->sendEncode()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #10
>> /var/www/horde6-beta/vendor/horde/mime/lib/Horde/Mime/Part.php(1613):
>> Horde_Mime_Headers->toArray()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #11
>> /var/www/horde6-beta/vendor/horde/imp/lib/Compose.php(1391):
>> Horde_Mime_Part->send()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #12
>> /var/www/horde6-beta/vendor/horde/imp/lib/Compose.php(880):
>> IMP_Compose->sendMessage()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #13
>> /var/www/horde6-beta/vendor/horde/imp/lib/Ajax/Application/Handler/Common.php(538):
>>
>> IMP_Compose->buildAndSendMessage()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #14
>> /var/www/horde6-beta/vendor/horde/core/lib/Horde/Core/Ajax/Application.php(177):
>>
>> IMP_Ajax_Application_Handler_Common->sendMessage()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #15
>> /var/www/horde6-beta/vendor/horde/horde/services/ajax.php(64):
>> Horde_Core_Ajax_Application->doAction()
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #16
>> /var/www/horde6-beta/web/horde/services/ajax.php(3): require_once('...')
>> Apr 18 08:45:33 ubuntu HORDE[6589]: #17 {main} [pid 6589 on line 78 of
>> "/var/www/horde6-beta/vendor/horde/core/lib/Horde/ErrorHandler.php"]
>>
>> Sending to this does work with horde alpha.
>>
>> Using horde/imp 7beta3
>>
>> --
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>
More information about the horde
mailing list