update Sat Sep 12 12:37:01 PDT 2009
[pkgsrc.git] / wip / crm114 / patches / patch-ba
1 $NetBSD$
2
3 --- mailreaver.crm.orig 2007-04-22 00:37:28.000000000 -0600
4 +++ mailreaver.crm
5 @@ -384,21 +384,21 @@ isolate (:cacheid:) //
6      match [:spam:] /SET/
7      {
8         isolate (:tmp:) //
9 -       syscall () (:tmp:) /\/bin\/ls :*:long_cacheid:/
10 +       syscall () (:tmp:) /\/bin\/ls :*:fileprefix::*:long_cacheid:/
11         match [:tmp:] /:*:cacheid:/
12         #
13         #      remember this file on a permanent basis by linking it into
14         #      the known-spam directory.
15 -       syscall /:*:cache_dupe_command: :*:text_cache:\/texts\/:*:cacheid: :*:text_cache:\/known_spam\/:*:cacheid: /
16 +       syscall /:*:cache_dupe_command: :*:fileprefix::*:text_cache:\/texts\/:*:cacheid: :*:fileprefix::*:text_cache:\/known_spam\/:*:cacheid: /
17         #
18         #      Now run mailtrainer.crm on the new copy
19         isolate (:mailtrainer_output:)
20 -       syscall /:*:fileprefix::*:trainer_invoke_command: --fileprefix=:*:fileprefix: --spam=:*:text_cache:\/known_spam\/:*:cacheid: --good=:*:text_cache:\/empty\/ / () (:mailtrainer_output:)
21 +       syscall /:*:trainer_invoke_command: --fileprefix=:*:fileprefix: --spam=:*:fileprefix::*:text_cache:\/known_spam\/:*:cacheid: --good=:*:fileprefix::*:text_cache:\/empty\/ / () (:mailtrainer_output:)
22         #output /mailtrainer output:  ':*:mailtrainer_output:'\n/
23         #      and remove it from the prob_* directories, as
24         #      now it's known
25 -       syscall /\/bin\/rm -rf  :*:text_cache:\/prob_spam\/:*:cacheid:/
26 -       syscall /\/bin\/rm -rf  :*:text_cache:\/prob_good\/:*:cacheid:/
27 +       syscall /\/bin\/rm -rf :*:fileprefix::*:text_cache:\/prob_spam\/:*:cacheid:/
28 +       syscall /\/bin\/rm -rf :*:fileprefix::*:text_cache:\/prob_good\/:*:cacheid:/
29         #
30         #      now it's trained; put in a marker in the headers
31         call /:mungmail_delete:/ [X-CRM114-Status: ]
32 @@ -436,21 +436,21 @@ isolate (:cacheid:) //
33      match [:good:] /SET/
34      {
35         isolate (:tmp:) //
36 -       syscall () (:tmp:) /\/bin\/ls :*:long_cacheid:/
37 +       syscall () (:tmp:) /\/bin\/ls :*:fileprefix::*:long_cacheid:/
38         match [:tmp:] /:*:cacheid:/
39         #
40         #      remember this file on a permanent basis by linking it into
41         #      the known-good directory.
42 -       syscall /:*:cache_dupe_command: :*:text_cache:\/texts\/:*:cacheid: :*:text_cache:\/known_good\/:*:cacheid: /
43 +       syscall /:*:cache_dupe_command: :*:fileprefix::*:text_cache:\/texts\/:*:cacheid: :*:fileprefix::*:text_cache:\/known_good\/:*:cacheid: /
44         #
45         #      Now run mailtrainer.crm on the new copy
46         isolate (:mailtrainer_output:)
47 -       syscall /:*:fileprefix::*:trainer_invoke_command: --fileprefix=:*:fileprefix: --good=:*:text_cache:\/known_good\/:*:cacheid: --spam=:*:text_cache:\/empty\/ / () (:mailtrainer_output:)
48 +       syscall /:*:trainer_invoke_command: --fileprefix=:*:fileprefix: --good=:*:fileprefix::*:text_cache:\/known_good\/:*:cacheid: --spam=:*:fileprefix::*:text_cache:\/empty\/ / () (:mailtrainer_output:)
49         #output /mailtrainer output:  ':*:mailtrainer_output:'\n/
50         #      and remove it from the prob_* directories, as
51         #      now it's known
52 -       syscall /\/bin\/rm -rf  :*:text_cache:\/prob_spam\/:*:cacheid:/
53 -       syscall /\/bin\/rm -rf  :*:text_cache:\/prob_good\/:*:cacheid:/
54 +       syscall /\/bin\/rm -rf :*:fileprefix::*:text_cache:\/prob_spam\/:*:cacheid:/
55 +       syscall /\/bin\/rm -rf :*:fileprefix::*:text_cache:\/prob_good\/:*:cacheid:/
56         #
57         #      now it's trained; put in a marker in the headers
58         call /:mungmail_delete:/ [X-CRM114-Status: ]
59 @@ -582,7 +582,7 @@ input (:priolist:) [:*:fileprefix:prioli
60      {
61         match [:text_cache:] /./
62         match [:cacheid:] /./
63 -       syscall /:*:cache_dupe_command: :*:text_cache:\/texts\/:*:cacheid: :*:text_cache:\/prob_spam\/:*:cacheid: /
64 +       syscall /:*:cache_dupe_command: :*:fileprefix::*:text_cache:\/texts\/:*:cacheid: :*:fileprefix::*:text_cache:\/prob_spam\/:*:cacheid: /
65      }
66  
67      #     flag the subject line
68 @@ -619,7 +619,7 @@ goto /:finish_up:/
69      {
70         match [:text_cache:] /./
71         match [:cacheid:] /./
72 -       syscall /:*:cache_dupe_command: :*:text_cache:\/texts\/:*:cacheid: :*:text_cache:\/prob_good\/:*:cacheid: /
73 +       syscall /:*:cache_dupe_command: :*:fileprefix::*:text_cache:\/texts\/:*:cacheid: :*:fileprefix::*:text_cache:\/prob_good\/:*:cacheid: /
74      }
75  
76