Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4636 closed bug (invalid)

Custom attributes not working in filesystem queries

Reported by: Knutsi Owned by: axeld
Priority: normal Milestone: R1
Component: File Systems/BFS Version: R1/alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: x86

Description

I am trying to add a custom attribute called "Follow-up/followup" to files of type E-mail. I've added it as a boolean value in Preferences->FileTypes, and I can edit it for emails in Tracker and set them to "true" for a selection of emails.

However, when I create a filesystem query to find them, the emails are not found.

Queries tested:

((followup==1)&&(BEOS:TYPE=="text/x-email"))
(followup==true)
(followup==*)

The same appears to be true also for custom attributes of other types, such as this example:

((test=="*[fF][iI][nN][dD][mM][eE]*")&&(BEOS:TYPE=="text/x-email"))

where "test" is an attribute of type string.

System details

OS version: Alpha 1 on virtual box Hardware: Intel PC History: Installed to a new partition inside virtual box after some use to free up more space.

Attachments (1)

Query problem.png (212.7 KB ) - added by Knutsi 10 years ago.
Screenshot demonstration the problem

Download all attachments as: .zip

Change History (3)

by Knutsi, 10 years ago

Attachment: Query problem.png added

Screenshot demonstration the problem

comment:1 by axeld, 10 years ago

Resolution: invalid
Status: newclosed

You must first create an index (using the mkindex command line tool) to have the queries work - there is currently other way to do this, unfortunately (but this will be changed in the future).

The freshly created index won't contain the already existing files with that attribute, though. You can use the "reindex" tool to change that, though.

HTH.

comment:2 by humdinger, 10 years ago

Have a look at the workshop in the user guide: http://www.haiku-os.org/docs/userguide/en/workshop-filetypes+attributes.html

Also, depending on what you'd like to do with your custom attribute, you may find Mail's menu "File | Close and | Set to..." to do already what you want.

Note: See TracTickets for help on using tickets.