[turba] Problem with contact groups

Serge Grondin SGrondin at csbf.qc.ca
Wed May 21 08:28:06 PDT 2003


Myke Place a écrit :
> 
> The reason that I bring it up is that on our installation it causes IMP to
> display the following error messages (though you are correct, it does send
> the message):
> 
> Notice: Undefined property: host in /var/www/horde/imp/lib/IMP.php on line
> 641
> 
> Notice: Undefined property: mailbox in /var/www/horde/imp/lib/IMP.php on
> line 641
> 
> Notice: Undefined property: host in /var/www/horde/imp/lib/IMP.php on line
> 641
> 
> Warning: Cannot add header information - headers already sent by (output
> started at /var/www/horde/imp/lib/IMP.php:641) in
> /var/www/horde/imp/compose.php on line 911
> 
> Any ideas?
> 

I have the same Notice in my php log and I have the latest RELENG
version of the apps:

Horde: 2.2.4-cvs 
IMP: 3.2.2-cvs (run IMP tests) 
Turba: 1.2.1-cvs 
Kronolith: 1.1.1-cvs 
Nag: 1.2-cvs 
Passwd: 2.2.1-cvs 

I found a way to silence these Notice with the following patch.  I think
it is the right way to correct this.

Patch begin here

# cvs diff -u IMP.php
Index: IMP.php
===================================================================
RCS file: /repository/imp/lib/IMP.php,v
retrieving revision 1.198.2.54
diff -u -r1.198.2.54 IMP.php
--- IMP.php     15 May 2003 22:41:39 -0000      1.198.2.54
+++ IMP.php     16 May 2003 17:46:21 -0000
@@ -631,7 +631,9 @@

         $from = imap_rfc822_parse_adrlist($address,
$_SESSION['imp']['maildomain']);
         foreach ($from as $entry) {
-            $addressList[] = $entry->mailbox . '@' . $entry->host;
+            if (array_key_exists("mailbox", $entry) &&
array_key_exists("host", $entry)) {
+                $addressList[] = $entry->mailbox . '@' . $entry->host;
+            }
         }

         if ($multiple) {

Patch end here

Thanks,

--
Serge Grondin
Technicien en Informatique
Commission Scolaire des Bois-Francs
Tel. bur.:   (819) 758-6453, poste 2920
e-Mail bur.: SGrondin at csbf.qc.ca


More information about the turba mailing list