-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcluegetter.proto
107 lines (90 loc) · 2.73 KB
/
cluegetter.proto
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// ClueGetter - Does things with mail
//
// Copyright 2016 Dolf Schimmel, Freeaqingme.
//
// This Source Code Form is subject to the terms of the two-clause BSD license.
// For its contents, please refer to the LICENSE file.
//
syntax = "proto3";
package main;
message Proto_Message {
Proto_Session session = 1;
string id = 2;
string from = 3;
repeated string rcpt = 4;
repeated Header headers = 5;
bytes body = 6;
Verdict verdict = 7;
string verdictMsg = 8;
double rejectScore = 9;
double rejectScoreThreshold = 10;
double tempfailScore = 11;
double tempfailScoreThreshold = 12;
repeated CheckResult checkResults = 13;
message CheckResult {
string message_id = 1;
string module = 2;
Verdict verdict = 3;
double score = 4;
double weightedScore = 5;
double duration = 6;
bytes determinants = 7;
}
message Header {
string key = 1;
string value = 2;
}
enum Verdict {
PERMIT = 0;
TEMPFAIL = 1;
REJECT = 2;
ERROR = 3;
DISCARD = 4;
}
}
message Proto_Session {
uint64 instanceId = 1;
bytes id = 2;
uint64 timeStart = 3;
uint64 timeEnd = 4;
string saslUsername = 5;
string saslSender = 6;
string saslMethod = 7;
string certIssuer = 8;
string certSubject = 9;
uint32 cipherBits = 10;
string cipher = 11;
string tlsVersion = 12;
string ip = 13;
string reverseDns = 14;
string hostname = 15;
string helo = 16;
string mtaHostName = 17;
string mtaDaemonName = 18;
}
message Rpc {
// For all intents and purposes this field should be
// considered required. But we may change that in a
// far away feature, and we like to be forward
// compatible with our proto buffers.
string name = 1;
// extensions 256 to 1023; // User extensions
// extensions 1024 to 2047; // Built-in extensions
// extensions 10000 to 19000; // Community extensions
_Bayes_Learn_Message Bayes_Learn_Message = 1024;
message _Bayes_Learn_Message {
bool is_spam = 1;
Proto_Message message = 2;
string host = 17;
string reporter = 18;
string reason = 19;
}
_Bayes_Learn_Message_Id Bayes_Learn_Message_Id = 1025;
message _Bayes_Learn_Message_Id {
bool is_spam = 1;
string message_id = 2;
string host = 17;
string reporter = 18;
string reason = 19;
}
}