<?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>Fix import of multiple email addresses</title> 
  <pubDate>Fri, 10 Apr 2026 01:27:08 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6897</link> 
  <atom:link rel="self" type="application/rss+xml" title="Fix import of multiple email addresses" href="https://bugs.horde.org/ticket/6897/rss" /> 
  <description>Fix import of multiple email addresses</description> 
 
   
   
  <item> 
   <title>Hello together :-)



Attached patch fixes the import of mul</title> 
   <description>Hello together :-)



Attached patch fixes the import of multiple email addresses.

Needs the patch from bug #6896 to work properly.



I also added code to check the return value of $rfc822-&gt;validateMailbox()

to prevent data loss and warning messages like this:



[Tue Jun 10 14:20:58 2008] [error] [client 172.16.1.2] PHP Notice:  Trying to get property of non-object in /usr/intranator/html/horde/turba/data.php on line 64, referer: http://intradev.m.i2n/horde/turba/data.php



Cheers,

Thomas

</description> 
   <pubDate>Wed, 11 Jun 2008 08:47:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t46250</link> 
  </item> 
   
  <item> 
   <title>If something doesn&#039;t validate, then we shouldn&#039;t be letting </title> 
   <description>If something doesn&#039;t validate, then we shouldn&#039;t be letting it into the email field - that&#039;s half the point of this function...</description> 
   <pubDate>Wed, 11 Jun 2008 20:29:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t46284</link> 
  </item> 
   
  <item> 
   <title>&gt; If something doesn&#039;t validate, then we shouldn&#039;t be lettin</title> 
   <description>&gt; If something doesn&#039;t validate, then we shouldn&#039;t be letting it into 

&gt; the email field - that&#039;s half the point of this function...



I got the impression the function was there to strip of the &quot;personal&quot; part of an email address. Well, if it also was intended as validation, then we should inform the user if something went wrong. IMHO it would be ok to import the &quot;bad&quot; data and the user can correct it later. But I&#039;m okay with the change, if you want to you can modify the code to output a notification including the failing address and skip it from $results.

</description> 
   <pubDate>Thu, 12 Jun 2008 07:30:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t46301</link> 
  </item> 
   
  <item> 
   <title>&gt; I got the impression the function was there to strip of th</title> 
   <description>&gt; I got the impression the function was there to strip of the 

&gt; &quot;personal&quot; part of an email address. 



...which ensures that it&#039;s a valid value for an &#039;email&#039; field.



&gt; IMHO it would be ok to import the &quot;bad&quot; data and the user can correct 

&gt; it later. 



Don&#039;t agree with that.

</description> 
   <pubDate>Thu, 12 Jun 2008 14:27:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t46317</link> 
  </item> 
   
  <item> 
   <title>Thomas - ping?</title> 
   <description>Thomas - ping?</description> 
   <pubDate>Mon, 30 Jun 2008 18:56:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t47028</link> 
  </item> 
   
  <item> 
   <title>&gt; Thomas - ping?



Hey :-)



Thought this made my point:

</title> 
   <description>&gt; Thomas - ping?



Hey :-)



Thought this made my point:

&quot;But I&#039;m okay with the change, if you want to you can modify the code to

output a notification including the failing address and skip it from $results.&quot;



-&gt; Do as you like, but with fix the import of multiple email addresses :-)

</description> 
   <pubDate>Tue, 01 Jul 2008 07:08:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t47064</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/turba/data.php?r1=1.104&amp;r2=1.105&amp;ty=u
http://cvs.horde.org/diff.php/turba/docs/CHANGES?r1=1.430&amp;r2=1.431&amp;ty=u</description> 
   <pubDate>Wed, 02 Jul 2008 06:36:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t47087</link> 
  </item> 
   
  <item> 
   <title>Thanks, Chuck!



We should check the return code of $rfc822</title> 
   <description>Thanks, Chuck!



We should check the return code of $rfc822-&gt;validateMailbox() though as this will lead to nasty PHP warnings if you throw an invalid address at _getBareEmail().

</description> 
   <pubDate>Wed, 02 Jul 2008 07:10:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t47091</link> 
  </item> 
   
  <item> 
   <title>This just uses the same logic as previously. If there was a </title> 
   <description>This just uses the same logic as previously. If there was a separate problem with that, can you please create a ticket with example data, and ideally a test?



Thanks!</description> 
   <pubDate>Wed, 02 Jul 2008 15:30:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t47116</link> 
  </item> 
   
  <item> 
   <title>&gt; This just uses the same logic as previously. If there was </title> 
   <description>&gt; This just uses the same logic as previously. If there was a separate 

&gt; problem with that, can you please create a ticket with example data, 

&gt; and ideally a test?



Well, it was part of the problem description in the first comment of this bug.

I&#039;m still in favor of applying the complete patch and then just change the code to discard email addresses which don&#039;t validate.



A warning message about the invalid email address would be nice to have,

but is not a must.

</description> 
   <pubDate>Thu, 03 Jul 2008 07:15:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t47162</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/turba/data.php?r1=1.105&amp;r2=1.106&amp;ty=u</description> 
   <pubDate>Sun, 06 Jul 2008 03:31:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6897#t47245</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
