[imp] Error viewing a message in search results

Igor Stroh stroh@scan-plus.de
15 Aug 2002 11:54:57 +0200


---------------------- multipart/signed attachment
I think I solved the issue:

imp/lib/Message.php
function function _setArrayIndex():

...
} elseif ($imp['mailbox'] =3D=3D SEARCH_MBOX) {
	// compare both, mbox name and message UID
	// to get the correct arrayIndex
	$f =3D explode(':', $imp['msgl']);
	while(list($key, $val) =3D each($f)){
        	$s =3D explode('|', $val);
        	if($s[1] =3D=3D $imp['thismailbox'] &&=20
			$s[0] =3D=3D $this->_index){
                	$this->_arrayIndex =3D $key;
                        break;
                }
        }
...        =20

I tested it on several different mboxes and it worked, don't know if I
missed something though...

greetings,
Igor

---------------------- multipart/signed attachment
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.horde.org/archives/imp/attachments/20020815/e4738f10/attachment.bin

---------------------- multipart/signed attachment--