Re: [sieve] Script Runtime errors via X-Headers

Stephan Bosch <stephan@rename-it.nl> Fri, 12 October 2012 21:37 UTC

Return-Path: <stephan@rename-it.nl>
X-Original-To: sieve@ietfa.amsl.com
Delivered-To: sieve@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB33621F8748 for <sieve@ietfa.amsl.com>; Fri, 12 Oct 2012 14:37:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.324
X-Spam-Level:
X-Spam-Status: No, score=-0.324 tagged_above=-999 required=5 tests=[AWL=0.180, BAYES_00=-2.599, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OoRaJ6NXiJVK for <sieve@ietfa.amsl.com>; Fri, 12 Oct 2012 14:37:15 -0700 (PDT)
Received: from drpepper.rename-it.nl (drpepper.rename-it.nl [217.119.238.16]) by ietfa.amsl.com (Postfix) with ESMTP id 46D9121F8746 for <sieve@ietf.org>; Fri, 12 Oct 2012 14:37:11 -0700 (PDT)
Received: from klara.student.utwente.nl ([130.89.162.218]:60609 helo=[10.168.3.2]) by drpepper.rename-it.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <stephan@rename-it.nl>) id 1TMmuo-0008AP-Tz; Fri, 12 Oct 2012 23:37:09 +0200
Message-ID: <50788D55.3070609@rename-it.nl>
Date: Fri, 12 Oct 2012 23:36:21 +0200
From: Stephan Bosch <stephan@rename-it.nl>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
MIME-Version: 1.0
To: Thomas Schmid <schmid-thomas@gmx.net>
References: <5078823E.8030403@gmx.net>
In-Reply-To: <5078823E.8030403@gmx.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-RenameIT-MailScanner-SpamScore: -2.3 (--)
X-RenameIT-MailScanner-SpamCheck: No, score=-2.3 required=5.0 tests=ALL_TRUSTED, BAYES_00 autolearn=ham version=3.3.1
Cc: sieve@ietf.org
Subject: Re: [sieve] Script Runtime errors via X-Headers
X-BeenThere: sieve@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Fri, 12 Oct 2012 21:37:16 -0000

Hi Thomas,

On 10/12/2012 10:49 PM, Thomas Schmid wrote:
> recently I stumbled upon a server, which returns run time errors of a 
> sieve script as an X-Header. I did not find any documentation 
> regarding this behavior, so I think it non standard. Never the less 
> it's quite handy. Especially if you move, rename or misspell an imap 
> folder.
>
> Such an error X-Header looks like this:
> X-Nemesis-Sieve: missing mailbox "\example"
>
> Is there a chance to standardize this within the Sieve RFCs? It makes 
> debugging script for inexperienced users with no access to the server 
> logs way easier.
>
> Especially since Paragraph "2.10.6. Errors" of "rfc5228" requires 
> implementation to represent script errors to the user but does not 
> offer any suggestions how to do that.
[...]
> What are your thought on that?

Actually, we had a discussion about this a few years ago:

https://www.ietf.org/mail-archive/web/sieve/current/msg04799.html

Regards,

Stephan.