On May 18 2008, Mark Crispin wrote:
On Sun, 18 May 2008, [EMAIL PROTECTED] wrote:
Current issue: mail_sort works as expected, consistently, with one
exception. Any search program (spg) passed to it seems to be completely
ignored. I've tried many different approaches for the last 48 hours and
nothing has worked, so I'm curious if there are known issues with this.
I sympathize with your frustration. Nonetheless, the searching capability
of mail_sort() works. The problem is either in your program or possibly
in your IMAP server.
Follow-on question: When mail_sort or mail_thread is called with a search
program that may narrow the number of messages, is there a way to tell "at
a glance" from the returns of those calls how many messages met the search
criteria?
From what I can tell it seems to be down to the app to walk the results and
make a count. Currently (naming the unsigned long * return of mail_sort
"sort_result" for this example), I'm using this:
for (i = 0; sort_result[i] > 0; i++)
as for all messages that did not match the search_pgm, there is a zero
entry at the end of the sorted array. Is this bad and wrong, or is there a
better way to do this?
-Brian
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw