Commit cdef50a8 cdef50a8dc1148039314b0005305b079b0059125 by Sergey Poznyakoff

Require redirect.

1 parent 5b410a0a
1 require [ "redirect" ];
2
1 if header :contains ["From"] ["coyote"] { 3 if header :contains ["From"] ["coyote"] {
2 redirect "acm@example.edu"; 4 redirect "acm@example.edu";
3 } elsif header :contains "Subject" "$$$" { 5 } elsif header :contains "Subject" "$$$" {
......
1 # Example sieve script. 1 # Example sieve script.
2 2
3 require "fileinto"; 3 require [ "fileinto", "redirect" ];
4 4
5 if size :over 20 { 5 if size :over 20 {
6 fileinto "/home/sam/p/gnu/mailutils/cmu-sieve/sv/inbox"; 6 fileinto "/home/sam/p/gnu/mailutils/cmu-sieve/sv/inbox";
......
...@@ -17,14 +17,14 @@ ...@@ -17,14 +17,14 @@
17 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 sieve_test stop.sv -pattern\ 19 sieve_test stop.sv -pattern\
20 "KEEP on msg uid 1"\ 20 "STOP on msg uid 1"\
21 "KEEP on msg uid 2"\ 21 "STOP on msg uid 2"\
22 "KEEP on msg uid 3" 22 "STOP on msg uid 3"
23 23
24 sieve_test null.sv -pattern\ 24 sieve_test null.sv -pattern\
25 "KEEP on msg uid 1"\ 25 "IMPLICIT KEEP on msg uid 1"\
26 "KEEP on msg uid 2"\ 26 "IMPLICIT KEEP on msg uid 2"\
27 "KEEP on msg uid 3" 27 "IMPLICIT KEEP on msg uid 3"
28 28
29 sieve_test keep.sv -pattern\ 29 sieve_test keep.sv -pattern\
30 "KEEP on msg uid 1"\ 30 "KEEP on msg uid 1"\
......