Sieve-Example:Notify: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
Send a notification email to another mailbox when the mailbox gets an email: |
Send a notification email to another mailbox when the mailbox gets an email: |
||
[[File:Sieve-roundcube-notify.png]] |
[[File:Sieve-roundcube-notify.png|Roundcube screenshot]] |
||
<syntaxhighlight |
<syntaxhighlight> |
||
# rule:[notify] |
# rule:[notify] |
||
if header :matches "subject" "*" |
if header :matches "subject" "*" |
Revision as of 14:32, 19 September 2016
Send a notification email to another mailbox when the mailbox gets an email:
# 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.