Commiting my example/test sieve scripts so I can maintain them with cvs
(I use them at work and home).
Showing
26 changed files
with
253 additions
and
0 deletions
sieve/examples/INBOX.orig
0 → 100644
1 | From coyote@desert.example.org Sun May 6 22:16:47 2001 | ||
2 | From: coyote@desert.example.org | ||
3 | To: roadrunner@acme.example.com | ||
4 | Subject: I have a present for you | ||
5 | X-Caffeine: C8H10N4O2 | ||
6 | |||
7 | Look, I'm sorry about the whole anvil thing, and I really | ||
8 | didn't mean to try and drop it on you from the top of the | ||
9 | cliff. I want to try to make it up to you. I've got some | ||
10 | great birdseed over here at my place--top of the line | ||
11 | stuff--and if you come by, I'll have it all wrapped up | ||
12 | for you. I'm really sorry for all the problems I've caused | ||
13 | for you over the years, but I know we can work this out. | ||
14 | |||
15 | -- | ||
16 | Wile E. Coyote "Super Genius" coyote@desert.example.org | ||
17 | |||
18 | From b1ff@de.res.example.com Sun May 6 22:17:15 2001 | ||
19 | From: youcouldberich!@reply-by-postal-mail.invalid | ||
20 | To: rube@landru.example.edu | ||
21 | Subject: $$$ YOU, TOO, CAN BE A MILLIONAIRE! $$$ | ||
22 | Date: TBD | ||
23 | |||
24 | YOU MAY HAVE ALREADY WON TEN MILLION DOLLARS, BUT I DOUBT | ||
25 | IT! SO JUST POST THIS TO SIX HUNDRED NEWSGROUPS! IT WILL | ||
26 | GUARANTEE THAT YOU GET AT LEAST FIVE RESPONSES WITH MONEY! | ||
27 | MONEY! MONEY! COLD HARD CASH! YOU WILL RECEIVE OVER | ||
28 | $20,000 IN LESS THAN TWO MONTHS! AND IT'S LEGAL!!!!!!!!! | ||
29 | !!!!!!!!!!!!!!!!!!111111111!!!!!!!11111111111!!1 JUST | ||
30 | SEND $5 IN SMALL, UNMARKED BILLS TO THE ADDRESSES BELOW! | ||
31 | |||
32 |
sieve/examples/Makefile
0 → 100644
sieve/examples/box.sv
0 → 100644
1 | stop; |
sieve/examples/ex-2.3a.sv
0 → 100644
sieve/examples/ex-2.5.1.sv
0 → 100644
sieve/examples/ex-2.7.3.sv
0 → 100644
sieve/examples/ex-3.1a.sv
0 → 100644
sieve/examples/ex-3.1b.sv
0 → 100644
sieve/examples/ex-3.2.sv
0 → 100644
sieve/examples/ex-4.1.sv
0 → 100644
sieve/examples/ex-4.2.sv
0 → 100644
sieve/examples/ex-4.4a.sv
0 → 100644
sieve/examples/ex-4.4b.sv
0 → 100644
sieve/examples/ex-4.5.sv
0 → 100644
sieve/examples/ex-5.1.sv
0 → 100644
sieve/examples/ex-5.7.sv
0 → 100644
sieve/examples/ex-9.sv
0 → 100644
1 | # | ||
2 | # Example Sieve Filter | ||
3 | # Declare any optional features or extension used by the script | ||
4 | # | ||
5 | require ["fileinto", "reject"]; | ||
6 | |||
7 | # | ||
8 | # Reject any large messages (note that the four leading dots get | ||
9 | # "stuffed" to three) | ||
10 | # | ||
11 | if size :over 1M | ||
12 | { | ||
13 | reject text: | ||
14 | Please do not send me large attachments. | ||
15 | Put your file on a server and send me the URL. | ||
16 | Thank you. | ||
17 | .... Fred | ||
18 | . | ||
19 | ; | ||
20 | stop; | ||
21 | } | ||
22 | # | ||
23 | # Handle messages from known mailing lists | ||
24 | # Move messages from IETF filter discussion list to filter folder | ||
25 | # | ||
26 | if header :is "Sender" "owner-ietf-mta-filters@imc.org" | ||
27 | { | ||
28 | fileinto "filter"; # move to "filter" folder | ||
29 | } | ||
30 | # | ||
31 | # Keep all messages to or from people in my company | ||
32 | # | ||
33 | elsif address :domain :is ["From", "To"] "example.com" | ||
34 | { | ||
35 | keep; # keep in "In" folder | ||
36 | } | ||
37 | |||
38 | # | ||
39 | # Try and catch unsolicited email. If a message is not to me, | ||
40 | # or it contains a subject known to be spam, file it away. | ||
41 | # | ||
42 | elsif anyof ( | ||
43 | not address :all :contains | ||
44 | ["To", "Cc", "Bcc"] "me@example.com", | ||
45 | header :matches | ||
46 | "subject" ["*make*money*fast*", "*university*dipl*mas*"] | ||
47 | ) | ||
48 | { | ||
49 | # If message header does not contain my address, | ||
50 | # it's from a list. | ||
51 | fileinto "spam"; # move to "spam" folder | ||
52 | } | ||
53 | else | ||
54 | { | ||
55 | # Move all other (non-company) mail to "personal" | ||
56 | # folder. | ||
57 | fileinto "personal"; | ||
58 | } | ||
59 |
sieve/examples/ex-null.sv
0 → 100644
sieve/examples/example.sv
0 → 100644
sieve/examples/exn-2.3b.sv
0 → 100644
sieve/examples/exn-5.4.sv
0 → 100644
sieve/examples/t-exists.sv
0 → 100644
sieve/examples/t-fileinto.sv
0 → 100644
-
Please register or sign in to post a comment