[Tickets #5358] $pref['mail_domain'] / $conf['maildomain'] not being appended to unqualified addresses

bugs at bugs.horde.org bugs at bugs.horde.org
Tue May 15 14:07:01 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5358
-----------------------------------------------------------------------
 Ticket             | 5358
 Created By         | liamr at deathstar.org
 Summary            | $pref['mail_domain'] / $conf['maildomain'] not being appended to
                    | unqualified addresses
 Queue              | IMP
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


liamr at deathstar.org (2007-05-15 07:07) wrote:

in 4.0.x, if you gave it an unqualified address, it would tack a default
maildomain on to it.

IMP 4.2 CVS appears to have a preference for this purpose -
$pref['mail_domain'], which is described as..

   When sending mail or expanding addresses, what domain should we
   append to unqualified addresses (email addresses without "@")?

There's also a field in config/servers.php that contains a default mail
domain ( $conf['maildomain'] / $_SESSION['imp']['maildomain']), which is
described as..

    This will also be used to complete unqualified addresses when
composing mail.

Nothing appears to actually using these values.  Instead, if you try
sending a message with an unqualified address, you get..

   There was an error sending your message: Validation failed for:
joeuser@ 

Seems like the change would go in imp/lib/Imple/ContactAutoCompleter.php



More information about the bugs mailing list