-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrspamd.go
40 lines (36 loc) · 1.45 KB
/
rspamd.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package main
type Milter struct {
AddHeaders map[string]MilterAddHeader `json:"add_headers"`
AddRecipients []string `json:"add_recipients"`
ChangeFrom string `json:"change_from"`
NoAction bool `json:"no_action"`
Reject string `json:"reject"`
RemoveHeaders map[string]int8 `json:"remove_headers"`
SpamHeader string `json:"spam_header"`
}
type MilterAddHeader struct {
Order string `json:"order"`
Value string `json:"value"`
}
type Symbol struct {
Description string `json:"description"`
MetricScore float32 `json:"metric_score"`
Name string `json:"name"`
Options []string `json:"options"`
Score float32 `json:"score"`
}
type RspamdResult struct {
Action string `json:"action"`
DKIMSignature string `json:"dkim-signature"`
Emails []string `json:"emails"`
MessageId string `json:"message-id"`
Messages map[string]string `json:"messages"`
Milter Milter `json:"milter"`
RequiredScore float32 `json:"required_score"`
Score float32 `json:"score"`
Skipped bool `json:"is_skipped"`
Subject string `json:"subject"`
Symbols map[string]Symbol `json:"symbols"`
TimeReal float32 `json:"time_real"`
URLs []string `json:"urls"`
}