Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
95a3f648
...
95a3f6485e0b03bf14e32cc856c4b2d9b224aae0
authored
2003-01-05 17:14:40 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
put fileinto files to the spooldir (%)
1 parent
35641de1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
sieve/testsuite/scripts/rel-hairy.sv
sieve/testsuite/sieve/relational.exp
sieve/testsuite/scripts/rel-hairy.sv
View file @
95a3f64
...
...
@@ -7,21 +7,21 @@ require ["relational", "comparator-i;ascii-numeric", "fileinto"];
if
header
:
value
"lt"
:
comparator
"i;ascii-numeric"
[
"x-priority"
]
[
"3"
]
{
fileinto
"Priority"
;
fileinto
"
%
Priority"
;
}
elsif
address
:
count
"gt"
:
comparator
"i;ascii-numeric"
[
"to"
]
[
"5"
]
{
#
everything
with
more
than
5
recipients
in
the
"to"
field
#
is
considered
SPAM
fileinto
"SPAM"
;
fileinto
"
%
SPAM"
;
}
elsif
address
:
value
"gt"
:
all
:
comparator
"i;ascii-casemap"
[
"from"
]
[
"M"
]
{
fileinto
"From_N-Z"
;
fileinto
"
%
From_N-Z"
;
}
else
{
fileinto
"From_A-M"
;
fileinto
"
%
From_A-M"
;
}
if
allof
(
address
:
count
"eq"
:
comparator
"i;ascii-numeric"
...
...
@@ -29,7 +29,7 @@ if allof (address :count "eq" :comparator "i;ascii-numeric"
address
:
all
:
comparator
"i;ascii-casemap"
[
"to"
,
"cc"
]
[
"me@foo.example.com.invalid"
])
{
fileinto
"Only_me"
;
fileinto
"
%
Only_me"
;
}
#
End
of
rel
-
hairy
.
sv
...
...
sieve/testsuite/sieve/relational.exp
View file @
95a3f64
...
...
@@ -28,15 +28,15 @@ sieve_test -f $MU_SPOOL_DIR/relational.mbox rel-address.sv -pattern \
"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"
"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
# End of relational.exp
...
...
Please
register
or
sign in
to post a comment