public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/conf/dovecot/global_sieve_after
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
# global_sieve_after script
2
# global_sieve_before -> user sieve_before (mailcow UI) -> user sieve_after (mailcow UI) -> global_sieve_after
4
require "fileinto";
5
require "mailbox";
6
require "variables";
7
require "subaddress";
8
require "envelope";
9
require "duplicate";
11
if header :contains "X-Spam-Flag" "YES" {
12
fileinto "Junk";
13
}
15
if allof (
16
envelope :detail :matches "to" "*",
17
header :contains "X-Moo-Tag" "YES"
18
) {
19
set :lower :upperfirst "tag" "${1}";
20
if mailboxexists "INBOX/${1}" {
21
fileinto "INBOX/${1}";
22
} else {
23
fileinto :create "INBOX/${tag}";
24
}
25
}
27
if duplicate {
28
discard;
29
stop;
30
}