[Tickets #13608] Re: "Address is missing domain" when sending mail
noreply at bugs.horde.org
noreply at bugs.horde.org
Thu Oct 2 05:28:40 UTC 2014
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: https://bugs.horde.org/ticket/13608
------------------------------------------------------------------------------
Ticket | 13608
Updated By | tprobinson at cipherprosolutions.com
Summary | "Address is missing domain" when sending mail
Queue | IMP
Version | 6.2.2
Type | Bug
State | Feedback
Priority | 1. Low
Milestone |
Patch |
Owners |
+New Attachment | tests.png
------------------------------------------------------------------------------
tprobinson at cipherprosolutions.com (2014-10-02 05:28) wrote:
> We have multiple unit tests that check for this, and none fail. So
> you will have to provide a failing unit test that proves otherwise.
>
> As mentioned, commenting out the code doesn't have anything to do
> with whether the code is correct. If the verification code is
> passed an email address without a domain, that's a problem with
> IMP's configuration - commenting out the exception doesn't change
> anything.
>
> In short, you should add a debug/print statement where the exception
> is thrown to determine what the value is at that point.
Alright, I added and modified exception throwing to do some tests,
using 'mail at gmail.com'. I've attached a four-part image of screencaps
of the file and the results.
The results were that at line 401, $host is 'mail at gmail.com', (screen
1) and $ob->host is set to that. (screen 2) At that time, it is
correct. However, at line 414, $ob->host has become null. (screen 3)
Literally nothing happens to it in between those points, because even
if an exception is thrown it doesn't do anything to the data.
$this->_params['default_domain'] is also null, which means that it
doesn't overwrite $ob->host. (screen 4)
The string "Address is missing domain" does not occur anywhere else in
the file, nor in any other file, so this must be the place where
something mysterious happens to $ob->host.
I don't really know the structure of the $ob variable, so I'm not sure
what else to check or why the mail delivery succeeds when I remove the
exception. What else can I do to help collect evidence?
tprobinson at cipherprosolutions.com (2014-10-02 05:28) uploaded: tests.png
https://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=tests.png&ticket=13608&fn=%2Ftests.png
More information about the bugs
mailing list