1
require ["enotify", "fileinto", "variables", "envelope"];
3
if header :matches "from" "*@*.example.org" {
4
# :matches is used to get the MAIL FROM address
5
if envelope :all :matches "from" "*" {
6
set "env_from" " [really: ${1}]";
9
# :matches is used to get the value of the Subject header
10
if header :matches "Subject" "*" {
14
# :matches is used to get the address from the From header
15
if address :matches :all "from" "*" {
16
set "from_addr" "${1}";
19
notify :message "${from_addr}${env_from}: ${subject}"
20
"mailto:alm@example.com";