Network Working Group                                           N. Freed
Request for Comments: 5463                              Sun Microsystems
Category: Standards Track                                     March 2009
        
                Sieve Email Filtering:  Ihave Extension
        

Status of This Memo

このメモのステータス

This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the "Internet Official Protocol Standards" (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited.

この文書は、インターネットコミュニティのためのインターネット標準トラックプロトコルを指定し、改善のための議論と提案を要求します。このプロトコルの標準化状態と状態への「インターネット公式プロトコル標準」(STD 1)の最新版を参照してください。このメモの配布は無制限です。

Copyright Notice

著作権表示

Copyright (c) 2009 IETF Trust and the persons identified as the document authors. All rights reserved.

著作権(C)2009 IETF信託とドキュメントの作成者として特定の人物。全著作権所有。

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents in effect on the date of publication of this document (http://trustee.ietf.org/license-info). Please review these documents carefully, as they describe your rights and restrictions with respect to this document.

この文書では、BCP 78と、この文書(http://trustee.ietf.org/license-info)の発行日に有効なIETFドキュメントに関連IETFトラストの法律の規定に従うものとします。彼らは、この文書に関してあなたの権利と制限を説明するように、慎重にこれらの文書を確認してください。

Abstract

抽象

This document describes the "ihave" extension to the Sieve email filtering language. The "ihave" extension provides a means to write scripts that can take advantage of optional Sieve features but can still run when those optional features are not available. The extension also defines a new error control command intended to be used to report situations where no combination of available extensions satisfies the needs of the script.

この文書では、Sieveメールフィルタリング言語に「IHAVE」拡張子を記述しています。 「IHAVE」拡張子は、オプションのふるい機能を利用することができますが、これらのオプション機能が利用できない場合、まだ実行できるスクリプトを記述するための手段を提供します。拡張も可能な拡張子のない組み合わせは、スクリプトのニーズを満たしていない状況を報告するために使用されることを意図し、新たな誤り制御コマンドを定義します。

1. Introduction
1. はじめに

Sieve [RFC5228] is a language for filtering email messages at or around the time of final delivery. It is designed to be implementable on either a mail client or mail server. It is suitable for running on a mail server where users may not be allowed to execute arbitrary programs, such as on black-box Internet Message Access Protocol [RFC3501] servers, as it has no user-controlled loops or the ability to run external programs.

ふるい[RFC5228]は、最終的な配達の時や周りの電子メールメッセージをフィルタリングするための言語です。メールクライアントまたはメールサーバーのいずれかで実施可能となるように設計されています。それは、ユーザ制御ループまたは外部プログラムを実行する機能を持っていないように、それは、ユーザーがそのようなブラックボックスインターネットメッセージアクセスプロトコル[RFC3501]のサーバ上などの任意のプログラムを実行することは許されないことがあり、メールサーバー上で実行されているに適しています。

Various sieve extensions have already been defined, e.g., [RFC5229], [RFC5230], [RFC5231], [RFC5232], [RFC5233], [RFC5235], and many more are sure to be created over time. Sieve's require clause is used to specify the extensions a particular sieve needs; an error results if the script's require clause calls for an extension that isn't available. This mechanism is sufficient in most situations. However, there can be cases where a script may be able to take advantage of an extension if it is available but can still operate if it is not, possibly with some degradation of functionality. Cases can also arise where a script would prefer one extension but can employ a different one if the first one is not available.

様々なふるいの拡張がすでに定義されている、例えば、[RFC5229]、[RFC5230]、[RFC5231]、[RFC5232]、[RFC5233]、[RFC5235]、および多くの時間をかけて作成されるのは確実です。拡張機能に特定のふるいのニーズを指定するために使用された句を必要とふるい。エラー結果スクリプトの必要句は使用できません拡張のために呼び出す場合。このメカニズムは、ほとんどの状況で十分です。しかし、それが利用可能であるが、それはおそらくいくつかの機能低下と、ない場合には、まだ動作させることができれば、スクリプトは拡張子を利用することができるかもしれ例があることができます。スクリプトは1つの拡張子を好むだろうが、最初のものは使用できない場合は、別のものを採用することができる場所の場合にも発生する可能性があります。

The "ihave" extension provides a means to write scripts that make use of extensions only when they are actually available. It defines a new "ihave" test that takes a list of capability names as an argument and succeeds if and only if all of those capabilities are present. Additionally, specification of the "ihave" extension in the require clause disables parse-time checking of extension use in scripts; run-time checking must be used instead. This makes it possible to write portable scripts that can operate in multiple environments making effective use of whatever extensions are available even though differing sets of extensions are provided in different places.

「IHAVE」拡張子は、彼らが実際に利用可能な場合にのみ、拡張機能を利用するスクリプトを記述するための手段を提供します。これは、引数としての能力名のリストを受け取り、これらの機能のすべてが存在している場合にのみ成功する新しい「IHAVE」テストを定義します。また、必要句の拡張子「IHAVE」の仕様は、スクリプトで拡張使用の解析時にチェックを無効にします。実行時のチェックが代わりに使用する必要があります。これは、拡張子の異なるセットは、異なる場所で提供されていても利用できるものは何でもエクステンションを有効に活用して複数の環境で動作できるポータブルスクリプトを記述することが可能となります。

The "ihave" extension also defines a new error control command. An error causes script execution to terminate with the error message given as the argument to the error control.

「IHAVE」拡張子は、新しいエラー制御コマンドを定義します。エラーは、エラー制御への引数として与えられたエラーメッセージを表示して終了するスクリプトの実行を引き起こします。

2. Conventions Used in This Document
この文書で使用される2.表記

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].

この文書のキーワード "MUST"、 "MUST NOT"、 "REQUIRED"、、、、 "べきではない" "べきである" "ないもの" "ものとし"、 "推奨"、 "MAY"、および "OPTIONAL" はあります[RFC2119]に記載されているように解釈されます。

The terms used to describe the various components of the Sieve language are taken from Section 1.1 of [RFC5228].

ふるい言語の様々な構成要素を記述するために使用される用語は、[RFC5228]のセクション1.1から取られます。

3. Capability Identifiers
3.機能識別子

The capability string associated with the extension defined in this document is "ihave".

この文書で定義された拡張子に関連付けられた機能文字列は「IHAVE」です。

4. Ihave Test
4. IHAVEテスト

Usage: ihave <capabilities: string-list>

使用法:IHAVE <機能:文字列のリスト>

The "ihave" test provides a means for Sieve scripts to test for the existence of a given extension prior to actually using it. The capabilities argument to "ihave" is the same as the similarly-named argument to the require control statement: It specifies the names of one or more Sieve extensions or comparators. The "ihave" test succeeds if all the extensions specified in the capabilities list are available to the script.

「IHAVE」テストは、Sieveスクリプトは、以前は実際にそれを使用するために与えられた拡張子が存在するかどうかをテストするための手段を提供します。 「IHAVE」への機能の引数が必要と制御文と同様に、名前付き引数と同じです。これは、1つのまたは複数のふるいの拡張やコンパレータの名前を指定します。機能リストで指定されたすべての拡張機能は、スクリプトに利用可能な場合に「IHAVE」テストが成功します。

Unlike most Sieve tests, "ihave" accepts no match or comparator arguments. The type of match for "ihave" is always ":is" and the comparator is always "i;octet".

最もふるいテストとは異なり、「IHAVE」一致またはコンパレータ引数を受け付けません。 「IHAVE」の一致のタイプは常にある「:ある」とコンパレータは常に「I;オクテット」。

The strings in the capabilities list are constant strings in the context of Sieve variables [RFC5229]. It is an error to pass a non-constant string as an argument to "ihave".

機能のリスト内の文字列は、ふるい変数[RFC5229]の文脈で定数文字列です。 「IHAVE」の引数として非定数文字列を渡すとエラーになります。

The Sieve base specification demands that all Sieve extensions used in a given script be specified in the initial require control statement. It is an error for a script to call for extensions the interpreter doesn't support or to attempt to use extensions that have not been listed in the script's require clause. Using "ihave" changes Sieve interpreter behavior and the underlying requirements in the following ways:

指定したスクリプトで使用されるすべてのSieve拡張が初期に指定することがふるいのベース仕様の要求は、制御文を必要としています。これは、インタプリタがサポートしていないかの節を必要とするスクリプトに記載されていない拡張機能を使用しようとする拡張のために呼び出すスクリプトのエラーです。 「IHAVE」を使用すると、ふるいインタプリタの挙動と、次の方法で根本的な要件が変更されます。

1. Use of a given extension is allowed subsequent to the successful evaluation of an "ihave" test on that extension all the way to the end of the script, even outside the block enclosed by the "ihave" test. In other words, subsequent to a successful "ihave", things operate just as if the extension had been specified in the script's require clause. The extension cannot be used prior to the evaluation of such a test and a run-time error MUST be generated if such usage is attempted. However, subsequent use of that extension may still need to be conditionally handled via an "ihave" test to deal with the case where it is not supported.

所与の拡張の1.が偶数「IHAVE」試験で囲まれたブロックの外側に、スクリプトの最後までずっと、その延長上に試験「IHAVE」の成功の評価に続いて許可されます。成功した「IHAVE」の後に言い換えれば、物事は、拡張子は、スクリプトの必要句で指定されていたかのように動作します。拡張は、このような使用が試行された場合に生成されなければならない前に、このようなテスト及び実行時エラーの評価に使用することができません。しかし、その拡張のその後の使用は、依然として条件付きそれがサポートされていない場合に対処するために「IHAVE」テストを介して処理する必要があるかもしれません。

2. Sieve interpreters normally have the option of checking extension use at either parse time or execution time. The specification of "ihave" in a script's require clause changes this behavior: Scripts MUST either defer extension checking to run time or else take the presence of "ihave" tests into account at parse time. Note that since "ihave" can be used inside of "anyof", "allof", and "not" tests, full parse-time checking of "ihave" may be very difficult to implement.

2.ふるい通訳は通常、時間や実行時間を解析するのいずれかで延長使用をチェックするオプションがあります。スクリプトは、どちらかなければならない時間を実行したり、他の解析時に考慮に「IHAVE」テストの存在を取るようにチェック拡張子を延期:スクリプトの中に「IHAVE」の仕様は、節は、この動作を変更する必要があります。以来、「IHAVE」が「anyof」、「ALLOF」の内部で使用することができ、かつ実装するのは非常に困難であろう「IHAVE」のチェック「ではない」のテスト、フル解析時に注意してください。

3. Although it makes little sense to do so, an extension can be specified in both the require control statement and in an "ihave" test. If this is done and the extension has been implemented, the extension can be used anywhere in the script and an "ihave" test of that extension will always return true.

3.それはそうするほとんど意味がないが、拡張子は両方必要と制御文にと「IHAVE」テストで指定することができます。これが完了すると、拡張子が実装されている場合は、拡張子は、スクリプト内のどこにでも使用することができ、「IHAVE」という拡張子のテストでは、常にtrueを返します。

4. The "ihave" test accepts a list of capabilities. If any of the specified capabilities are unavailable, the test fails and none of the capabilities are enabled.

4.「IHAVE」テストは、機能のリストを受け付けます。指定された機能のいずれかが使用できない場合、テストは失敗し、能力のどれもが有効になっていません。

5. The Sieve base specification does not require that interpreters evaluate arguments in any particular order or that test evaluation be short-circuited. If "ihave" is enabled, the interpreter MUST short-circuit tests, i.e., not perform more tests than necessary to find the result. Additionally, evaluation order MUST be left to right if "ihave" is enabled.

前記ふるいのベース仕様は通訳が特定の順序で引数を評価するか、その試験評価が短絡であることを必要としません。 「IHAVE」が有効になっている場合、インタプリタは短絡試験をしなければならず、すなわち、結果を見つけるために、必要以上のテストを実行しません。 「IHAVE」有効になっている場合はさらに、評価順序は左から右になければなりません。

The "ihave" extension is designed to be used with other extensions that add tests, actions, comparators, or arguments. Implementations MUST NOT allow it to be used with extensions that change the underlying Sieve grammar, or extensions like encoded-character [RFC5228], or variables [RFC5229] that change how the content of Sieve scripts are interpreted. The test MUST fail and the extension MUST NOT be enabled if such usage is attempted.

「IHAVE」拡張子がテスト、アクション、コンパレータ、または引数を追加する他の拡張子で使用するように設計されています。実装は、それがSieveスクリプトの内容をどのように解釈するかを変更する基礎となるふるい文法を変更する拡張機能、またはエンコードされた文字[RFC5228]のような拡張機能、または変数[RFC5229]で使用されることを許してはなりません。テストが失敗しなければなりませんし、このような使用が試行された場合の拡張子は、有効にすることはできません。

5. Error Control
5.エラー制御

Usage: error <message: string>

使用方法:エラー<メッセージ:文字列>

The error control causes script execution to terminate with a run-time error. The message argument provides a text description of the error condition that SHOULD be included in any generated report regarding the error. Section 2.10.6 of [RFC5228] describes how run-time errors are handled in Sieve.

エラー制御は、実行時エラーで終了するようにスクリプトを実行させます。メッセージの引数には、エラーに関するいかなる生成されるレポートに含まれるべきでエラー状態のテキスト記述を提供します。 [RFC5228]のセクション2.10.6は、実行時にエラーがふるいに処理する方法について説明します。

Note that the message argument, like all Sieve strings, employs the UTF-8 charset and can contain non-US-ASCII characters. This must be taken into consideration when reporting script errors.

メッセージの引数は、すべてのふるいの文字列のように、UTF-8文字セットを採用し、非US-ASCII文字を含めることができることに注意してください。スクリプトエラーを報告する際にこれを考慮に入れなければなりません。

The error control is included as part of the "ihave" extension so that it is unconditionally available to scripts using ihave.

それはIHAVEを使用してスクリプトに無条件に利用可能であるようにエラー制御が「IHAVE」という拡張子の一部として含まれています。

6. Security Considerations
6.セキュリティの考慮事項

A potential security issue with Sieve scripts is that when a script fails to run due to the lack of some extension, it may fail to block dangerous email. The "ihave" extension makes it possible to improve script portability and generality, which may improve the overall security provided by Sieve.

Sieveスクリプトの潜在的なセキュリティ上の問題は、スクリプトは、いくつかの拡張機能の欠如が原因で実行に失敗した場合、それは危険なメールをブロックするために失敗するかもしれないということです。 「IHAVE」拡張子は、ふるいによって提供全体のセキュリティを向上させることがスクリプトの移植性と汎用性を、向上させることができます。

Script robustness aside, ihave is essentially a more flexible variant of Sieve's existing require mechanism. As such, it does not add any additional capabilities to a Sieve implementation that could create security issues. Of course, all of the security considerations given in the base Sieve specification and in any extensions that are employed are still relevant.

スクリプトの堅牢性はさておき、IHAVEは基本的にふるいの既存のメカニズムを必要とする、より柔軟な変形です。このように、それはセキュリティ上の問題を作成することができふるいの実装に任意の追加機能を追加しません。もちろん、ベースふるい仕様にして採用されているすべての拡張機能で特定のセキュリティ上の考慮事項のすべてはまだ関連しています。

7. IANA Considerations
7. IANAの考慮事項

The following template specifies the IANA registration of the Sieve extension specified in this document:

次のテンプレートは、この文書で指定されたSieve拡張のIANA登録を指定します。

To: iana@iana.org Subject: Registration of new Sieve extension

To:iana@iana.org件名:新しいふるい拡張の登録

Capability name: ihave Description: The "ihave" extension provides a means to write scripts that make use of other extensions only when they are actually available. RFC number: RFC 5463 Contact address: Sieve discussion list <ietf-mta-filters@imc.org>

能力名:説明IHAVE:「IHAVE」拡張子は、彼らが実際に利用可能な場合にのみ、他の拡張機能を利用するためのスクリプトを記述するための手段を提供します。 RFC番号:RFC 5463連絡先アドレス:ふるいディスカッションリスト<ietf-mta-filters@imc.org>

8. References
8.参照文献
8.1. Normative References
8.1. 引用規格

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.

[RFC2119]ブラドナーの、S.、 "要件レベルを示すためにRFCsにおける使用のためのキーワード"、BCP 14、RFC 2119、1997年3月。

[RFC5228] Guenther, P. and T. Showalter, "Sieve: An Email Filtering Language", RFC 5228, January 2008.

[RFC5228]ギュンター、P.およびT.ショーウォルター監督、 "ふるい:メールフィルタリング言語"、RFC 5228、2008年1月。

8.2. Informative References
8.2. 参考文献

[RFC3501] Crispin, M., "INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1", RFC 3501, March 2003.

[RFC3501]のCrispin、M.、 "インターネットメッセージアクセスプロトコル - VERSION 4rev1"、RFC 3501、2003年3月。

[RFC5229] Homme, K., "Sieve Email Filtering: Variables Extension", RFC 5229, January 2008.

[RFC5229]オム、K.、 "ふるいメールフィルタリング:変数の拡張"、RFC 5229、2008年1月。

[RFC5230] Showalter, T. and N. Freed, "Sieve Email Filtering: Vacation Extension", RFC 5230, January 2008.

[RFC5230]ショーウォルター監督、T.およびN.フリード、 "ふるいメールフィルタリング:休暇延長"、RFC 5230、2008年1月。

[RFC5231] Segmuller, W. and B. Leiba, "Sieve Email Filtering: Relational Extension", RFC 5231, January 2008.

[RFC5231] Segmuller、W.及びB. Leiba、 "ふるいメールフィルタリング:リレーショナル拡張"、RFC 5231、2008年1月。

[RFC5232] Melnikov, A., "Sieve Email Filtering: Imap4flags Extension", RFC 5232, January 2008.

[RFC5232]メルニコフ、A.、 "ふるいのメールフィルタリング:Imap4flags拡張"、RFC 5232、2008年1月。

[RFC5233] Murchison, K., "Sieve Email Filtering: Subaddress Extension", RFC 5233, January 2008.

[RFC5233]マーチソン、K.、 "ふるいメールフィルタリング:サブアドレス拡張"、RFC 5233、2008年1月。

[RFC5235] Daboo, C., "Sieve Email Filtering: Spamtest and Virustest Extensions", RFC 5235, January 2008.

[RFC5235] Daboo、C.、 "ふるいメールフィルタリング:はspamtestとVirustest拡張機能"、RFC 5235、2008年1月。

9. Acknowledgments
9.謝辞

Stephan Bosch, Cyrus Daboo, Arnt Gulbrandsen, Andrew McKeon, and Alexey Melnikov provided helpful suggestions and corrections.

ステファン・ボッシュ、サイラスDaboo、ARNT Gulbrandsenの、アンドリューマッキオン、とアレクセイ・メルニコフは有益な提案や修正を提供しました。

Author's Address

著者のアドレス

Ned Freed Sun Microsystems 800 Royal Oaks Monrovia, CA 91016-6347 USA

ネッドフリードSun Microsystemsの800ロイヤルオークスモンロビア、カリフォルニア州91016から6347 USA

Phone: +1 909 457 4293 EMail: ned.freed@mrochek.com

電話:+1 909 457 4293 Eメール:ned.freed@mrochek.com