Paweł Słowik
2012-09-04 92a030d928246cfc5f3c0b1f2538dc1bfb4777e3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require ["enotify","variables"];
if header :contains "from" "boss@example.org"
{
    notify :importance "1" :message "This is probably very important" "mailto:alm@example.com";
    stop;
}
if header :matches "Subject" "*"
{
    set "subject" "${1}";
}
if header :matches "From" "*"
{
    set "from" "${1}";
}
notify :importance "3" :message "${from}: ${subject}" "mailto:alm@example.com";