From: Heikki Levanto Date: Wed, 8 Dec 2004 13:44:24 +0000 (+0000) Subject: Added the forgotten filter. And a small test file that hangs X-Git-Tag: snippet.version.1~228 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=f43c4a6c57e62f782c663b6e7b7f5dfdf7eadf7d Added the forgotten filter. And a small test file that hangs --- diff --git a/test/mbox/email2.flt b/test/mbox/email2.flt new file mode 100644 index 0000000..db2cacf --- /dev/null +++ b/test/mbox/email2.flt @@ -0,0 +1,15 @@ +BEGIN /.*$/ { begin record email; begin context headers } + +/^From .*$/ { unread 0; end element; end record } + +CONTEXT {headers} + +/^[A-Z][^:]*/ /: / { end element; begin element $0 } + +/\n\n/ { end context; end element; begin element body } + +/\n/ {} +/^\t/ { data " " } +/^ / { data " " } + +END { end record } diff --git a/test/mbox/vm b/test/mbox/vm new file mode 100644 index 0000000..03765f4 --- /dev/null +++ b/test/mbox/vm @@ -0,0 +1,3 @@ + +Li + diff --git a/test/mbox/vm2 b/test/mbox/vm2 index 949a692..3137465 100644 --- a/test/mbox/vm2 +++ b/test/mbox/vm2 @@ -1,14 +1,2 @@ -# VMware software license - All data changed to protect everybody -Fields = "Cpt, Name, LicenseType, LicenseClass, Count, LicenseKey, ProductID, ProductType" -StartFields = "Cpt, Name, LicenseType, LicenseClass, Field2" -Field2 = "Count, LicenseKey, ProductID, ProductType" -Cpt = "COPYRIGHT (c) VMware, Inc. 1999" -Name = "Index Data 1 of 1" LicenseType = "User" LicenseClass = "Commercial" -Count = "1 of 1" -LicenseKey = "xxxxxx.xxxxx.xx.x" -ProductID = "VMware for Linux" -ProductType = "x.x" - -Hash = 3xxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx