summaryrefslogtreecommitdiff
path: root/sieve
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-01-05 16:58:59 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-01-05 16:58:59 +0000
commiteaa293353e0edb9a5e79abee445fe11cf74172cc (patch)
treea8836edb5f072a2507f2f90b8e07fec327ebeb6b /sieve
parent4b01bc7f0ef106e2bc782a62db12c249e16c4785 (diff)
downloadmailutils-eaa293353e0edb9a5e79abee445fe11cf74172cc.tar.gz
mailutils-eaa293353e0edb9a5e79abee445fe11cf74172cc.tar.bz2
Added relational.exp: a testcase for relational operations in sieve
Diffstat (limited to 'sieve')
-rw-r--r--sieve/testsuite/sieve/DISTFILES1
-rw-r--r--sieve/testsuite/sieve/relational.exp42
2 files changed, 43 insertions, 0 deletions
diff --git a/sieve/testsuite/sieve/DISTFILES b/sieve/testsuite/sieve/DISTFILES
index 48af276df..c3d48e531 100644
--- a/sieve/testsuite/sieve/DISTFILES
+++ b/sieve/testsuite/sieve/DISTFILES
@@ -13,5 +13,6 @@ i-octet.exp
not.exp
redirect.exp
reject.exp
+relational.exp
size.exp
true.exp
diff --git a/sieve/testsuite/sieve/relational.exp b/sieve/testsuite/sieve/relational.exp
new file mode 100644
index 000000000..740fc5506
--- /dev/null
+++ b/sieve/testsuite/sieve/relational.exp
@@ -0,0 +1,42 @@
+# -*- tcl -*-
+# This file is part of Mailutils testsuite.
+# Copyright (C) 2002, Free Software Foundation
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+sieve_test -f $MU_SPOOL_DIR/relational.mbox rel-address.sv -pattern \
+"DISCARD on msg uid 1: marking as deleted"\
+"IMPLICIT KEEP on msg uid 2"\
+"IMPLICIT KEEP on msg uid 3"\
+"IMPLICIT KEEP on msg uid 4"\
+"IMPLICIT KEEP on msg uid 5"\
+"IMPLICIT KEEP on msg uid 6"\
+"IMPLICIT KEEP on msg uid 7"\
+"IMPLICIT KEEP on msg uid 8"\
+"DISCARD on msg uid 9: marking as deleted"
+
+sieve_test -f $MU_SPOOL_DIR/relational.mbox rel-hairy.sv -pattern \
+"FILEINTO on msg uid 1: delivering into From_A-M"\
+"FILEINTO on msg uid 2: delivering into From_N-Z"\
+"FILEINTO on msg uid 3: delivering into Priority"\
+"FILEINTO on msg uid 4: delivering into Priority"\
+"FILEINTO on msg uid 5: delivering into Priority"\
+"FILEINTO on msg uid 6: delivering into From_A-M"\
+"FILEINTO on msg uid 7: delivering into From_A-M"\
+"FILEINTO on msg uid 8: delivering into From_A-M"\
+"FILEINTO on msg uid 8: delivering into Only_me"\
+"FILEINTO on msg uid 9: delivering into SPAM"
+
+# End of relational.exp \ No newline at end of file

Return to:

Send suggestions and report system problems to the System administrator.