[imp] Error viewing a message in search results
Igor Stroh
stroh@scan-plus.de
14 Aug 2002 19:52:21 +0200
---------------------- multipart/signed attachment
Hi there,
I checked out the latest cvs HEAD today to see if an error I encountered
with my altered version of IMP is fixed in CVS, it seems it's not, so
I'm asking the list :))
The error occurs when I search for '@' in the from field of all folders
(just to get as many results as possible). After Search::runSearch() is
completed, $imp['msgl'] contains duplicate indices, I don't know if it's
intended, if so then _setarrayIndex may (and will) return a wrong
array_index for the message, 'cos its retrieved using array_search()...
In my case $imp['msgl'] looked something like '15:1:5:3:3:3:2:7:1' (I
guess due to the fact that I copied some messages from one folder to
another and vice versa), $this->index was '3', so=20
array_search(3, $sorted) returned 3 as array_index which was wrong 'cos
the corresponding folder in $sorted didn't fit (in my case it was
INBOX.Drafts instead of INBOX.Sent), that again causes
Message::isValidIndex() (not directly though) to return FALSE ...
One thing I didn't tell is the fact that those folders are not real
maildirfolders (i.e. they do not contain the file 'maildirfolder' as
required by courier's maildirmake or php's imap_create). Maybe that's
the reason why there are duplicate message UIDs...
Any hints are greatly appreciated :)
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/b6cfeccf/attachment.bin
---------------------- multipart/signed attachment--