1 |
On 05/11/2015 03:35 PM, Kristian Fiskerstrand wrote: |
2 |
> |
3 |
> Could it be an alternative to move the messages flagged as spam into |
4 |
> an own folder that isn't forwarded? at least that means it doesn't |
5 |
> impact operations for those using it locally and the mail is still |
6 |
> around, if a webmail interface or something was used it could be |
7 |
> accessed through that for the forwarding users. |
8 |
> |
9 |
|
10 |
Yes, and depending on the sieve implementation, we can make sure the |
11 |
users (ourselves, in this case) don't override the rule and mess things up. |
12 |
|
13 |
The first thing to do would be to change the documentation: instead of |
14 |
using a ~/.forward file to forward your @g.o mail, you would use sieve: |
15 |
|
16 |
require ["copy"]; |
17 |
redirect :copy "wherever@×××××××.org"; |
18 |
|
19 |
Then the global sieve file (run first) could do, |
20 |
|
21 |
require "fileinto"; |
22 |
if header :contains "X-Spam-Flag" "YES" { |
23 |
fileinto "Junk"; |
24 |
stop; |
25 |
} |
26 |
|
27 |
which would stop processing, so that the "redirect" above never gets |
28 |
executed. |