mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
13 lines
241 B
Plaintext
13 lines
241 B
Plaintext
|
require "fileinto";
|
||
|
require "mailbox";
|
||
|
require "variables";
|
||
|
require "subaddress";
|
||
|
require "envelope";
|
||
|
|
||
|
if header :contains "X-Spam-Flag" "YES" {
|
||
|
fileinto "Junk";
|
||
|
}
|
||
|
if envelope :detail :matches "to" "*" {
|
||
|
fileinto :create "INBOX/${1}";
|
||
|
}
|