<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>no domain set in From: when composing mail</title> 
  <pubDate>Fri, 10 Apr 2026 14:49:32 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/3057</link> 
  <atom:link rel="self" type="application/rss+xml" title="no domain set in From: when composing mail" href="https://bugs.horde.org/ticket/3057/rss" /> 
  <description>no domain set in From: when composing mail</description> 
 
   
   
  <item> 
   <title>Horde-3.0.5, Mimp-h3-1.0-alpha



When users select &#039;Compose</title> 
   <description>Horde-3.0.5, Mimp-h3-1.0-alpha



When users select &#039;Compose&#039;, the From: field comes up

as &quot;user@&quot; (no domain).



This doesn&#039;t happen if that user has set up an explicit From: address

in his default identity (in that case the From: comes up OK).



In MIMP&#039;s server.php, &#039;maildomain&#039; is set correctly (see attached server.php)



The same setting works in IMP.



</description> 
   <pubDate>Mon, 28 Nov 2005 10:20:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3057#t14185</link> 
  </item> 
   
  <item> 
   <title>&gt; Horde-3.0.5, Mimp-h3-1.0-alpha

&gt;

&gt; When users select &#039;Co</title> 
   <description>&gt; Horde-3.0.5, Mimp-h3-1.0-alpha

&gt;

&gt; When users select &#039;Compose&#039;, the From: field comes up

&gt; as &quot;user@&quot; (no domain).

&gt;

&gt; This doesn&#039;t happen if that user has set up an explicit From: address

&gt; in his default identity (in that case the From: comes up OK).

&gt;

&gt; In MIMP&#039;s server.php, &#039;maildomain&#039; is set correctly (see attached server.php)

&gt;

&gt; The same setting works in IMP.

&gt;

&gt;



We have experienced the same behaviour. 



