summaryrefslogtreecommitdiff
path: root/plugins/managesieve/tests/src/parser_notify_a
blob: 324805ad4206c845a94e4d05af9629c0fb828368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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";