Filters (tests)
Syntax |
Description |
Example |
Note |
---|---|---|---|
@username |
Selects messages sent by a particular user |
@dpp |
|
any |
Selects all messages regardless of their characteristics |
any |
|
/regex/ |
Selects messages if body matches a regular expression |
/exception/ |
|
"string" |
Selects messages if body contains the case insensitive string |
"sales order" |
|
#tag |
Selects the messages contains the tag. |
#project gumbo |
Note the tag could be in the message as a hash code or created by the user directly as a tag |
to = @username |
Selects the messages that were sent to a particular user |
to = @dpp |
|
to = (@username1, @username2) |
Selects the messages that were sent to multiple users. |
to = (@dpp, @m) |
List should be comma separated |
to <> @username |
Selects the messages that were not sent to a particular user |
to <> @dpp |
|
not(exp) |
Selects the messages in which the expression evaluates to false |
not("sales order" ) |
|
exp1 | exp2 |
Selects the messages in which either expression is true |
"sales order" | "profit" |
|
exp1 & exp2 |
Selects the messages in which both expressions are true |
"sales order" & "profit" |
|
number% |
Returns messages based on the percentage. |
44% |
For example, the 45% will be true 45% of the time. |
Hooks (messages generated on system events)
login |
Selects the messages generated on user login. |
|
follow |
Selects the messages generated when a user follows you. |
|
unfollow |
Selects the messages generated when a user unfollows you. |
|
profile |
Selects the messages generated when your profile is changed. |
|
every number mins |
Generates messages at regular intervals and selects them. |
The message is not saved- too noisy, plus two identical tests never refer to the same event |
Actions (performances)
filter |
Filter the message out and don't put it in your mailbox |
filter |
|
resend |
Resend the message to all your followers irregardless of their characteristics |
resend |
It will only be put in your followers timeline if it is not already there. |
mailto: email |
Send the body of the message to the email recipient |
mailto:wille.coyote@acme.com |
|
http:// server |
Does an HTTP(S) POST of the message on a server with certain headers set |
http://user:password@twitter.com/statuses/update.xml![]() |
Enter HTTP POST data on a new line, e.g. status=%s |
atom: url:// |
Posts the new entries from Atom feed |
atom: http://twitter.com/statuses/friends_timeline.atom![]() |
|
rss: url:// |
Posts the new entries from RSS feed |
rss:// http://blog.esme.us/feed/rss![]() |
|
Examples
TODO