Commit 95a3f648 95a3f6485e0b03bf14e32cc856c4b2d9b224aae0 by Sergey Poznyakoff

put fileinto files to the spooldir (%)

1 parent 35641de1
......@@ -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
......
......@@ -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
......