[horde] [ActiveSync] unable to send email
Pulz, Joerg
Joerg.Pulz at frm2.tum.de
Thu May 22 09:50:42 UTC 2014
----- Message from Michael J Rubinsky <mrubinsk at horde.org> ---------
Date: Wed, 21 May 2014 10:13:37 -0400
From: Michael J Rubinsky <mrubinsk at horde.org>
Reply-To: mrubinsk at horde.org
Subject: Re: [horde] [ActiveSync] unable to send email
To: horde at lists.horde.org
> Quoting Michael J Rubinsky <mrubinsk at horde.org>:
>
>> Quoting "Pulz, Joerg" <Joerg.Pulz at frm2.tum.de>:
>>
>>> Okay, i tracked this down and found the place where it breaks.
>>> It's most probably commit 07bdf1e2734fbf8dc876c896315375d13c0311a6
>>>
>>> For our setup every default identity is in the form
>>> lastname, firstname
>>> -> e.g. Pulz, Joerg
>>>
>>> The Horde WebUI displays this correct in the upper right as
>>> "lastname, firstname" <email address>
>>> -> e.g. "Pulz, Joerg" <Joerg.Pulz at frm2.tum.de>
>>>
>>> When i try to send an email using ActiveSync i get the following
>>> headers from the device
>>> ["from"]=>
>>> array(2) {
>>> ["h"]=>
>>> string(4) "From"
>>> ["v"]=>
>>> string(33) ""Pulz, Joerg" <jpulz at frm2.tum.de>"
>>> }
>>> ["to"]=>
>>> array(2) {
>>> ["h"]=>
>>> string(2) "To"
>>> ["v"]=>
>>> string(22) "Joerg.Pulz at frm2.tum.de"
>>> }
>>>
>>> Right after this part of code in Horde_Core_ActiveSync_Driver::sendMail()
>>> 1855 // Always add From: since we allow selecting the identity.
>>> 1856 $headers->removeHeader('From');
>>> 1857 $headers->addHeader('From',
>>> $this->_getIdentityFromAddress());
>>>
>>> i get the following headers
>>> ["to"]=>
>>> array(2) {
>>> ["h"]=>
>>> string(2) "To"
>>> ["v"]=>
>>> string(22) "Joerg.Pulz at frm2.tum.de"
>>> }
>>> array(2) {
>>> ["h"]=>
>>> string(4) "From"
>>> ["v"]=>
>>> string(36) "Pulz, Joerg <Joerg.Pulz at frm2.tum.de>"
>>> }
>>>
>>> As you can see, the double quotes around the fullname are missing,
>>> which at the end leads to my error "Address is missing domain".
>>>
>>> For now i just modified
>>> Horde_Core_ActiveSync_Driver::_getIdentityFromAddress() to return
>>> explicit double quotes around the fullname
>>>
>>> return '"' . $name . '" <' . $from_addr . '>';
>>>
>>> instead of
>>>
>>> return $name . ' <' . $from_addr . '>';
>>>
>>> This solves my problem for now and i can send email using
>>> ActiveSync, but i think this is absolutely a hack and no clean
>>> solution.
>>>
>>> A better and official fix for this problem is much appreciated.
>>
>> You don't by any chance ave the full: "Pulz, Joerg"
>> <jpulz at frm2.tum.de> entered in the email address field in the
>> identity pref, do you?
>
>
> Nevermind. Can you please open a ticket on bugs.horde.org so this
> doesn't get lost?
----- End message from Michael J Rubinsky <mrubinsk at horde.org> -----
Done, Ticket #13208
http://bugs.horde.org/ticket/13208
Kind regards
Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1330 bytes
Desc: PGP Public Key
URL: <http://lists.horde.org/archives/horde/attachments/20140522/ee16c165/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: PGP Digital Signature
URL: <http://lists.horde.org/archives/horde/attachments/20140522/ee16c165/attachment-0003.bin>
More information about the horde
mailing list