Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Sieve-Example:Notify: Difference between revisions

Content deleted Content added
AA-Andrew (talk | contribs)
mNo edit summary
AA-Andrew (talk | contribs)
mNo edit summary
Line 2: Line 2:


[[File:Sieve-roundcube-notify.png|Roundcube screenshot]]
[[File:Sieve-roundcube-notify.png|Roundcube screenshot]]

If you can edit the sieve filter manually, then you can


<syntaxhighlight>
<syntaxhighlight>
# rule:[notify]
# rule:[notify]
if header :matches "subject" "*"
if header :matches "Subject" "*"
{
{
set "subject" "${1}";
set "subject" "${1}";
notify :importance "2" :message "[Notification] ${subject}" "mailto:someone@example.com";
}
}

if header :matches "From" "*"
{
set "from" "${1}";
}
notify :importance "2" :message "[Notification] ${from}: ${subject}" "mailto:andrew@aa.net.uk";

</syntaxhighlight>
</syntaxhighlight>