Skip to content

Commit f9183b4

Browse files
committed
Bump to mail-parser 0.10.0
1 parent 14cb20c commit f9183b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+131
-330
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mail-auth"
33
description = "DKIM, ARC, SPF and DMARC library for Rust"
4-
version = "0.6.0"
4+
version = "0.6.1"
55
edition = "2021"
66
authors = [ "Stalwart Labs <[email protected]>"]
77
license = "Apache-2.0 OR MIT"
File renamed without changes.
File renamed without changes.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,5 +261,4 @@ at your option.
261261

262262
## Copyright
263263

264-
Copyright (C) 2020-2023, Stalwart Labs Ltd.
265-
264+
Copyright (C) 2020, Stalwart Labs LLC

examples/arc_seal.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::{

examples/arc_verify.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::{AuthenticatedMessage, DkimResult, MessageAuthenticator};

examples/dkim_sign.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::{

examples/dkim_verify.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::{AuthenticatedMessage, DkimResult, MessageAuthenticator};

examples/dmarc_verify.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::{

examples/report_arf_generate.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::report::{AuthFailureType, Feedback, FeedbackType, IdentityAlignment};

examples/report_arf_parse.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::report::Feedback;

examples/report_dmarc_generate.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::report::{

examples/report_dmarc_parse.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::report::Report;

examples/spf_verify.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_auth::{spf::verify::SpfParameters, MessageAuthenticator, SpfResult};

fuzz/fuzz_targets/mail_auth.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
#![no_main]

src/arc/builder.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use crate::{

src/arc/headers.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use crate::{

src/arc/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
pub mod builder;

src/arc/parse.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_parser::decoders::base64::base64_decode_stream;

src/arc/seal.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use std::time::SystemTime;

src/arc/verify.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use std::{

src/common/auth_results.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use std::{

src/common/base32.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use std::slice::Iter;

src/common/cache.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use std::{

src/common/crypto/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
5+
*/
6+
17
#[cfg(feature = "sha1")]
28
use sha1::{digest::Output, Digest};
39

src/common/crypto/ring_impls.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
5+
*/
6+
17
use std::marker::PhantomData;
28

39
use ring::digest::{Context, SHA1_FOR_LEGACY_USE_ONLY, SHA256};

src/common/crypto/rust_crypto.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
5+
*/
6+
17
use std::array::TryFromSliceError;
28
use std::marker::PhantomData;
39

src/common/headers.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use std::{

src/common/message.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use mail_parser::{parsers::MessageStream, Address, HeaderName, HeaderValue, Message};

src/common/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use crate::{Error, IprevResult};

src/common/parse.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use std::{borrow::Cow, slice::Iter};

src/common/resolver.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/*
2-
* Copyright (c) 2020-2023, Stalwart Labs Ltd.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
33
*
4-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7-
* option. This file may not be copied, modified, or distributed
8-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
95
*/
106

117
use std::{

0 commit comments

Comments
 (0)