Re: [sieve] problem with sieve syntax

NED+mta-filters@mauve.mrochek.com Mon, 15 February 2016 14:39 UTC

Return-Path: <NED+mta-filters@mauve.mrochek.com>
X-Original-To: sieve@ietfa.amsl.com
Delivered-To: sieve@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 45C461B34A0 for <sieve@ietfa.amsl.com>; Mon, 15 Feb 2016 06:39:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.765
X-Spam-Level: **
X-Spam-Status: No, score=2.765 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DEAR_SOMETHING=1.973, RP_MATCHES_RCVD=-0.006, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LigTvK6IZmtR for <sieve@ietfa.amsl.com>; Mon, 15 Feb 2016 06:39:33 -0800 (PST)
Received: from mauve.mrochek.com (mauve.mrochek.com [68.183.62.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E6BB11B3495 for <sieve@ietf.org>; Mon, 15 Feb 2016 06:39:32 -0800 (PST)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01PWPCU0131C002AMD@mauve.mrochek.com> for sieve@ietf.org; Mon, 15 Feb 2016 06:34:33 -0800 (PST)
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: TEXT/PLAIN; CHARSET=us-ascii; Format=flowed
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01PWLL3KZ0CW00008P@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Mon, 15 Feb 2016 06:34:24 -0800 (PST)
From: NED+mta-filters@mauve.mrochek.com
Message-id: <01PWPCTYAI2600008P@mauve.mrochek.com>
Date: Mon, 15 Feb 2016 06:25:01 -0800 (PST)
In-reply-to: "Your message dated Mon, 15 Feb 2016 13:28:09 +0100" <56C1C459.3070007@inwx.de>
References: <56C1C459.3070007@inwx.de>
To: InterNetworX | Pascal Heverhagen <ph@inwx.de>
Archived-At: <http://mailarchive.ietf.org/arch/msg/sieve/QwzM-zkf7q-Sq3if3Eoysdkqrck>
Cc: sieve@ietf.org
Subject: Re: [sieve] problem with sieve syntax
X-BeenThere: sieve@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIEVE Working Group <sieve.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sieve>, <mailto:sieve-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sieve/>
List-Post: <mailto:sieve@ietf.org>
List-Help: <mailto:sieve-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sieve>, <mailto:sieve-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Feb 2016 14:39:34 -0000

> Dear sirs,

> I have trouble while setting up some sieve roules via roundcube plugin
> ("managesieve"). When set up an autoresponder with 2 automatically-sent
> messages I won't receive any automatic e-mails anymore. When I remove
> one of these, it works fine again.

> Heres my syntax:

> # rule:[max@mustermann.de]
> if allof (address :contains "to" "max@mustermann.de")
> {
> 	vacation :days 1 :addresses "max@mustermann.de" :subject "Re: ${1}" text:
> This is my automated mail number one
> .
> ;
> 	vacation :addresses "max@mustermann.de" :subject "Re: ${1}" text:
> This is my automated mail number two
> .
> ;
> }

> Can you tell me whats the problem?

It's not really the purpose of this list to provide assistance in debugging
sieve problems, but FWIW, I see two problems here:

(1) No require statement for the vacation extension:
 
    require "vacation";

(2) You're clearly trying to perform a variable substition, but there's
    no code to do that and no require statement for the variables extension
    either.

Now, both of these may be due to your not having provided the entire
script. If that's the case, and you have the necessary require commands
as well as some sort of preceeding :matches operation, then I don't
see any sieve problem here.

				Ned