Aleksander Machniak
2014-04-24 e9651852654933b2c35fe5122609de17b9cb9e8c
commit | author | age
ed837a 1 require ["envelope","notify","variables"];
3c9959 2 # rule:[from]
b2c586 3 if envelope :matches "from" "*"
92a030 4 {
PS 5     set "env_from" " [really: ${1}]";
6 }
3c9959 7 # rule:[subject]
92a030 8 if header :matches "Subject" "*"
PS 9 {
10     set "subject" "${1}";
11 }
3c9959 12 # rule:[from notify]
b2c586 13 if address :matches "from" "*"
92a030 14 {
PS 15     set "from_addr" "${1}";
e96518 16     notify :method "sms" :options "1234567890" :message "${from_addr}${env_from}: ${subject}";
92a030 17 }