In compose.php, in the function _formatAddr($addr), in  switch  ($actionID) the call at line 127    $_GET[&#039;identity&#039;] = $default; does not  pick up the maildomain. 



Changing this to the function call used by compose.php in imp works:  $_GET[&#039;identity&#039;] = $identity-&gt;getMatchingIdentity($fromaddr);



</description> 
   <pubDate>Thu, 08 Dec 2005 14:10:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3057#t14639</link> 
  </item> 
   
  <item> 
   <title>I&#039;m not seeing the reported behavior, but when I reply to a </title> 
   <description>I&#039;m not seeing the reported behavior, but when I reply to a message that was sent to a non-default Identity, the compose window defaults to the default identity, not the one it should (and does in IMP). Looks like this is related.



Michael, I&#039;m not quite following things right now (not really time), but it looks like MIMP&#039;s compose.php expects to be passed an &#039;identity&#039; form parameter, but MIMP doesn&#039;t set that in its compose links, whereas IMP does...</description> 
   <pubDate>Thu, 08 Dec 2005 19:01:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3057#t14646</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Horde-3.0.5, Mimp-h3-1.0-alpha

&gt;&gt;

&gt;&gt; When users select </title> 
   <description>&gt;&gt; Horde-3.0.5, Mimp-h3-1.0-alpha

&gt;&gt;

&gt;&gt; When users select &#039;Compose&#039;, the From: field comes up

&gt;&gt; as &quot;user@&quot; (no domain).

&gt;&gt;

&gt;&gt; This doesn&#039;t happen if that user has set up an explicit From: address

&gt;&gt; in his default identity (in that case the From: comes up OK).

&gt;&gt;

&gt;&gt; In MIMP&#039;s server.php, &#039;maildomain&#039; is set correctly (see attached 

&gt;&gt; server.php)

&gt;&gt;

&gt;&gt; The same setting works in IMP.

&gt;&gt;

&gt;&gt;

&gt;

&gt; We have experienced the same behaviour.

&gt;

&gt; In compose.php, in the function _formatAddr($addr), in  switch  

&gt; ($actionID) the call at line 127    $_GET[&#039;identity&#039;] = $default; 

&gt; does not  pick up the maildomain.

&gt;

&gt; Changing this to the function call used by compose.php in imp works:  

&gt; $_GET[&#039;identity&#039;] = $identity-&gt;getMatchingIdentity($fromaddr);

&gt;



Are you talking about the problem I initially reported (when composing new mail) or what

Chuck has seen (when replying to a mail sent to a non-default identity)?

I&#039;ve tried to apply your suggested change but that didn&#039;t fix my problem.

This statement appears at line #123 in my version (1.0-alpha) and not #129, by the way.

* $Horde: mimp/compose.php,v 1.66 2005/10/09 17:57:10 slusarz Exp $

I really need to find some time to dig into this myself.



</description> 
   <pubDate>Fri, 09 Dec 2005 09:12:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3057#t14655</link> 
  </item> 
   
  <item> 
   <title>Well, my problem seems to revolve around $_SESSION[&#039;mimp&#039;][&#039;</title> 
   <description>Well, my problem seems to revolve around $_SESSION[&#039;mimp&#039;][&#039;maildomain&#039;]

not being set. If I force it to a hardcoded value (the same value I have set in servers.php) in redirect.php like:

    $sessArray = array(&#039;server&#039;     =&gt; Util::getFormData(&#039;server&#039;),

                       &#039;realm&#039;      =&gt; Util::getFormData(&#039;realm&#039;),

                       &#039;port&#039;       =&gt; Util::getFormData(&#039;port&#039;),

                       &#039;protocol&#039;   =&gt; Util::getFormData(&#039;protocol&#039;),

                       &#039;maildomain&#039; =&gt; Util::getFormData(&#039;maildomain&#039;));  

change last line to:

                       &#039;maildomain&#039; =&gt; &#039;ait.ac.th&#039;);

the problem goes away. Somehow this value isn&#039;t set to the value found in the corresponding (and only) entry of ./config/servers.php:

$servers[&#039;topmail&#039;] = array(

...

&#039;maildomain&#039; =&gt; &#039;ait.ac.th&#039;,

...

My conf.php has:

$conf[&#039;server&#039;][&#039;server_list&#039;] = &#039;none&#039;;

$conf[&#039;server&#039;][&#039;change_server&#039;] = false;

$conf[&#039;server&#039;][&#039;change_port&#039;] = false;

$conf[&#039;server&#039;][&#039;change_protocol&#039;] = false;

$conf[&#039;server&#039;][&#039;change_folders&#039;] = false;

and I guess that&#039;s relevant to this problem.

I still can&#039;t figure out yet where it should be set and isn&#039;t: in ./redirect.php? in ./lib/Session.php (MIMP_Session::createSession)? in ./templates/login/login.inc (just a form entry)?

I&#039;ll give this another try next week. Any input is welcome.</description> 
   <pubDate>Fri, 09 Dec 2005 10:33:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3057#t14657</link> 
  </item> 
   
  <item> 
   <title>Sorry, minutes after the last post I might have found a fix </title> 
   <description>Sorry, minutes after the last post I might have found a fix (context diff attached).

In ./lib/Session.php:



- add &#039;maildomain&#039; to the loop:

foreach (array(&#039;port&#039;, &#039;protocol&#039;, &#039;smtphost&#039;, &#039;smtpport&#039;) as $param) {

- remove the line a bit further down:

$_SESSION[&#039;mimp&#039;][&#039;maildomain&#039;] = $args[&#039;maildomain&#039;];



That did it for me.</description> 
   <pubDate>Fri, 09 Dec 2005 10:46:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3057#t14659</link> 
  </item> 
   
  <item> 
   <title>&gt; Sorry, minutes after the last post I might have found a fi</title> 
   <description>&gt; Sorry, minutes after the last post I might have found a fix (context 

&gt; diff attached).

&gt; In ./lib/Session.php:

&gt;

&gt; - add &#039;maildomain&#039; to the loop:

&gt; foreach (array(&#039;port&#039;, &#039;protocol&#039;, &#039;smtphost&#039;, &#039;smtpport&#039;) as $param) {

&gt; - remove the line a bit further down:

&gt; $_SESSION[&#039;mimp&#039;][&#039;maildomain&#039;] = $args[&#039;maildomain&#039;];

&gt;

&gt; That did it for me.



No, this isn&#039;t right.  Instead, try what I just committed to CVS.</description> 
   <pubDate>Sat, 10 Dec 2005 07:19:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3057#t14672</link> 
  </item> 
   
  <item> 
   <title>I just pulled the CVS version and yes, it does seem to fix t</title> 
   <description>I just pulled the CVS version and yes, it does seem to fix the problem.

Care to elaborate about the right way to fix this? Where were these changes committed? in redirect.php?</description> 
   <pubDate>Tue, 13 Dec 2005 04:03:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3057#t14774</link> 
  </item> 
   
  <item> 
   <title>http://lists.horde.org/archives/cvs/Week-of-Mon-20051205/051</title> 
   <description>http://lists.horde.org/archives/cvs/Week-of-Mon-20051205/051894.html



This code was needed as the default parameters were potentially not being set correctly from the information in the backends.php file.</description> 
   <pubDate>Tue, 13 Dec 2005 15:47:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3057#t14796</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
