failed-2-ref.siv 423 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1 2 3 4 5 6 7 8 9 10 11
require "body";
require "fileinto";
require "imap4flags";

#SCRIPTNAME: Script part 0
## Flag: |UniqueId:2|Rulename: Mail delivery failed "bae.vo.pb+ma@gmail.com"
if allof (header :contains "From" "mailer-daemon@foo.de"
, header :matches "Subject" "Mail delivery failed: returning message to sender"
, size :under 10000
, body :text :contains "<blo@dd.com>"
)
Laurent Montel's avatar
Laurent Montel committed
12
{
Laurent Montel's avatar
Laurent Montel committed
13 14 15 16
    fileinto "folder";
    addflag [ "\\seen" ];
    stop;
}