Re: Spotlight MDQuerySetSearchScope() bug? followup
Re: Spotlight MDQuerySetSearchScope() bug? followup
- Subject: Re: Spotlight MDQuerySetSearchScope() bug? followup
- From: Kaelin Colclasure <email@hidden>
- Date: Fri, 23 Dec 2005 10:55:33 -0800
On Dec 22, 2005, at 11:44 PM, Aurélien Hugelé wrote:
Hi list!,
I've found something strange with MDQuerySetSearchScope() function,
and the bug apply to NSMEtadataQuery too.
if i pass a "too large" array, the limitation is not understood
properly :
Please file a radar: <
http://bugreport.apple.com/>.
-- Kaelin
I want to observe some Mail mailbox to be informed of a new/deleted
email (emlx file) : so i use a MDQuery with queryString: [NSString
stringWithFormat:@"kMDItemContentType == 'com.apple.mail.emlx' &&
kMDItemFSCreationDate > %.0f",(double)[thresholdDate
timeIntervalSinceReferenceDate]] // thresholdDate determines a
minimum date.
And my scopedDirectories array contains those folder pathes :
<CFArray 0x3a0970 [0xa073a150]>{type = mutable-small, count = 11,
values = (
0 : <CFString 0x3a12b0 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/POP-
email@hidden@pop.online.net/INBOX.mbox"}
1 : <CFString 0x3a1b50 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/POP-
email@hidden@pop.online.net/Sent Messages.mbox"}
2 : <CFString 0x3a2b50 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/email@hiddentive-
decision.com/INBOX.mbox"}
3 : <CFString 0x3a3200 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/email@hiddentive-
decision.com/Sent Messages.mbox"}
4 : <CFString 0x3a40c0 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/POP-postmaster@email@hidden/
INBOX.mbox"}
5 : <CFString 0x3a4760 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/POP-postmaster@email@hidden/Sent
Messages.mbox"}
6 : <CFString 0x3a5700 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/email@hidden/INBOX.mbox"}
7 : <CFString 0x3a5d00 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/email@hidden/Sent
Messages.mbox"}
8 : <CFString 0x3a6320 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/email@hidden/Junk.mbox"}
9 : <CFString 0x3a71f0 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/email@hidden@ssl0.ovh.net/
INBOX.mbox"}
10 : <CFString 0x3a7870 [0xa073a150]>{contents = "/Volumes/Data/
Users/aure/Library/Mail/email@hidden@ssl0.ovh.net/
Sent Messages.mbox"}
)}
The query returns some valid valid results during the gathering
phase, but the live update phase is not working at all!! i'm not
informed of new files in those directories during the live update ...
replacing the array with [NSArray arrayWithObject:[NSString
stringWithFormat:"%@/Library/Mail",NSHomeDirectory()], i'm
perfectly informed of the new/deleted emlx files...
is there a known bug in MDQuerySetSearchScope() when passing many
directories ??
thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden