Trying to filter mails through a Sieve function.
I would like to fetch an e-mail address indicated inside the body of the message, and not in the header. This address is (like the one in the header) after a From:
field. After that, a copy of the email should be sent to this address. Messages filtered must also have Returned mail
inside their subject.
This is my code, but not working...
require ["body","copy","variables"];
if header :contains "Subject" "Returned mail"
{
if body :content "text" :matches "From: *"
{
redirect :copy "${1}";
}
}
Can you please help me to fix that code ? Thank's !!