From f43c4a6c57e62f782c663b6e7b7f5dfdf7eadf7d Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Wed, 8 Dec 2004 13:44:24 +0000 Subject: [PATCH] Added the forgotten filter. And a small test file that hangs --- test/mbox/email2.flt | 15 +++++++++++++++ test/mbox/vm | 3 +++ test/mbox/vm2 | 12 ------------ 3 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 test/mbox/email2.flt create mode 100644 test/mbox/vm 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 -- 1.7.10.4