summaryrefslogtreecommitdiffabout
path: root/sieve
authorSergey Poznyakoff <gray@gnu.org.ua>2003-01-05 17:14:40 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2003-01-05 17:14:40 (GMT)
commit95a3f6485e0b03bf14e32cc856c4b2d9b224aae0 (patch) (side-by-side diff)
tree556dab5a0bcb1b51f5edc6426a9d9f3676889083 /sieve
parent35641de113fdf51ad6a107caa4a3bcdae3c51761 (diff)
downloadmailutils-95a3f6485e0b03bf14e32cc856c4b2d9b224aae0.tar.gz
mailutils-95a3f6485e0b03bf14e32cc856c4b2d9b224aae0.tar.bz2
put fileinto files to the spooldir (%)
Diffstat (limited to 'sieve') (more/less context) (ignore whitespace changes)
-rw-r--r--sieve/testsuite/scripts/rel-hairy.sv10
-rw-r--r--sieve/testsuite/sieve/relational.exp22
2 files changed, 16 insertions, 16 deletions
diff --git a/sieve/testsuite/scripts/rel-hairy.sv b/sieve/testsuite/scripts/rel-hairy.sv
index fbb95e6..a9c560d 100644
--- a/sieve/testsuite/scripts/rel-hairy.sv
+++ b/sieve/testsuite/scripts/rel-hairy.sv
@@ -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
diff --git a/sieve/testsuite/sieve/relational.exp b/sieve/testsuite/sieve/relational.exp
index 740fc55..da52005 100644
--- a/sieve/testsuite/sieve/relational.exp
+++ b/sieve/testsuite/sieve/relational.exp
@@ -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

Return to:

Send suggestions and report system problems to the System administrator.