This might get you pointed in the right direction:
require "include";
require "fileinto";
require "body";
require "imap4flags";
require "regex";

if header :contains "subject" ["delayed mail", "undelivered mail", "returned to 
sender"] {
  addflag "$label1";
  stop;
}

if body :regex "rejected:[[:space:]]+unverified[[:space:]]+address" {
  fileinto "AASystemAdministration.Postmaster.Unverified";
  stop;
}

if body :regex 
"rejected:[[:space:]]+(domain|host)[[:space:]]+not[[:space:]]+found" {
  fileinto "AASystemAdministration.Postmaster.NXDOMAIN";
  stop;
}


Bill


On 2/19/2018 1:14 PM, IT wrote:

Hello,

Im newbie at sieve. I have a nice script running on my boxes,

and I have the following question:

Using Sieve,

is there a RULE to find out if String "MYTESTSTRING"

is ANYWHERE inside the Email, or ANYWHERE inside the HEADER at least --

in order to trigger actions like "discard;" consequently ?



Thank you so much in advance

best Regards

Florian




--

Mit freundlichen Grüßen / best regards

Florian Bojack

[email protected] <mailto:[email protected]>



logoEitner

U.Eitner

Formenbau, Erodier-& Kunststofftechnik GmbH

Benzstraße 7

D-64807 Dieburg


Geschäftsführer Ulrich und Lars Eitner

Tel: +49 (0) 6071 23262

Fax: +49 (0) 6071 5562

Web: [email protected]

Der Inhalt dieser Email und etwaiger Anhänge ist vertraulich und ausschließlich 
für den bezeichneten Adressaten bestimmt.

Jede unbefugte Kenntnisnahme, Veröffentlichung,Vervielfältigung oder Weitergabe 
ist unzulässig.

Sollten Sie nicht der vorgesehene Empfänger sein, bitten wir Sie, sich mit uns in Verbindung zu setzen und die Email zu löschen sowie alle Kopien zu vernichten.

This e-mail is intended solely for the addressee and may contain confidential 
and/or privileged information.

If you are not the intended recipient, please notify the sender immediately and 
destroy this e-mail.

In this case any form of reproduction, disclosure, distribution or any action taken or refrained from in reliance on it, is strictly prohibited.


  • Re: Sieve Stephan Bosch
    • Re: Sieve Bill Shirley

Reply via email to