FilterDriver


Object Hierarchy:

Object hierarchy for FilterDriver

Description:

[ CCode ( type_id = "camel_filter_driver_get_type ()" ) ]
public class FilterDriver : Object

Rule-based message filtering engine.

FilterDriver manages the filtering process. Given a set of filter rules — each consisting of a matching s-expression and an action s-expression — and a set of messages, it evaluates each rule against each message in turn.

Filter rules use two s-expressions evaluated by SExp:

  • The **match expression** returns a boolean indicating whether the message matches. See CamelFolderSearch for the supported matching functions.
  • The **action expression** is typically a `(begin ...)` block listing the actions to perform. Available actions include:
  • `(delete)` — mark for deletion
  • `(copy-to uri …)` / `(move-to uri …)` — copy or move to a folder
  • `(set-system-flag flag)` / `(unset-system-flag flag)` — set/clear flags
  • `(stop)` — halt further rule processing
  • `(pipe-message cmd)` — pipe the message through an external command
  • `(shell cmd …)` — run a shell command
  • `(beep)` / `(play-sound file)` — notify the user

Namespace: Camel
Package: camel-1.2

Content:

Creation methods:

Methods:

Inherited Members: