Sieve-Example:Notify

From AAISP Support Site
Revision as of 14:29, 19 September 2016 by AA-Andrew (talk | contribs)

Send a notification email to another mailbox when the mailbox gets an email:

Sieve-roundcube-notify.png

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

This sets a variable of the subject, and then sends an email to another mailbox using the subject line.