Commit
+50 -1 +/-6 browse
1 | diff --git a/src/mta_sts/mod.rs b/src/mta_sts/mod.rs |
2 | index b090406..f02bcdc 100644 |
3 | --- a/src/mta_sts/mod.rs |
4 | +++ b/src/mta_sts/mod.rs |
5 | @@ -1,3 +1,13 @@ |
6 | + /* |
7 | + * Copyright (c) 2020-2022, Stalwart Labs Ltd. |
8 | + * |
9 | + * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
10 | + * https://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
11 | + * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your |
12 | + * option. This file may not be copied, modified, or distributed |
13 | + * except according to those terms. |
14 | + */ |
15 | + |
16 | pub mod parse; |
17 | |
18 | #[derive(Debug, PartialEq, Eq)] |
19 | diff --git a/src/mta_sts/parse.rs b/src/mta_sts/parse.rs |
20 | index be8ede3..d233328 100644 |
21 | --- a/src/mta_sts/parse.rs |
22 | +++ b/src/mta_sts/parse.rs |
23 | @@ -1,3 +1,13 @@ |
24 | + /* |
25 | + * Copyright (c) 2020-2022, Stalwart Labs Ltd. |
26 | + * |
27 | + * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
28 | + * https://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
29 | + * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your |
30 | + * option. This file may not be copied, modified, or distributed |
31 | + * except according to those terms. |
32 | + */ |
33 | + |
34 | use crate::common::parse::{TagParser, TxtRecordParser, V}; |
35 | |
36 | use super::{MtaSts, ReportUri, TlsRpt}; |
37 | diff --git a/src/report/arf/generate.rs b/src/report/arf/generate.rs |
38 | index 68fad46..bea1bed 100644 |
39 | --- a/src/report/arf/generate.rs |
40 | +++ b/src/report/arf/generate.rs |
41 | @@ -28,7 +28,6 @@ impl<'x> Feedback<'x> { |
42 | writer: impl io::Write, |
43 | ) -> io::Result<()> { |
44 | // Generate ARF |
45 | - |
46 | let arf = self.to_arf(); |
47 | |
48 | // Generate text/plain body |
49 | diff --git a/src/report/tlsrpt/generate.rs b/src/report/tlsrpt/generate.rs |
50 | index fc0163b..af8115c 100644 |
51 | --- a/src/report/tlsrpt/generate.rs |
52 | +++ b/src/report/tlsrpt/generate.rs |
53 | @@ -1,3 +1,13 @@ |
54 | + /* |
55 | + * Copyright (c) 2020-2022, Stalwart Labs Ltd. |
56 | + * |
57 | + * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
58 | + * https://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
59 | + * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your |
60 | + * option. This file may not be copied, modified, or distributed |
61 | + * except according to those terms. |
62 | + */ |
63 | + |
64 | use std::io; |
65 | |
66 | use flate2::{write::GzEncoder, Compression}; |
67 | diff --git a/src/report/tlsrpt/mod.rs b/src/report/tlsrpt/mod.rs |
68 | index a301d6e..12a7d7d 100644 |
69 | --- a/src/report/tlsrpt/mod.rs |
70 | +++ b/src/report/tlsrpt/mod.rs |
71 | @@ -1,3 +1,13 @@ |
72 | + /* |
73 | + * Copyright (c) 2020-2022, Stalwart Labs Ltd. |
74 | + * |
75 | + * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
76 | + * https://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
77 | + * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your |
78 | + * option. This file may not be copied, modified, or distributed |
79 | + * except according to those terms. |
80 | + */ |
81 | + |
82 | use std::net::IpAddr; |
83 | |
84 | use mail_parser::DateTime; |
85 | diff --git a/src/report/tlsrpt/parse.rs b/src/report/tlsrpt/parse.rs |
86 | index 8ed7cc0..82094b4 100644 |
87 | --- a/src/report/tlsrpt/parse.rs |
88 | +++ b/src/report/tlsrpt/parse.rs |
89 | @@ -1,3 +1,13 @@ |
90 | + /* |
91 | + * Copyright (c) 2020-2022, Stalwart Labs Ltd. |
92 | + * |
93 | + * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
94 | + * https://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
95 | + * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your |
96 | + * option. This file may not be copied, modified, or distributed |
97 | + * except according to those terms. |
98 | + */ |
99 | + |
100 | use std::io::{Cursor, Read}; |
101 | |
102 | use flate2::read::GzDecoder; |