Skip to content

Commit 5f25e12

Browse files
committed
REUSE licensing
1 parent 8b2ad20 commit 5f25e12

Some content is hidden

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

41 files changed

+84
-289
lines changed

examples/custom_parser.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use mail_parser::{HeaderName, MessageParser};

examples/mailbox_iterate_maildir.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use std::path::PathBuf;

examples/mailbox_parse_mbox.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use mail_parser::{mailbox::mbox::MessageIterator, MessageParser};

examples/message_parse.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use mail_parser::*;

examples/message_write_attachments.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use mail_parser::*;

src/core/address.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use crate::{Addr, Address, Group};

src/core/body.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use crate::{AttachmentIterator, BodyPartIterator, Message, MessagePart, MessagePartId, PartType};

src/core/builder.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use crate::{HeaderName, HeaderValue, MessageParser};

src/core/header.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use core::fmt;

src/core/message.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use std::{borrow::Cow, convert::TryInto};

src/core/mod.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
pub mod address;

src/decoders/base64.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use std::borrow::Cow;

src/decoders/charsets/map.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use super::{

src/decoders/charsets/mod.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
pub mod map;

src/decoders/charsets/multi_byte.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
#[cfg(feature = "full_encoding")]

src/decoders/charsets/single_byte.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
fn single_byte_decoder(table: &[char], bytes: &[u8]) -> String {

src/decoders/charsets/utf.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use std::char::{decode_utf16, REPLACEMENT_CHARACTER};

src/decoders/encoded_word.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use crate::{decoders::charsets::map::charset_decoder, parsers::MessageStream};

src/decoders/hex.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use super::quoted_printable::HEX_MAP;

src/decoders/html.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use std::char::REPLACEMENT_CHARACTER;

src/decoders/mod.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use std::borrow::Cow;

src/decoders/quoted_printable.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use std::borrow::Cow;

src/lib.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116
#![doc = include_str!("../README.md")]
127
#![deny(rust_2018_idioms)]

src/mailbox/maildir.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use std::{

src/mailbox/mbox.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use crate::DateTime;

src/parsers/fields/address.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
/*
2-
* Copyright Stalwart Labs Ltd. See the COPYING
3-
* file at the top-level directory of this distribution.
2+
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
43
*
5-
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8-
* option. This file may not be copied, modified, or distributed
9-
* except according to those terms.
4+
* SPDX-License-Identifier: Apache-2.0 OR MIT
105
*/
116

127
use std::borrow::Cow;

0 commit comments

Comments
 (0)