Commit 798076c2 798076c2529e6d1f15917483b72ff6829acb7406 by Sergey Poznyakoff

Testcase for "multiple patterns" bug.

1 parent bffaaa0b
1 # -*- sieve -*-
2 # This file is part of Mailutils testsuite.
3 # Copyright (C) 2002, Free Software Foundation.
4 # See file COPYING for distribution conditions.
5
6 require "fileinto";
7
8 if address :localpart :is ["To", "Cc"] [ "foo", "oof" ]
9 {
10 discard;
11 }
1 # -*- tcl -*-
2 # This file is part of Mailutils testsuite.
3 # Copyright (C) 2002, Free Software Foundation
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software Foundation,
17 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 sieve_test -f $MU_SPOOL_DIR/relational.mbox mul-addr.sv -pattern \
20 "DISCARD on msg uid 1: marking as deleted"\
21 "DISCARD on msg uid 2: marking as deleted"\
22 "DISCARD on msg uid 3: marking as deleted"\
23 "DISCARD on msg uid 4: marking as deleted"\
24 "DISCARD on msg uid 5: marking as deleted"\
25 "DISCARD on msg uid 6: marking as deleted"\
26 "DISCARD on msg uid 7: marking as deleted"\
27 "IMPLICIT KEEP on msg uid 8"\
28 "DISCARD on msg uid 9: marking as deleted"
29
30 # End of mul-addr.exp