<?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>Sender validation fails for non-ascii letters</title> 
  <pubDate>Fri, 10 Apr 2026 13:36:21 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9525</link> 
  <atom:link rel="self" type="application/rss+xml" title="Sender validation fails for non-ascii letters" href="https://bugs.horde.org/ticket/9525/rss" /> 
  <description>Sender validation fails for non-ascii letters</description> 
 
   
   
  <item> 
   <title>Not quite certain if the problem is caused by non-ascii lett</title> 
   <description>Not quite certain if the problem is caused by non-ascii letters in general but when trying to send a message to

ß &lt;wrobel@horde.org&gt;

in the dynamic version of imp I get the error that sending of the message failed with

Validation failed for: ß &lt;wrobel@horde.org&gt;</description> 
   <pubDate>Wed, 19 Jan 2011 13:24:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61486</link> 
  </item> 
   
  <item> 
   <title>I don&#039;t see this.  Just sent a message and it worked fine.  </title> 
   <description>I don&#039;t see this.  Just sent a message and it worked fine.  Headers:

[...]
To: =?utf-8?b?w58=?= &lt;slusarz@curecanti.org&gt;
Subject: Test
User-Agent: Internet Messaging Program (IMP) H4 (5.0-git)
[...]
</description> 
   <pubDate>Wed, 19 Jan 2011 19:14:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61490</link> 
  </item> 
   
  <item> 
   <title>The following test for the &quot;Mail&quot; package reproduces the pro</title> 
   <description>The following test for the &quot;Mail&quot; package reproduces the problem on my side:

diff --git a/framework/Mail/test/Horde/Mail/ParseTest.php b/framework/Mail/test/Horde/Mail/ParseTest.php                     
index f095c1c..fec8988 100644                                                                                                
--- a/framework/Mail/test/Horde/Mail/ParseTest.php                                                                           
+++ b/framework/Mail/test/Horde/Mail/ParseTest.php                                                                           
@@ -189,4 +189,16 @@ class Horde_Mail_ParseTest extends PHPUnit_Framework_TestCase
         $this-&gt;assertEquals(count($res), 3);                                                                                
     }                                                                                                                       
                                                                                                                             
+    public function testBug9525()                                                                                           
+    {                                                                                                                       
+        $parser = new Horde_Mail_Rfc822();                                                                                  
+        $ob = $parser-&gt;parseAddressList(                                                                                    
+            &#039;ß &lt;wrobel@pardus.de&gt;&#039;,                                                                                         
+            array(                                                                                                          
+                &#039;default_domain&#039; =&gt; &#039;pardus.de&#039;,                                                                            
+                &#039;nest_groups&#039; =&gt; false,                                                                                     
+                &#039;validate&#039; =&gt; true                                                                                          
+            )                                                                                                               
+        );                                                                                                                  
+    }                                                                                                                       
 }                                                                                                                           


Having a unit test now I assume I would be able to solve it myself. I just wont find the time today anymore and in case you immediately spot the problem I&#039;m of course happy if I don&#039;t have to dive into the code :)</description> 
   <pubDate>Wed, 19 Jan 2011 21:05:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61493</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9525: A</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9525: Add validation tests

http://git.horde.org/horde-git/-/commit/d17e468f3b8c781100fad3bfadb305fdd4164b5d</description> 
   <pubDate>Thu, 20 Jan 2011 04:12:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61494</link> 
  </item> 
   
  <item> 
   <title>&gt; +            &#039;ß &lt;wrobel@pardus.de&gt;&#039;,

Except this *is* </title> 
   <description>&gt; +            &#039;ß &lt;wrobel@pardus.de&gt;&#039;,

Except this *is* an invalid address.  The ß must be quoted - if it is, the validation correctly passes.

So for whatever reason this character is being quoted when I send a message but not when you send a message.  We need to find where in IMP this quoting is failing to occur (unit tests are unfortunately not going to help us here :( ).</description> 
   <pubDate>Thu, 20 Jan 2011 04:14:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61495</link> 
  </item> 
   
  <item> 
   <title>Ah, I see. Thanks for the feedback.

The validation fails </title> 
   <description>Ah, I see. Thanks for the feedback.

The validation fails on l.850 in imp/lib/Compose.php. Is the Horde_Mime::encodeAddress call above it the one that should quote it?</description> 
   <pubDate>Thu, 20 Jan 2011 05:59:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61500</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9525: A</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9525: Add Horde_Mime::encodeAddress() tests

http://git.horde.org/horde-git/-/commit/8696a5446ebb64c22233e6ec37f6379ae42eb98c</description> 
   <pubDate>Thu, 20 Jan 2011 06:21:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61501</link> 
  </item> 
   
  <item> 
   <title>&gt; The validation fails on l.850 in imp/lib/Compose.php. Is t</title> 
   <description>&gt; The validation fails on l.850 in imp/lib/Compose.php. Is the 
&gt; Horde_Mime::encodeAddress call above it the one that should quote it?

Yes.  The email address should be MIME encoded after that call, so it will pass validation (since it no longer contains non-7bit characters).

Added some tests to horde/Mime - both pass for me.</description> 
   <pubDate>Thu, 20 Jan 2011 06:22:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61502</link> 
  </item> 
   
  <item> 
   <title>In both tests you use &#039;UTF-8&#039; as charset. In my case $messag</title> 
   <description>In both tests you use &#039;UTF-8&#039; as charset. In my case $message-&gt;getHeaderCharset() returns &#039;us-ascii&#039; which is probably causing the problems. I&#039;m replying to another message. Might that result in assuming an incorrect character set here?</description> 
   <pubDate>Thu, 20 Jan 2011 06:51:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61503</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9525: S</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9525: Switch header charsets if we can&#039;t encode properly

http://git.horde.org/horde-git/-/commit/0c59c79c42530ea086a137b065da74d6292704f7</description> 
   <pubDate>Thu, 20 Jan 2011 07:20:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61504</link> 
  </item> 
   
  <item> 
   <title>This should fix things (?)</title> 
   <description>This should fix things (?)</description> 
   <pubDate>Thu, 20 Jan 2011 07:20:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61505</link> 
  </item> 
   
  <item> 
   <title>It does. Thanks for the quick fix!</title> 
   <description>It does. Thanks for the quick fix!</description> 
   <pubDate>Thu, 20 Jan 2011 07:50:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9525#t61506</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
