Filter
The use of filters enables you to search for specific messages, or to group messages
in any way you need. BeInformed filters are based on the query mechanism build into
the BeOS File System. They are very similar to the tracker Find command,
though less comfortable to use (yet!).
You can query each message for some of its header contents. These contents are indexed
as following:
Name of index | Name of Header
|
NEWS:from | From
|
NEWS:subject | Subject
|
NEWS:newsgroup | Newsgroups
|
NEWS:date | Date
|
Additionally, you can retrieve indexed information supplied by BeInformed:
Name of index
| Description
|
NEWS:state
| State of the message:
- umarked: this is an unmarked, raw header
- marked: this is a marked, raw header
- unread: this is an unread message
- read: this is a read message
- readL: this message has been read and marked as locked
- queued: this message is queued for posting
Any sent message is deleted and will at least be retrieved by the next poll.
|
NEWS:poll
| With which poll was this message retrieved ?
This value is numerical and is increased by one on each connection. The continuous connection
is an exception to this, as it is handled as one connection.
|
Defining Filters
A simple example is the pre-defined filter Marked headers:
You can combine queries with operators &&(AND) and ||(OR).
It is also possible to use wildcards ("*") in the value designations.
Here are some examples:
- NEWS:newsgroup = "*alt.fan.u2*" && NEWS:state = "unread"
This filter selects all unread messages in the newsgroup alt.fan.u2.
- NEWS:subject = "*BeOS*" && NEWS:state != 'queued'
This selects all headers and articles with the string "BeOS" in the subject,
except for those you wrote yourself.
- NEWS:state = "readL" || NEWS:state = "read"
Selects all read articles, locked and unlocked.
- NEWS:state = "read*"
This filter gives the same result as the previous one. Note the use
of the "*" wildcard.
- NEWS:newsgroup = "*.be.*"
This filter selects the articles and headers of all newsgroups containing
".be." in their name.
Note: With a filter you just query messages already downloaded. No filter
will cause articles to be downloaded.
Back: Connect, Index, Next: Header Settings