From 50a2f50e581e9d95b8b21453c91116e2d4d7f2ac Mon Sep 17 00:00:00 2001 From: mdecimus Date: Tue, 25 Jun 2024 19:57:25 +0200 Subject: [PATCH] REUSE-compliant licensing --- .github/ISSUE_TEMPLATE/bug_report.yml | 5 +- .github/ISSUE_TEMPLATE/config.yml | 3 + Cargo.lock | 8 + Cargo.toml | 1 + LICENSE | 661 ------------------ LICENSES/AGPL-3.0-only.txt | 235 +++++++ LICENSES/LicenseRef-SEL.txt | 63 ++ README.md | 16 +- crates/cli/src/main.rs | 23 +- crates/cli/src/modules/account.rs | 23 +- crates/cli/src/modules/cli.rs | 23 +- crates/cli/src/modules/database.rs | 23 +- crates/cli/src/modules/domain.rs | 23 +- crates/cli/src/modules/export.rs | 23 +- crates/cli/src/modules/group.rs | 23 +- crates/cli/src/modules/import.rs | 23 +- crates/cli/src/modules/list.rs | 23 +- crates/cli/src/modules/mod.rs | 23 +- crates/cli/src/modules/queue.rs | 23 +- crates/cli/src/modules/report.rs | 23 +- crates/common/src/addresses.rs | 23 +- crates/common/src/config/imap.rs | 23 +- crates/common/src/config/jmap/capabilities.rs | 6 + crates/common/src/config/jmap/mod.rs | 6 + crates/common/src/config/jmap/settings.rs | 6 + crates/common/src/config/mod.rs | 23 +- crates/common/src/config/network.rs | 23 +- crates/common/src/config/scripts.rs | 23 +- crates/common/src/config/server/listener.rs | 23 +- crates/common/src/config/server/mod.rs | 6 + crates/common/src/config/server/tls.rs | 23 +- crates/common/src/config/smtp/auth.rs | 6 + crates/common/src/config/smtp/mod.rs | 6 + crates/common/src/config/smtp/queue.rs | 6 + crates/common/src/config/smtp/report.rs | 6 + crates/common/src/config/smtp/resolver.rs | 6 + crates/common/src/config/smtp/session.rs | 6 + crates/common/src/config/smtp/throttle.rs | 23 +- crates/common/src/config/storage.rs | 23 +- crates/common/src/config/tracers.rs | 23 +- crates/common/src/expr/eval.rs | 23 +- crates/common/src/expr/functions/array.rs | 23 +- crates/common/src/expr/functions/email.rs | 23 +- crates/common/src/expr/functions/misc.rs | 23 +- crates/common/src/expr/functions/mod.rs | 23 +- crates/common/src/expr/functions/text.rs | 23 +- crates/common/src/expr/if_block.rs | 23 +- crates/common/src/expr/mod.rs | 23 +- crates/common/src/expr/parser.rs | 23 +- crates/common/src/expr/tokenizer.rs | 23 +- crates/common/src/lib.rs | 25 +- crates/common/src/listener/acme/cache.rs | 23 +- crates/common/src/listener/acme/mod.rs | 23 +- crates/common/src/listener/acme/resolver.rs | 23 +- crates/common/src/listener/blocked.rs | 23 +- crates/common/src/listener/limiter.rs | 23 +- crates/common/src/listener/listen.rs | 23 +- crates/common/src/listener/mod.rs | 23 +- crates/common/src/listener/stream.rs | 23 +- crates/common/src/listener/tls.rs | 23 +- crates/common/src/manager/backup.rs | 23 +- crates/common/src/manager/boot.rs | 23 +- crates/common/src/manager/config.rs | 23 +- crates/common/src/manager/mod.rs | 23 +- crates/common/src/manager/reload.rs | 23 +- crates/common/src/manager/restore.rs | 23 +- crates/common/src/manager/webadmin.rs | 23 +- crates/common/src/scripts/functions/array.rs | 23 +- crates/common/src/scripts/functions/email.rs | 23 +- crates/common/src/scripts/functions/header.rs | 23 +- crates/common/src/scripts/functions/html.rs | 23 +- crates/common/src/scripts/functions/image.rs | 23 +- crates/common/src/scripts/functions/misc.rs | 23 +- crates/common/src/scripts/functions/mod.rs | 23 +- crates/common/src/scripts/functions/text.rs | 23 +- .../common/src/scripts/functions/unicode.rs | 23 +- crates/common/src/scripts/functions/url.rs | 23 +- crates/common/src/scripts/mod.rs | 6 + crates/common/src/scripts/plugins/bayes.rs | 23 +- crates/common/src/scripts/plugins/dns.rs | 23 +- crates/common/src/scripts/plugins/exec.rs | 23 +- crates/common/src/scripts/plugins/headers.rs | 23 +- crates/common/src/scripts/plugins/http.rs | 23 +- crates/common/src/scripts/plugins/lookup.rs | 23 +- crates/common/src/scripts/plugins/mod.rs | 23 +- crates/common/src/scripts/plugins/pyzor.rs | 23 +- crates/common/src/scripts/plugins/query.rs | 23 +- crates/common/src/scripts/plugins/text.rs | 23 +- crates/common/src/webhooks/collector.rs | 23 +- crates/common/src/webhooks/manager.rs | 23 +- crates/common/src/webhooks/mod.rs | 23 +- crates/directory/src/backend/imap/client.rs | 23 +- crates/directory/src/backend/imap/config.rs | 23 +- crates/directory/src/backend/imap/lookup.rs | 23 +- crates/directory/src/backend/imap/mod.rs | 23 +- crates/directory/src/backend/imap/pool.rs | 23 +- crates/directory/src/backend/imap/tls.rs | 23 +- .../directory/src/backend/internal/lookup.rs | 23 +- .../directory/src/backend/internal/manage.rs | 23 +- crates/directory/src/backend/internal/mod.rs | 23 +- crates/directory/src/backend/ldap/config.rs | 23 +- crates/directory/src/backend/ldap/lookup.rs | 23 +- crates/directory/src/backend/ldap/mod.rs | 23 +- crates/directory/src/backend/ldap/pool.rs | 23 +- crates/directory/src/backend/memory/config.rs | 23 +- crates/directory/src/backend/memory/lookup.rs | 23 +- crates/directory/src/backend/memory/mod.rs | 23 +- crates/directory/src/backend/mod.rs | 23 +- crates/directory/src/backend/smtp/config.rs | 23 +- crates/directory/src/backend/smtp/lookup.rs | 23 +- crates/directory/src/backend/smtp/mod.rs | 23 +- crates/directory/src/backend/smtp/pool.rs | 23 +- crates/directory/src/backend/sql/config.rs | 23 +- crates/directory/src/backend/sql/lookup.rs | 23 +- crates/directory/src/backend/sql/mod.rs | 23 +- crates/directory/src/core/cache.rs | 23 +- crates/directory/src/core/config.rs | 23 +- crates/directory/src/core/dispatch.rs | 23 +- crates/directory/src/core/mod.rs | 23 +- crates/directory/src/core/secret.rs | 23 +- crates/directory/src/lib.rs | 23 +- crates/enterprise/Cargo.toml | 13 + crates/enterprise/src/lib.rs | 7 + crates/enterprise/src/license.rs | 166 +++++ crates/imap-proto/src/lib.rs | 23 +- crates/imap-proto/src/parser/acl.rs | 23 +- crates/imap-proto/src/parser/append.rs | 23 +- crates/imap-proto/src/parser/authenticate.rs | 23 +- crates/imap-proto/src/parser/copy_move.rs | 23 +- crates/imap-proto/src/parser/create.rs | 23 +- crates/imap-proto/src/parser/delete.rs | 23 +- crates/imap-proto/src/parser/enable.rs | 23 +- crates/imap-proto/src/parser/fetch.rs | 23 +- crates/imap-proto/src/parser/list.rs | 23 +- crates/imap-proto/src/parser/login.rs | 23 +- crates/imap-proto/src/parser/lsub.rs | 23 +- crates/imap-proto/src/parser/mod.rs | 23 +- crates/imap-proto/src/parser/rename.rs | 23 +- crates/imap-proto/src/parser/search.rs | 23 +- crates/imap-proto/src/parser/select.rs | 23 +- crates/imap-proto/src/parser/sort.rs | 23 +- crates/imap-proto/src/parser/status.rs | 23 +- crates/imap-proto/src/parser/store.rs | 23 +- crates/imap-proto/src/parser/subscribe.rs | 23 +- crates/imap-proto/src/parser/thread.rs | 23 +- crates/imap-proto/src/protocol/acl.rs | 23 +- crates/imap-proto/src/protocol/append.rs | 23 +- .../imap-proto/src/protocol/authenticate.rs | 23 +- crates/imap-proto/src/protocol/capability.rs | 23 +- crates/imap-proto/src/protocol/copy_move.rs | 23 +- crates/imap-proto/src/protocol/create.rs | 23 +- crates/imap-proto/src/protocol/delete.rs | 23 +- crates/imap-proto/src/protocol/enable.rs | 23 +- crates/imap-proto/src/protocol/expunge.rs | 23 +- crates/imap-proto/src/protocol/fetch.rs | 23 +- crates/imap-proto/src/protocol/list.rs | 23 +- crates/imap-proto/src/protocol/login.rs | 23 +- crates/imap-proto/src/protocol/mod.rs | 23 +- crates/imap-proto/src/protocol/namespace.rs | 23 +- crates/imap-proto/src/protocol/rename.rs | 23 +- crates/imap-proto/src/protocol/search.rs | 23 +- crates/imap-proto/src/protocol/select.rs | 23 +- crates/imap-proto/src/protocol/status.rs | 23 +- crates/imap-proto/src/protocol/store.rs | 23 +- crates/imap-proto/src/protocol/subscribe.rs | 23 +- crates/imap-proto/src/protocol/thread.rs | 23 +- crates/imap-proto/src/receiver.rs | 23 +- crates/imap-proto/src/utf7.rs | 23 +- crates/imap/src/core/client.rs | 23 +- crates/imap/src/core/message.rs | 23 +- crates/imap/src/core/mod.rs | 23 +- crates/imap/src/core/session.rs | 23 +- crates/imap/src/core/writer.rs | 23 +- crates/imap/src/lib.rs | 23 +- crates/imap/src/op/acl.rs | 23 +- crates/imap/src/op/append.rs | 23 +- crates/imap/src/op/authenticate.rs | 23 +- crates/imap/src/op/capability.rs | 23 +- crates/imap/src/op/close.rs | 23 +- crates/imap/src/op/copy_move.rs | 23 +- crates/imap/src/op/create.rs | 23 +- crates/imap/src/op/delete.rs | 23 +- crates/imap/src/op/enable.rs | 23 +- crates/imap/src/op/expunge.rs | 23 +- crates/imap/src/op/fetch.rs | 23 +- crates/imap/src/op/idle.rs | 23 +- crates/imap/src/op/list.rs | 23 +- crates/imap/src/op/login.rs | 23 +- crates/imap/src/op/logout.rs | 23 +- crates/imap/src/op/mod.rs | 23 +- crates/imap/src/op/namespace.rs | 23 +- crates/imap/src/op/noop.rs | 23 +- crates/imap/src/op/rename.rs | 23 +- crates/imap/src/op/search.rs | 23 +- crates/imap/src/op/select.rs | 23 +- crates/imap/src/op/status.rs | 23 +- crates/imap/src/op/store.rs | 23 +- crates/imap/src/op/subscribe.rs | 23 +- crates/imap/src/op/thread.rs | 23 +- crates/jmap-proto/src/error/method.rs | 23 +- crates/jmap-proto/src/error/mod.rs | 23 +- crates/jmap-proto/src/error/request.rs | 23 +- crates/jmap-proto/src/error/set.rs | 23 +- crates/jmap-proto/src/lib.rs | 23 +- crates/jmap-proto/src/method/changes.rs | 23 +- crates/jmap-proto/src/method/copy.rs | 23 +- crates/jmap-proto/src/method/get.rs | 23 +- crates/jmap-proto/src/method/import.rs | 23 +- crates/jmap-proto/src/method/lookup.rs | 23 +- crates/jmap-proto/src/method/mod.rs | 23 +- crates/jmap-proto/src/method/parse.rs | 23 +- crates/jmap-proto/src/method/query.rs | 23 +- crates/jmap-proto/src/method/query_changes.rs | 23 +- .../jmap-proto/src/method/search_snippet.rs | 23 +- crates/jmap-proto/src/method/set.rs | 23 +- crates/jmap-proto/src/method/upload.rs | 23 +- crates/jmap-proto/src/method/validate.rs | 23 +- crates/jmap-proto/src/object/blob.rs | 23 +- crates/jmap-proto/src/object/email.rs | 23 +- .../jmap-proto/src/object/email_submission.rs | 23 +- crates/jmap-proto/src/object/index.rs | 23 +- crates/jmap-proto/src/object/mailbox.rs | 23 +- crates/jmap-proto/src/object/mod.rs | 23 +- crates/jmap-proto/src/object/sieve.rs | 23 +- crates/jmap-proto/src/parser/base32.rs | 23 +- crates/jmap-proto/src/parser/impls.rs | 23 +- crates/jmap-proto/src/parser/json.rs | 23 +- crates/jmap-proto/src/parser/mod.rs | 23 +- crates/jmap-proto/src/request/capability.rs | 23 +- crates/jmap-proto/src/request/echo.rs | 23 +- crates/jmap-proto/src/request/method.rs | 23 +- crates/jmap-proto/src/request/mod.rs | 23 +- crates/jmap-proto/src/request/parser.rs | 23 +- crates/jmap-proto/src/request/reference.rs | 23 +- crates/jmap-proto/src/request/websocket.rs | 23 +- crates/jmap-proto/src/response/mod.rs | 23 +- crates/jmap-proto/src/response/references.rs | 23 +- crates/jmap-proto/src/response/serialize.rs | 23 +- crates/jmap-proto/src/types/acl.rs | 23 +- crates/jmap-proto/src/types/any_id.rs | 23 +- crates/jmap-proto/src/types/blob.rs | 23 +- crates/jmap-proto/src/types/collection.rs | 23 +- crates/jmap-proto/src/types/date.rs | 23 +- crates/jmap-proto/src/types/id.rs | 23 +- crates/jmap-proto/src/types/keyword.rs | 23 +- crates/jmap-proto/src/types/mod.rs | 23 +- crates/jmap-proto/src/types/pointer.rs | 23 +- crates/jmap-proto/src/types/property.rs | 23 +- crates/jmap-proto/src/types/state.rs | 23 +- crates/jmap-proto/src/types/type_state.rs | 23 +- crates/jmap-proto/src/types/value.rs | 23 +- crates/jmap/src/api/autoconfig.rs | 23 +- crates/jmap/src/api/event_source.rs | 23 +- crates/jmap/src/api/http.rs | 23 +- crates/jmap/src/api/management/dkim.rs | 23 +- crates/jmap/src/api/management/domain.rs | 23 +- crates/jmap/src/api/management/mod.rs | 23 +- crates/jmap/src/api/management/principal.rs | 23 +- crates/jmap/src/api/management/queue.rs | 23 +- crates/jmap/src/api/management/reload.rs | 23 +- crates/jmap/src/api/management/report.rs | 23 +- crates/jmap/src/api/management/settings.rs | 23 +- crates/jmap/src/api/management/sieve.rs | 23 +- crates/jmap/src/api/management/stores.rs | 23 +- crates/jmap/src/api/mod.rs | 23 +- crates/jmap/src/api/request.rs | 23 +- crates/jmap/src/api/session.rs | 23 +- crates/jmap/src/auth/acl.rs | 23 +- crates/jmap/src/auth/authenticate.rs | 23 +- crates/jmap/src/auth/mod.rs | 23 +- crates/jmap/src/auth/oauth/auth.rs | 23 +- crates/jmap/src/auth/oauth/mod.rs | 23 +- crates/jmap/src/auth/oauth/token.rs | 23 +- crates/jmap/src/auth/rate_limit.rs | 23 +- crates/jmap/src/blob/copy.rs | 23 +- crates/jmap/src/blob/download.rs | 23 +- crates/jmap/src/blob/get.rs | 23 +- crates/jmap/src/blob/mod.rs | 23 +- crates/jmap/src/blob/upload.rs | 23 +- crates/jmap/src/changes/get.rs | 23 +- crates/jmap/src/changes/mod.rs | 23 +- crates/jmap/src/changes/query.rs | 23 +- crates/jmap/src/changes/state.rs | 23 +- crates/jmap/src/changes/write.rs | 23 +- crates/jmap/src/email/body.rs | 23 +- crates/jmap/src/email/cache.rs | 23 +- crates/jmap/src/email/copy.rs | 23 +- crates/jmap/src/email/crypto.rs | 23 +- crates/jmap/src/email/delete.rs | 23 +- crates/jmap/src/email/get.rs | 23 +- crates/jmap/src/email/headers.rs | 23 +- crates/jmap/src/email/import.rs | 23 +- crates/jmap/src/email/index.rs | 23 +- crates/jmap/src/email/ingest.rs | 23 +- crates/jmap/src/email/metadata.rs | 23 +- crates/jmap/src/email/mod.rs | 23 +- crates/jmap/src/email/parse.rs | 23 +- crates/jmap/src/email/query.rs | 23 +- crates/jmap/src/email/set.rs | 23 +- crates/jmap/src/email/snippet.rs | 23 +- crates/jmap/src/identity/get.rs | 23 +- crates/jmap/src/identity/mod.rs | 23 +- crates/jmap/src/identity/set.rs | 23 +- crates/jmap/src/lib.rs | 23 +- crates/jmap/src/mailbox/get.rs | 23 +- crates/jmap/src/mailbox/mod.rs | 23 +- crates/jmap/src/mailbox/query.rs | 23 +- crates/jmap/src/mailbox/set.rs | 23 +- crates/jmap/src/principal/get.rs | 23 +- crates/jmap/src/principal/mod.rs | 23 +- crates/jmap/src/principal/query.rs | 23 +- crates/jmap/src/push/ece.rs | 23 +- crates/jmap/src/push/get.rs | 23 +- crates/jmap/src/push/manager.rs | 23 +- crates/jmap/src/push/mod.rs | 23 +- crates/jmap/src/push/set.rs | 23 +- crates/jmap/src/quota/get.rs | 23 +- crates/jmap/src/quota/mod.rs | 23 +- crates/jmap/src/quota/query.rs | 23 +- crates/jmap/src/quota/set.rs | 23 +- crates/jmap/src/services/delivery.rs | 23 +- crates/jmap/src/services/gossip/heartbeat.rs | 23 +- crates/jmap/src/services/gossip/leave.rs | 23 +- crates/jmap/src/services/gossip/mod.rs | 23 +- crates/jmap/src/services/gossip/peer.rs | 23 +- crates/jmap/src/services/gossip/ping.rs | 23 +- crates/jmap/src/services/gossip/request.rs | 23 +- crates/jmap/src/services/gossip/spawn.rs | 23 +- crates/jmap/src/services/housekeeper.rs | 23 +- crates/jmap/src/services/index.rs | 23 +- crates/jmap/src/services/ingest.rs | 23 +- crates/jmap/src/services/mod.rs | 23 +- crates/jmap/src/services/state.rs | 23 +- crates/jmap/src/sieve/get.rs | 23 +- crates/jmap/src/sieve/ingest.rs | 23 +- crates/jmap/src/sieve/mod.rs | 23 +- crates/jmap/src/sieve/query.rs | 23 +- crates/jmap/src/sieve/set.rs | 23 +- crates/jmap/src/sieve/validate.rs | 23 +- crates/jmap/src/submission/get.rs | 23 +- crates/jmap/src/submission/mod.rs | 23 +- crates/jmap/src/submission/query.rs | 23 +- crates/jmap/src/submission/set.rs | 23 +- crates/jmap/src/thread/get.rs | 23 +- crates/jmap/src/thread/mod.rs | 23 +- crates/jmap/src/vacation/get.rs | 23 +- crates/jmap/src/vacation/mod.rs | 23 +- crates/jmap/src/vacation/set.rs | 23 +- crates/jmap/src/websocket/mod.rs | 23 +- crates/jmap/src/websocket/stream.rs | 23 +- crates/jmap/src/websocket/upgrade.rs | 23 +- crates/main/src/main.rs | 23 +- crates/managesieve/src/core/client.rs | 23 +- crates/managesieve/src/core/mod.rs | 23 +- crates/managesieve/src/core/session.rs | 23 +- crates/managesieve/src/lib.rs | 23 +- crates/managesieve/src/op/authenticate.rs | 23 +- crates/managesieve/src/op/capability.rs | 23 +- crates/managesieve/src/op/checkscript.rs | 23 +- crates/managesieve/src/op/deletescript.rs | 23 +- crates/managesieve/src/op/getscript.rs | 23 +- crates/managesieve/src/op/havespace.rs | 23 +- crates/managesieve/src/op/listscripts.rs | 23 +- crates/managesieve/src/op/logout.rs | 23 +- crates/managesieve/src/op/mod.rs | 23 +- crates/managesieve/src/op/noop.rs | 23 +- crates/managesieve/src/op/putscript.rs | 23 +- crates/managesieve/src/op/renamescript.rs | 23 +- crates/managesieve/src/op/setactive.rs | 23 +- crates/nlp/src/bayes/cache.rs | 23 +- crates/nlp/src/bayes/classify.rs | 23 +- crates/nlp/src/bayes/mod.rs | 23 +- crates/nlp/src/bayes/tokenize.rs | 6 + crates/nlp/src/bayes/train.rs | 23 +- crates/nlp/src/language/detect.rs | 23 +- crates/nlp/src/language/mod.rs | 23 +- crates/nlp/src/language/search_snippet.rs | 23 +- crates/nlp/src/language/stemmer.rs | 23 +- crates/nlp/src/language/stopwords.rs | 23 +- crates/nlp/src/tokenizers/chinese.rs | 23 +- crates/nlp/src/tokenizers/japanese.rs | 23 +- crates/nlp/src/tokenizers/mod.rs | 23 +- crates/nlp/src/tokenizers/osb.rs | 23 +- crates/nlp/src/tokenizers/space.rs | 23 +- crates/nlp/src/tokenizers/types.rs | 23 +- crates/nlp/src/tokenizers/word.rs | 23 +- crates/pop3/src/client.rs | 23 +- crates/pop3/src/lib.rs | 23 +- crates/pop3/src/mailbox.rs | 23 +- crates/pop3/src/op/authenticate.rs | 23 +- crates/pop3/src/op/delete.rs | 23 +- crates/pop3/src/op/fetch.rs | 23 +- crates/pop3/src/op/list.rs | 23 +- crates/pop3/src/op/mod.rs | 23 +- crates/pop3/src/protocol/mod.rs | 23 +- crates/pop3/src/protocol/request.rs | 23 +- crates/pop3/src/protocol/response.rs | 23 +- crates/pop3/src/session.rs | 23 +- crates/smtp/src/core/mod.rs | 23 +- crates/smtp/src/core/params.rs | 23 +- crates/smtp/src/core/throttle.rs | 23 +- crates/smtp/src/inbound/auth.rs | 23 +- crates/smtp/src/inbound/data.rs | 23 +- crates/smtp/src/inbound/ehlo.rs | 23 +- crates/smtp/src/inbound/hooks/client.rs | 23 +- crates/smtp/src/inbound/hooks/message.rs | 23 +- crates/smtp/src/inbound/hooks/mod.rs | 23 +- crates/smtp/src/inbound/mail.rs | 23 +- crates/smtp/src/inbound/milter/client.rs | 23 +- crates/smtp/src/inbound/milter/macros.rs | 23 +- crates/smtp/src/inbound/milter/message.rs | 23 +- crates/smtp/src/inbound/milter/mod.rs | 23 +- crates/smtp/src/inbound/milter/protocol.rs | 23 +- crates/smtp/src/inbound/milter/receiver.rs | 23 +- crates/smtp/src/inbound/mod.rs | 23 +- crates/smtp/src/inbound/rcpt.rs | 23 +- crates/smtp/src/inbound/session.rs | 23 +- crates/smtp/src/inbound/spawn.rs | 23 +- crates/smtp/src/inbound/vrfy.rs | 23 +- crates/smtp/src/lib.rs | 23 +- crates/smtp/src/outbound/dane/dnssec.rs | 23 +- crates/smtp/src/outbound/dane/mod.rs | 23 +- crates/smtp/src/outbound/dane/verify.rs | 23 +- crates/smtp/src/outbound/delivery.rs | 23 +- crates/smtp/src/outbound/local.rs | 23 +- crates/smtp/src/outbound/lookup.rs | 23 +- crates/smtp/src/outbound/mod.rs | 23 +- crates/smtp/src/outbound/mta_sts/lookup.rs | 23 +- crates/smtp/src/outbound/mta_sts/mod.rs | 23 +- crates/smtp/src/outbound/mta_sts/parse.rs | 23 +- crates/smtp/src/outbound/mta_sts/verify.rs | 23 +- crates/smtp/src/outbound/session.rs | 23 +- crates/smtp/src/queue/dsn.rs | 23 +- crates/smtp/src/queue/manager.rs | 23 +- crates/smtp/src/queue/mod.rs | 23 +- crates/smtp/src/queue/quota.rs | 23 +- crates/smtp/src/queue/spool.rs | 23 +- crates/smtp/src/queue/throttle.rs | 23 +- crates/smtp/src/reporting/analysis.rs | 23 +- crates/smtp/src/reporting/dkim.rs | 23 +- crates/smtp/src/reporting/dmarc.rs | 23 +- crates/smtp/src/reporting/mod.rs | 23 +- crates/smtp/src/reporting/scheduler.rs | 23 +- crates/smtp/src/reporting/spf.rs | 23 +- crates/smtp/src/reporting/tls.rs | 23 +- crates/smtp/src/scripts/envelope.rs | 23 +- crates/smtp/src/scripts/event_loop.rs | 23 +- crates/smtp/src/scripts/exec.rs | 23 +- crates/smtp/src/scripts/mod.rs | 23 +- crates/store/src/backend/elastic/index.rs | 23 +- crates/store/src/backend/elastic/mod.rs | 23 +- crates/store/src/backend/elastic/query.rs | 23 +- crates/store/src/backend/foundationdb/blob.rs | 23 +- crates/store/src/backend/foundationdb/main.rs | 23 +- crates/store/src/backend/foundationdb/mod.rs | 23 +- crates/store/src/backend/foundationdb/read.rs | 23 +- .../store/src/backend/foundationdb/write.rs | 23 +- crates/store/src/backend/fs/mod.rs | 23 +- crates/store/src/backend/memory/mod.rs | 23 +- crates/store/src/backend/mod.rs | 23 +- crates/store/src/backend/mysql/blob.rs | 23 +- crates/store/src/backend/mysql/lookup.rs | 23 +- crates/store/src/backend/mysql/main.rs | 23 +- crates/store/src/backend/mysql/mod.rs | 23 +- crates/store/src/backend/mysql/read.rs | 23 +- crates/store/src/backend/mysql/write.rs | 23 +- crates/store/src/backend/postgres/blob.rs | 23 +- crates/store/src/backend/postgres/lookup.rs | 23 +- crates/store/src/backend/postgres/main.rs | 23 +- crates/store/src/backend/postgres/mod.rs | 23 +- crates/store/src/backend/postgres/read.rs | 23 +- crates/store/src/backend/postgres/tls.rs | 23 +- crates/store/src/backend/postgres/write.rs | 23 +- crates/store/src/backend/redis/lookup.rs | 23 +- crates/store/src/backend/redis/mod.rs | 23 +- crates/store/src/backend/redis/pool.rs | 23 +- crates/store/src/backend/rocksdb/blob.rs | 23 +- crates/store/src/backend/rocksdb/main.rs | 23 +- crates/store/src/backend/rocksdb/mod.rs | 23 +- crates/store/src/backend/rocksdb/read.rs | 23 +- crates/store/src/backend/rocksdb/write.rs | 23 +- crates/store/src/backend/s3/mod.rs | 23 +- crates/store/src/backend/sqlite/blob.rs | 23 +- crates/store/src/backend/sqlite/lookup.rs | 23 +- crates/store/src/backend/sqlite/main.rs | 23 +- crates/store/src/backend/sqlite/mod.rs | 23 +- crates/store/src/backend/sqlite/pool.rs | 23 +- crates/store/src/backend/sqlite/read.rs | 23 +- crates/store/src/backend/sqlite/write.rs | 23 +- crates/store/src/config.rs | 23 +- crates/store/src/dispatch/blob.rs | 23 +- crates/store/src/dispatch/fts.rs | 23 +- crates/store/src/dispatch/lookup.rs | 23 +- crates/store/src/dispatch/mod.rs | 23 +- crates/store/src/dispatch/store.rs | 23 +- crates/store/src/fts/index.rs | 23 +- crates/store/src/fts/mod.rs | 23 +- crates/store/src/fts/pdf.rs | 23 +- crates/store/src/fts/postings.rs | 23 +- crates/store/src/fts/query.rs | 23 +- crates/store/src/lib.rs | 23 +- crates/store/src/query/acl.rs | 23 +- crates/store/src/query/filter.rs | 23 +- crates/store/src/query/log.rs | 23 +- crates/store/src/query/mod.rs | 23 +- crates/store/src/query/sort.rs | 23 +- crates/store/src/write/assert.rs | 23 +- crates/store/src/write/batch.rs | 23 +- crates/store/src/write/blob.rs | 23 +- crates/store/src/write/hash.rs | 23 +- crates/store/src/write/key.rs | 23 +- crates/store/src/write/log.rs | 23 +- crates/store/src/write/mod.rs | 23 +- crates/store/src/write/purge.rs | 23 +- crates/utils/src/codec/base32_custom.rs | 23 +- crates/utils/src/codec/leb128.rs | 23 +- crates/utils/src/codec/mod.rs | 23 +- crates/utils/src/config/cron.rs | 23 +- crates/utils/src/config/ipmask.rs | 23 +- crates/utils/src/config/mod.rs | 23 +- crates/utils/src/config/parser.rs | 23 +- crates/utils/src/config/utils.rs | 23 +- crates/utils/src/glob.rs | 23 +- crates/utils/src/lib.rs | 23 +- crates/utils/src/lru_cache.rs | 23 +- crates/utils/src/map/bitmap.rs | 23 +- crates/utils/src/map/mod.rs | 23 +- crates/utils/src/map/mutex_map.rs | 23 +- crates/utils/src/map/ttl_dashmap.rs | 8 +- crates/utils/src/map/vec_map.rs | 23 +- crates/utils/src/snowflake.rs | 23 +- crates/utils/src/suffixlist.rs | 23 +- crates/utils/src/url_params.rs | 23 +- install.sh | 6 + resources/config/build.py | 6 + tests/src/directory/imap.rs | 23 +- tests/src/directory/internal.rs | 23 +- tests/src/directory/ldap.rs | 23 +- tests/src/directory/mod.rs | 23 +- tests/src/directory/smtp.rs | 23 +- tests/src/directory/sql.rs | 23 +- tests/src/imap/acl.rs | 23 +- tests/src/imap/append.rs | 23 +- tests/src/imap/basic.rs | 23 +- tests/src/imap/body_structure.rs | 23 +- tests/src/imap/condstore.rs | 23 +- tests/src/imap/copy_move.rs | 23 +- tests/src/imap/fetch.rs | 23 +- tests/src/imap/idle.rs | 23 +- tests/src/imap/mailbox.rs | 23 +- tests/src/imap/managesieve.rs | 23 +- tests/src/imap/mod.rs | 23 +- tests/src/imap/pop.rs | 23 +- tests/src/imap/search.rs | 23 +- tests/src/imap/store.rs | 23 +- tests/src/imap/thread.rs | 23 +- tests/src/jmap/auth_acl.rs | 23 +- tests/src/jmap/auth_limits.rs | 23 +- tests/src/jmap/auth_oauth.rs | 23 +- tests/src/jmap/blob.rs | 23 +- tests/src/jmap/crypto.rs | 23 +- tests/src/jmap/delivery.rs | 23 +- tests/src/jmap/email_changes.rs | 23 +- tests/src/jmap/email_copy.rs | 23 +- tests/src/jmap/email_get.rs | 23 +- tests/src/jmap/email_parse.rs | 23 +- tests/src/jmap/email_query.rs | 23 +- tests/src/jmap/email_query_changes.rs | 23 +- tests/src/jmap/email_search_snippet.rs | 23 +- tests/src/jmap/email_set.rs | 23 +- tests/src/jmap/email_submission.rs | 23 +- tests/src/jmap/event_source.rs | 23 +- tests/src/jmap/mailbox.rs | 23 +- tests/src/jmap/mod.rs | 23 +- tests/src/jmap/purge.rs | 23 +- tests/src/jmap/push_subscription.rs | 23 +- tests/src/jmap/quota.rs | 23 +- tests/src/jmap/sieve_script.rs | 23 +- tests/src/jmap/stress_test.rs | 23 +- tests/src/jmap/thread_get.rs | 23 +- tests/src/jmap/thread_merge.rs | 23 +- tests/src/jmap/vacation_response.rs | 23 +- tests/src/jmap/webhooks.rs | 23 +- tests/src/jmap/websocket.rs | 23 +- tests/src/lib.rs | 23 +- tests/src/smtp/config.rs | 23 +- tests/src/smtp/inbound/auth.rs | 23 +- tests/src/smtp/inbound/basic.rs | 23 +- tests/src/smtp/inbound/data.rs | 23 +- tests/src/smtp/inbound/dmarc.rs | 23 +- tests/src/smtp/inbound/ehlo.rs | 23 +- tests/src/smtp/inbound/limits.rs | 23 +- tests/src/smtp/inbound/mail.rs | 23 +- tests/src/smtp/inbound/milter.rs | 23 +- tests/src/smtp/inbound/mod.rs | 23 +- tests/src/smtp/inbound/rcpt.rs | 23 +- tests/src/smtp/inbound/rewrite.rs | 23 +- tests/src/smtp/inbound/scripts.rs | 23 +- tests/src/smtp/inbound/sign.rs | 23 +- tests/src/smtp/inbound/throttle.rs | 23 +- tests/src/smtp/inbound/vrfy.rs | 23 +- tests/src/smtp/lookup/mod.rs | 23 +- tests/src/smtp/lookup/sql.rs | 23 +- tests/src/smtp/lookup/utils.rs | 23 +- tests/src/smtp/management/mod.rs | 23 +- tests/src/smtp/management/queue.rs | 23 +- tests/src/smtp/management/report.rs | 23 +- tests/src/smtp/mod.rs | 23 +- tests/src/smtp/outbound/dane.rs | 23 +- tests/src/smtp/outbound/extensions.rs | 23 +- tests/src/smtp/outbound/fallback_relay.rs | 23 +- tests/src/smtp/outbound/ip_lookup.rs | 23 +- tests/src/smtp/outbound/lmtp.rs | 23 +- tests/src/smtp/outbound/mod.rs | 23 +- tests/src/smtp/outbound/mta_sts.rs | 23 +- tests/src/smtp/outbound/smtp.rs | 23 +- tests/src/smtp/outbound/throttle.rs | 23 +- tests/src/smtp/outbound/tls.rs | 23 +- tests/src/smtp/queue/concurrent.rs | 23 +- tests/src/smtp/queue/dsn.rs | 23 +- tests/src/smtp/queue/manager.rs | 23 +- tests/src/smtp/queue/mod.rs | 23 +- tests/src/smtp/queue/retry.rs | 23 +- tests/src/smtp/reporting/analyze.rs | 23 +- tests/src/smtp/reporting/dmarc.rs | 23 +- tests/src/smtp/reporting/mod.rs | 23 +- tests/src/smtp/reporting/scheduler.rs | 23 +- tests/src/smtp/reporting/tls.rs | 23 +- tests/src/smtp/session.rs | 23 +- tests/src/store/assign_id.rs | 23 +- tests/src/store/blob.rs | 23 +- tests/src/store/import_export.rs | 23 +- tests/src/store/lookup.rs | 23 +- tests/src/store/mod.rs | 23 +- tests/src/store/ops.rs | 23 +- tests/src/store/query.rs | 23 +- 636 files changed, 2422 insertions(+), 12880 deletions(-) delete mode 100644 LICENSE create mode 100644 LICENSES/AGPL-3.0-only.txt create mode 100644 LICENSES/LicenseRef-SEL.txt create mode 100644 crates/enterprise/Cargo.toml create mode 100644 crates/enterprise/src/lib.rs create mode 100644 crates/enterprise/src/license.rs diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 7d44bb14..7ba4608b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,5 +1,5 @@ name: I think I found a bug -description: File a bug report issue +description: File a bug report issue. If you have a question or are experiencing a problem, please start a [new discussion](https://github.com/stalwartlabs/mail-server/discussions/new?category=q-a) instead. title: "[bug]: " labels: ["bug"] body: @@ -33,8 +33,7 @@ body: options: - v0.8.x - v0.7.x - - v0.6.x - - v0.5.x or lower + - v0.6.x or lower validations: required: true - type: dropdown diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index ae13162e..942d54a4 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -9,3 +9,6 @@ contact_links: - name: Join Stalwart's Discord url: https://discord.gg/aVQr3jF8jd about: Join our Discord server for help, discussions and release announcements. + - name: Join Stalwart's Matrix + url: https://matrix.to/#/#stalwart:matrix.org + about: Join our Matrix room for help, discussions and release announcements. diff --git a/Cargo.lock b/Cargo.lock index 19563f8c..654eaa7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1890,6 +1890,14 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" +[[package]] +name = "enterprise" +version = "0.8.2" +dependencies = [ + "base64 0.22.1", + "ring 0.17.8", +] + [[package]] name = "enum-as-inner" version = "0.6.0" diff --git a/Cargo.toml b/Cargo.toml index e1208b2d..cc70b7da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,7 @@ members = [ "crates/nlp", "crates/store", "crates/directory", + "crates/enterprise", "crates/utils", "crates/common", "crates/cli", diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 0ad25db4..00000000 --- a/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/LICENSES/AGPL-3.0-only.txt b/LICENSES/AGPL-3.0-only.txt new file mode 100644 index 00000000..0c97efd2 --- /dev/null +++ b/LICENSES/AGPL-3.0-only.txt @@ -0,0 +1,235 @@ +GNU AFFERO GENERAL PUBLIC LICENSE +Version 3, 19 November 2007 + +Copyright (C) 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + + Preamble + +The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. + +A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. + +The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. + +An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. + +The precise terms and conditions for copying, distribution and modification follow. + + TERMS AND CONDITIONS + +0. Definitions. + +"This License" refers to version 3 of the GNU Affero General Public License. + +"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. + +To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. + +A "covered work" means either the unmodified Program or a work based on the Program. + +To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. + +A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those +subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". + + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. + +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. + +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. + +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. + +A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". + +A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. + +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Remote Network Interaction; Use with the GNU General Public License. + +Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. + +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. + +14. Revised Versions of this License. + +The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. + +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. + +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. + +You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see . diff --git a/LICENSES/LicenseRef-SEL.txt b/LICENSES/LicenseRef-SEL.txt new file mode 100644 index 00000000..85fc84dc --- /dev/null +++ b/LICENSES/LicenseRef-SEL.txt @@ -0,0 +1,63 @@ +Stalwart Enterprise License 1.0 (SELv1) Agreement +================================================= + +Last Update: June 25, 2024 + +GRANT OF LICENSE + +Stalwart Labs Ltd. ("Licensor") grants you ("Licensee") a non-exclusive, non-transferable, non-sublicensable, limited license to use the software ("Software") under the terms set forth in this Stalwart Enterprise License Agreement ("Agreement"). + +LICENSE RESTRICTIONS + +1. Commercial Use: Licensee is authorized to use the Software for commercial purposes, including the provision of services utilizing the Software. However, Licensee is expressly prohibited from reselling, leasing, sublicensing, or otherwise redistributing the Software itself. + +2. Subscription Requirement: The use of the Software is conditioned upon Licensee maintaining an active and valid paid subscription with Licensor. The Software shall not be used without a valid subscription. + +3. Source-Available Commercial License: The Software provided under this Agreement is not open source. Accordingly, the Software may not be distributed or modified by Licensee. While the source code may be available for review, it is not open source and remains proprietary. + +4. Additional Licensing Terms: This license is further governed by the terms and conditions set forth in any licensing agreements separately executed between Licensor and Licensee. In the event of any conflict between the terms of this Agreement and the terms of a signed licensing agreement, the terms of the signed licensing agreement shall control. + + +INTELLECTUAL PROPERTY RIGHTS + +1. Ownership: The Licensor retains all rights, title, and interest in and to the Software, including all intellectual property rights therein. This Agreement does not transfer any ownership rights to the Licensee. + +2. Proprietary Notices: The Licensee must not remove, alter, or obscure any proprietary notices (including copyright and trademark notices) on the Software. + + +TERMINATION + +1. Termination by Licensor: The Licensor may terminate this Agreement immediately if the Licensee fails to comply with any terms and conditions of this Agreement. + +2. Effect of Termination: Upon termination of this Agreement, the Licensee must cease all use of the Software and destroy all copies of the Software in their possession or control. + + +DISCLAIMER OF WARRANTIES + +The Software is provided "as is" without warranty of any kind. The Licensor disclaims all warranties, express or implied, including but not limited to implied warranties of merchantability, fitness for a particular purpose, and non-infringement. + + +LIMITATION OF LIABILITY + +In no event will the Licensor be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of profits or revenues, whether incurred directly or indirectly, or any loss of data, use, goodwill, or other intangible losses, resulting from (i) your use or inability to use the Software; (ii) any unauthorized access to or use of our servers and/or any personal information stored therein. + + +GOVERNING LAW + +This Agreement shall be governed by and construed in accordance with the laws of the United Kingdom, without regard to its conflict of law principles. + + +ENTIRE AGREEMENT + +This Agreement constitutes the entire agreement between the Licensor and the Licensee with respect to the subject matter hereof and supersedes all prior or contemporaneous understandings regarding such subject matter. No amendment to or modification of this Agreement will be binding unless in writing and signed by the Licensor. + + +CONTACT INFORMATION + +If you have any questions about this Agreement, please contact Stalwart Labs Ltd. at: + +Stalwart Labs Ltd. +128 City Road +London, United Kingdom +hello@stalw.art + diff --git a/README.md b/README.md index 565185ba..ddbbf513 100644 --- a/README.md +++ b/README.md @@ -123,11 +123,9 @@ Additionally you may become a sponsor to obtain priority support from Stalwart L ## Roadmap -- [x] Performance enhancements -- [x] Distributed SMTP queues -- [x] Web-based admin panel - [ ] JMAP Calendar, Contacts and Tasks support - [ ] CalDAV and CardDAV support +- [ ] ActiveSync support See the [open issues](https://github.com/stalwartlabs/mail-server/issues) for a full list of proposed features (and known issues). @@ -139,13 +137,13 @@ If you find the project useful you can help by [becoming a sponsor](https://libe ## License -Licensed under the terms of the [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.en.html) as published by -the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -See [LICENSE](LICENSE) for more details. +This project is dual-licensed under the **GNU Affero General Public License v3.0** (AGPL-3.0; as published by the Free Software Foundation) and the **Stalwart Enterprise License v1 (SELv1)**: + +- The [GNU Affero General Public License v3.0](./LICENSES/AGPL-3.0-only.txt) is a free software license that ensures your freedom to use, modify, and distribute the software, with the condition that any modified versions of the software must also be distributed under the same license. +- The [Stalwart Enterprise License v1 (SELv1)](./LICENSES/LicenseRef-SEL.txt) is a proprietary license designed for commercial use. It offers additional features and greater flexibility for businesses that do not wish to comply with the AGPL-3.0 license requirements. + +Each file in this project contains a license notice at the top, indicating the applicable license(s). The license notice follows the [REUSE guidelines](https://reuse.software/) to ensure clarity and consistency. The full text of each license is available in the [LICENSES](./LICENSES/) directory. -You can be released from the requirements of the AGPLv3 license by purchasing -a commercial license. Please contact licensing@stalw.art for more details. - ## Copyright Copyright (C) 2024, Stalwart Labs Ltd. diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 51e86a06..27c65e6f 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::HashMap, diff --git a/crates/cli/src/modules/account.rs b/crates/cli/src/modules/account.rs index 0ae35f68..4204d132 100644 --- a/crates/cli/src/modules/account.rs +++ b/crates/cli/src/modules/account.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/cli/src/modules/cli.rs b/crates/cli/src/modules/cli.rs index 41e54723..865b7c8e 100644 --- a/crates/cli/src/modules/cli.rs +++ b/crates/cli/src/modules/cli.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use clap::{Parser, Subcommand, ValueEnum}; use jmap_client::client::Credentials; diff --git a/crates/cli/src/modules/database.rs b/crates/cli/src/modules/database.rs index 4c200ffe..3ba06598 100644 --- a/crates/cli/src/modules/database.rs +++ b/crates/cli/src/modules/database.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::HashMap; diff --git a/crates/cli/src/modules/domain.rs b/crates/cli/src/modules/domain.rs index 4e4119eb..bc0dd898 100644 --- a/crates/cli/src/modules/domain.rs +++ b/crates/cli/src/modules/domain.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/cli/src/modules/export.rs b/crates/cli/src/modules/export.rs index 4207e3b8..1bb6aeeb 100644 --- a/crates/cli/src/modules/export.rs +++ b/crates/cli/src/modules/export.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ path::{Path, PathBuf}, diff --git a/crates/cli/src/modules/group.rs b/crates/cli/src/modules/group.rs index e872d931..f658dc0e 100644 --- a/crates/cli/src/modules/group.rs +++ b/crates/cli/src/modules/group.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::vec; diff --git a/crates/cli/src/modules/import.rs b/crates/cli/src/modules/import.rs index aae5e999..eea73f9e 100644 --- a/crates/cli/src/modules/import.rs +++ b/crates/cli/src/modules/import.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::{HashMap, HashSet}, diff --git a/crates/cli/src/modules/list.rs b/crates/cli/src/modules/list.rs index 7ca475c9..e14f6f98 100644 --- a/crates/cli/src/modules/list.rs +++ b/crates/cli/src/modules/list.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::vec; diff --git a/crates/cli/src/modules/mod.rs b/crates/cli/src/modules/mod.rs index 4f304f9f..a9d5eb5c 100644 --- a/crates/cli/src/modules/mod.rs +++ b/crates/cli/src/modules/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{collections::HashMap, fmt::Display, io::Read}; diff --git a/crates/cli/src/modules/queue.rs b/crates/cli/src/modules/queue.rs index 8bac4887..68d2e56e 100644 --- a/crates/cli/src/modules/queue.rs +++ b/crates/cli/src/modules/queue.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{ cli::{Client, QueueCommands}, diff --git a/crates/cli/src/modules/report.rs b/crates/cli/src/modules/report.rs index ef019ffb..823c4c50 100644 --- a/crates/cli/src/modules/report.rs +++ b/crates/cli/src/modules/report.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::cli::{Client, ReportCommands, ReportFormat}; use crate::modules::{queue::deserialize_datetime, List}; diff --git a/crates/common/src/addresses.rs b/crates/common/src/addresses.rs index 75fa1d01..24636d29 100644 --- a/crates/common/src/addresses.rs +++ b/crates/common/src/addresses.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/common/src/config/imap.rs b/crates/common/src/config/imap.rs index 0e734ba3..f488b0f0 100644 --- a/crates/common/src/config/imap.rs +++ b/crates/common/src/config/imap.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/common/src/config/jmap/capabilities.rs b/crates/common/src/config/jmap/capabilities.rs index 8e21ae76..c922c502 100644 --- a/crates/common/src/config/jmap/capabilities.rs +++ b/crates/common/src/config/jmap/capabilities.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use ahash::AHashSet; use jmap_proto::{ request::capability::{ diff --git a/crates/common/src/config/jmap/mod.rs b/crates/common/src/config/jmap/mod.rs index 0b6492c2..bc13448b 100644 --- a/crates/common/src/config/jmap/mod.rs +++ b/crates/common/src/config/jmap/mod.rs @@ -1,2 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + pub mod capabilities; pub mod settings; diff --git a/crates/common/src/config/jmap/settings.rs b/crates/common/src/config/jmap/settings.rs index 19fddd92..580bcd94 100644 --- a/crates/common/src/config/jmap/settings.rs +++ b/crates/common/src/config/jmap/settings.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use std::{str::FromStr, time::Duration}; use jmap_proto::request::capability::BaseCapabilities; diff --git a/crates/common/src/config/mod.rs b/crates/common/src/config/mod.rs index 1f9d817f..8af9b850 100644 --- a/crates/common/src/config/mod.rs +++ b/crates/common/src/config/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/common/src/config/network.rs b/crates/common/src/config/network.rs index 1a610565..50eb0f24 100644 --- a/crates/common/src/config/network.rs +++ b/crates/common/src/config/network.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{str::FromStr, time::Duration}; diff --git a/crates/common/src/config/scripts.rs b/crates/common/src/config/scripts.rs index e416a9c8..7209e820 100644 --- a/crates/common/src/config/scripts.rs +++ b/crates/common/src/config/scripts.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::HashSet, diff --git a/crates/common/src/config/server/listener.rs b/crates/common/src/config/server/listener.rs index 04756b18..b9445cbc 100644 --- a/crates/common/src/config/server/listener.rs +++ b/crates/common/src/config/server/listener.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{net::SocketAddr, sync::Arc, time::Duration}; diff --git a/crates/common/src/config/server/mod.rs b/crates/common/src/config/server/mod.rs index 6b1b3232..c6a5b3ab 100644 --- a/crates/common/src/config/server/mod.rs +++ b/crates/common/src/config/server/mod.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use std::{fmt::Display, net::SocketAddr, time::Duration}; use ahash::AHashMap; diff --git a/crates/common/src/config/server/tls.rs b/crates/common/src/config/server/tls.rs index ca880116..62c12b03 100644 --- a/crates/common/src/config/server/tls.rs +++ b/crates/common/src/config/server/tls.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ io::Cursor, diff --git a/crates/common/src/config/smtp/auth.rs b/crates/common/src/config/smtp/auth.rs index db461789..0dfdd4f0 100644 --- a/crates/common/src/config/smtp/auth.rs +++ b/crates/common/src/config/smtp/auth.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use std::{sync::Arc, time::Duration}; use ahash::AHashMap; diff --git a/crates/common/src/config/smtp/mod.rs b/crates/common/src/config/smtp/mod.rs index f5eba933..64e7e41d 100644 --- a/crates/common/src/config/smtp/mod.rs +++ b/crates/common/src/config/smtp/mod.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use utils::config::{Config, Rate}; pub mod auth; diff --git a/crates/common/src/config/smtp/queue.rs b/crates/common/src/config/smtp/queue.rs index d543d0e9..a017b527 100644 --- a/crates/common/src/config/smtp/queue.rs +++ b/crates/common/src/config/smtp/queue.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use ahash::AHashMap; use mail_auth::IpLookupStrategy; use mail_send::Credentials; diff --git a/crates/common/src/config/smtp/report.rs b/crates/common/src/config/smtp/report.rs index 43b0d9bc..b8e47c0f 100644 --- a/crates/common/src/config/smtp/report.rs +++ b/crates/common/src/config/smtp/report.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use std::time::Duration; use utils::config::{utils::ParseValue, Config}; diff --git a/crates/common/src/config/smtp/resolver.rs b/crates/common/src/config/smtp/resolver.rs index 51ead82e..cfac607c 100644 --- a/crates/common/src/config/smtp/resolver.rs +++ b/crates/common/src/config/smtp/resolver.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use std::{ fmt::Display, hash::{DefaultHasher, Hash, Hasher}, diff --git a/crates/common/src/config/smtp/session.rs b/crates/common/src/config/smtp/session.rs index ce3927df..d9698dd0 100644 --- a/crates/common/src/config/smtp/session.rs +++ b/crates/common/src/config/smtp/session.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use std::{ net::{SocketAddr, ToSocketAddrs}, str::FromStr, diff --git a/crates/common/src/config/smtp/throttle.rs b/crates/common/src/config/smtp/throttle.rs index b8bfd835..4c16bba4 100644 --- a/crates/common/src/config/smtp/throttle.rs +++ b/crates/common/src/config/smtp/throttle.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::config::{utils::AsKey, Config, Rate}; diff --git a/crates/common/src/config/storage.rs b/crates/common/src/config/storage.rs index f34248f3..3ab8ec8b 100644 --- a/crates/common/src/config/storage.rs +++ b/crates/common/src/config/storage.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/common/src/config/tracers.rs b/crates/common/src/config/tracers.rs index f8ea7b05..76ed7fc8 100644 --- a/crates/common/src/config/tracers.rs +++ b/crates/common/src/config/tracers.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{collections::HashMap, str::FromStr}; diff --git a/crates/common/src/expr/eval.rs b/crates/common/src/expr/eval.rs index 19bb3bff..937222e0 100644 --- a/crates/common/src/expr/eval.rs +++ b/crates/common/src/expr/eval.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, cmp::Ordering, fmt::Display}; diff --git a/crates/common/src/expr/functions/array.rs b/crates/common/src/expr/functions/array.rs index 12868067..0382c705 100644 --- a/crates/common/src/expr/functions/array.rs +++ b/crates/common/src/expr/functions/array.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::expr::Variable; diff --git a/crates/common/src/expr/functions/email.rs b/crates/common/src/expr/functions/email.rs index 42a6d318..072eb5fe 100644 --- a/crates/common/src/expr/functions/email.rs +++ b/crates/common/src/expr/functions/email.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/common/src/expr/functions/misc.rs b/crates/common/src/expr/functions/misc.rs index 6947abf4..76960f79 100644 --- a/crates/common/src/expr/functions/misc.rs +++ b/crates/common/src/expr/functions/misc.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::net::IpAddr; diff --git a/crates/common/src/expr/functions/mod.rs b/crates/common/src/expr/functions/mod.rs index e3491cb5..94646b36 100644 --- a/crates/common/src/expr/functions/mod.rs +++ b/crates/common/src/expr/functions/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/common/src/expr/functions/text.rs b/crates/common/src/expr/functions/text.rs index 9cbce608..7bb6cf00 100644 --- a/crates/common/src/expr/functions/text.rs +++ b/crates/common/src/expr/functions/text.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/common/src/expr/if_block.rs b/crates/common/src/expr/if_block.rs index c1196fa2..5254cbf1 100644 --- a/crates/common/src/expr/if_block.rs +++ b/crates/common/src/expr/if_block.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::config::{utils::AsKey, Config}; diff --git a/crates/common/src/expr/mod.rs b/crates/common/src/expr/mod.rs index bad63d02..5c5b5649 100644 --- a/crates/common/src/expr/mod.rs +++ b/crates/common/src/expr/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ borrow::Cow, diff --git a/crates/common/src/expr/parser.rs b/crates/common/src/expr/parser.rs index 2685383f..28fc0756 100644 --- a/crates/common/src/expr/parser.rs +++ b/crates/common/src/expr/parser.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{tokenizer::Tokenizer, BinaryOperator, Expression, ExpressionItem, Token}; diff --git a/crates/common/src/expr/tokenizer.rs b/crates/common/src/expr/tokenizer.rs index c0930eff..da949981 100644 --- a/crates/common/src/expr/tokenizer.rs +++ b/crates/common/src/expr/tokenizer.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, iter::Peekable, slice::Iter, time::Duration}; diff --git a/crates/common/src/lib.rs b/crates/common/src/lib.rs index 872c4b64..380303eb 100644 --- a/crates/common/src/lib.rs +++ b/crates/common/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, net::IpAddr, sync::Arc}; @@ -68,7 +51,7 @@ pub mod manager; pub mod scripts; pub mod webhooks; -pub static USER_AGENT: &str = concat!("StalwartMail/", env!("CARGO_PKG_VERSION"),); +pub static USER_AGENT: &str = concat!("Stalwart/", env!("CARGO_PKG_VERSION"),); pub static DAEMON_NAME: &str = concat!("Stalwart Mail Server v", env!("CARGO_PKG_VERSION"),); pub const IPC_CHANNEL_BUFFER: usize = 1024; diff --git a/crates/common/src/listener/acme/cache.rs b/crates/common/src/listener/acme/cache.rs index a3b1958b..43a6d7a7 100644 --- a/crates/common/src/listener/acme/cache.rs +++ b/crates/common/src/listener/acme/cache.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::io::ErrorKind; diff --git a/crates/common/src/listener/acme/mod.rs b/crates/common/src/listener/acme/mod.rs index ceb6a07e..569cca89 100644 --- a/crates/common/src/listener/acme/mod.rs +++ b/crates/common/src/listener/acme/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod cache; pub mod directory; diff --git a/crates/common/src/listener/acme/resolver.rs b/crates/common/src/listener/acme/resolver.rs index a283162a..b0208658 100644 --- a/crates/common/src/listener/acme/resolver.rs +++ b/crates/common/src/listener/acme/resolver.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/common/src/listener/blocked.rs b/crates/common/src/listener/blocked.rs index 75a62a2f..e5efaea5 100644 --- a/crates/common/src/listener/blocked.rs +++ b/crates/common/src/listener/blocked.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fmt::Debug, net::IpAddr, sync::atomic::AtomicU8}; diff --git a/crates/common/src/listener/limiter.rs b/crates/common/src/listener/limiter.rs index 0ff22acf..2b2a8fa7 100644 --- a/crates/common/src/listener/limiter.rs +++ b/crates/common/src/listener/limiter.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ sync::{ diff --git a/crates/common/src/listener/listen.rs b/crates/common/src/listener/listen.rs index f9a8273b..27645125 100644 --- a/crates/common/src/listener/listen.rs +++ b/crates/common/src/listener/listen.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ net::{IpAddr, SocketAddr}, diff --git a/crates/common/src/listener/mod.rs b/crates/common/src/listener/mod.rs index 2f19efb9..45c74ba3 100644 --- a/crates/common/src/listener/mod.rs +++ b/crates/common/src/listener/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, net::IpAddr, sync::Arc}; diff --git a/crates/common/src/listener/stream.rs b/crates/common/src/listener/stream.rs index d01e7174..4f5e18a8 100644 --- a/crates/common/src/listener/stream.rs +++ b/crates/common/src/listener/stream.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/common/src/listener/tls.rs b/crates/common/src/listener/tls.rs index 2b39832f..12e922cb 100644 --- a/crates/common/src/listener/tls.rs +++ b/crates/common/src/listener/tls.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ cmp::Ordering, diff --git a/crates/common/src/manager/backup.rs b/crates/common/src/manager/backup.rs index 19c96ec0..f48ec89e 100644 --- a/crates/common/src/manager/backup.rs +++ b/crates/common/src/manager/backup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::BTreeSet, diff --git a/crates/common/src/manager/boot.rs b/crates/common/src/manager/boot.rs index 3e2839b0..407752a4 100644 --- a/crates/common/src/manager/boot.rs +++ b/crates/common/src/manager/boot.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::path::PathBuf; diff --git a/crates/common/src/manager/config.rs b/crates/common/src/manager/config.rs index 5103cae0..81dbc1fb 100644 --- a/crates/common/src/manager/config.rs +++ b/crates/common/src/manager/config.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::{btree_map::Entry, BTreeMap}, diff --git a/crates/common/src/manager/mod.rs b/crates/common/src/manager/mod.rs index 66164f51..a5cc7e42 100644 --- a/crates/common/src/manager/mod.rs +++ b/crates/common/src/manager/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/common/src/manager/reload.rs b/crates/common/src/manager/reload.rs index 5342766a..ec97ff2d 100644 --- a/crates/common/src/manager/reload.rs +++ b/crates/common/src/manager/reload.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashSet; use arc_swap::ArcSwap; diff --git a/crates/common/src/manager/restore.rs b/crates/common/src/manager/restore.rs index 1d9c633a..0f5cf44c 100644 --- a/crates/common/src/manager/restore.rs +++ b/crates/common/src/manager/restore.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ io::ErrorKind, diff --git a/crates/common/src/manager/webadmin.rs b/crates/common/src/manager/webadmin.rs index d9b19e4c..9a92f11f 100644 --- a/crates/common/src/manager/webadmin.rs +++ b/crates/common/src/manager/webadmin.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ io::{self, Cursor, Read}, diff --git a/crates/common/src/scripts/functions/array.rs b/crates/common/src/scripts/functions/array.rs index 0d3c49ca..832c727b 100644 --- a/crates/common/src/scripts/functions/array.rs +++ b/crates/common/src/scripts/functions/array.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::{HashMap, HashSet}; diff --git a/crates/common/src/scripts/functions/email.rs b/crates/common/src/scripts/functions/email.rs index 87e54be8..4234fb52 100644 --- a/crates/common/src/scripts/functions/email.rs +++ b/crates/common/src/scripts/functions/email.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use sieve::{runtime::Variable, Context}; diff --git a/crates/common/src/scripts/functions/header.rs b/crates/common/src/scripts/functions/header.rs index 8038fc11..5a1bb9b3 100644 --- a/crates/common/src/scripts/functions/header.rs +++ b/crates/common/src/scripts/functions/header.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_parser::{parsers::fields::thread::thread_name, HeaderName, HeaderValue, MimeHeaders}; use sieve::{compiler::ReceivedPart, runtime::Variable, Context}; diff --git a/crates/common/src/scripts/functions/html.rs b/crates/common/src/scripts/functions/html.rs index 114a0768..5f565f5c 100644 --- a/crates/common/src/scripts/functions/html.rs +++ b/crates/common/src/scripts/functions/html.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/common/src/scripts/functions/image.rs b/crates/common/src/scripts/functions/image.rs index e0192ae5..5d99187d 100644 --- a/crates/common/src/scripts/functions/image.rs +++ b/crates/common/src/scripts/functions/image.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use sieve::{runtime::Variable, Context}; diff --git a/crates/common/src/scripts/functions/misc.rs b/crates/common/src/scripts/functions/misc.rs index a1a1dd65..2d4c65f5 100644 --- a/crates/common/src/scripts/functions/misc.rs +++ b/crates/common/src/scripts/functions/misc.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::net::IpAddr; diff --git a/crates/common/src/scripts/functions/mod.rs b/crates/common/src/scripts/functions/mod.rs index 38d371ab..31aca019 100644 --- a/crates/common/src/scripts/functions/mod.rs +++ b/crates/common/src/scripts/functions/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ mod array; mod email; diff --git a/crates/common/src/scripts/functions/text.rs b/crates/common/src/scripts/functions/text.rs index 58767656..33d9a25f 100644 --- a/crates/common/src/scripts/functions/text.rs +++ b/crates/common/src/scripts/functions/text.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use sieve::{runtime::Variable, Context}; diff --git a/crates/common/src/scripts/functions/unicode.rs b/crates/common/src/scripts/functions/unicode.rs index 84c5daae..d11d09f8 100644 --- a/crates/common/src/scripts/functions/unicode.rs +++ b/crates/common/src/scripts/functions/unicode.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use sieve::{runtime::Variable, Context}; use unicode_security::MixedScript; diff --git a/crates/common/src/scripts/functions/url.rs b/crates/common/src/scripts/functions/url.rs index d2cc2f43..b6afd607 100644 --- a/crates/common/src/scripts/functions/url.rs +++ b/crates/common/src/scripts/functions/url.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use hyper::Uri; use sieve::{runtime::Variable, Context}; diff --git a/crates/common/src/scripts/mod.rs b/crates/common/src/scripts/mod.rs index 229f0feb..d0384875 100644 --- a/crates/common/src/scripts/mod.rs +++ b/crates/common/src/scripts/mod.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use std::sync::Arc; use sieve::{runtime::Variable, Envelope}; diff --git a/crates/common/src/scripts/plugins/bayes.rs b/crates/common/src/scripts/plugins/bayes.rs index 4f5a3ff5..76538453 100644 --- a/crates/common/src/scripts/plugins/bayes.rs +++ b/crates/common/src/scripts/plugins/bayes.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use nlp::{ bayes::{ diff --git a/crates/common/src/scripts/plugins/dns.rs b/crates/common/src/scripts/plugins/dns.rs index e3c06e80..1ee5d1ff 100644 --- a/crates/common/src/scripts/plugins/dns.rs +++ b/crates/common/src/scripts/plugins/dns.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::net::IpAddr; diff --git a/crates/common/src/scripts/plugins/exec.rs b/crates/common/src/scripts/plugins/exec.rs index 2e35484a..b4aabebb 100644 --- a/crates/common/src/scripts/plugins/exec.rs +++ b/crates/common/src/scripts/plugins/exec.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::process::Command; diff --git a/crates/common/src/scripts/plugins/headers.rs b/crates/common/src/scripts/plugins/headers.rs index fb1594a3..bc92ed99 100644 --- a/crates/common/src/scripts/plugins/headers.rs +++ b/crates/common/src/scripts/plugins/headers.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use sieve::{runtime::Variable, FunctionMap}; diff --git a/crates/common/src/scripts/plugins/http.rs b/crates/common/src/scripts/plugins/http.rs index 4161500c..6beaacdd 100644 --- a/crates/common/src/scripts/plugins/http.rs +++ b/crates/common/src/scripts/plugins/http.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/common/src/scripts/plugins/lookup.rs b/crates/common/src/scripts/plugins/lookup.rs index 9523baa2..009b6883 100644 --- a/crates/common/src/scripts/plugins/lookup.rs +++ b/crates/common/src/scripts/plugins/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::HashSet, diff --git a/crates/common/src/scripts/plugins/mod.rs b/crates/common/src/scripts/plugins/mod.rs index 1f7af511..c679bec5 100644 --- a/crates/common/src/scripts/plugins/mod.rs +++ b/crates/common/src/scripts/plugins/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod bayes; pub mod dns; diff --git a/crates/common/src/scripts/plugins/pyzor.rs b/crates/common/src/scripts/plugins/pyzor.rs index 80fe0412..cfe835e4 100644 --- a/crates/common/src/scripts/plugins/pyzor.rs +++ b/crates/common/src/scripts/plugins/pyzor.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use sieve::{runtime::Variable, FunctionMap}; diff --git a/crates/common/src/scripts/plugins/query.rs b/crates/common/src/scripts/plugins/query.rs index b3522917..221629b7 100644 --- a/crates/common/src/scripts/plugins/query.rs +++ b/crates/common/src/scripts/plugins/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level store of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::cmp::Ordering; diff --git a/crates/common/src/scripts/plugins/text.rs b/crates/common/src/scripts/plugins/text.rs index 8426c7a1..596e988b 100644 --- a/crates/common/src/scripts/plugins/text.rs +++ b/crates/common/src/scripts/plugins/text.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level store of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use nlp::tokenizers::types::{TokenType, TypesTokenizer}; use sieve::{runtime::Variable, FunctionMap}; diff --git a/crates/common/src/webhooks/collector.rs b/crates/common/src/webhooks/collector.rs index 916db121..889da8ad 100644 --- a/crates/common/src/webhooks/collector.rs +++ b/crates/common/src/webhooks/collector.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/common/src/webhooks/manager.rs b/crates/common/src/webhooks/manager.rs index 063c79fc..756474ea 100644 --- a/crates/common/src/webhooks/manager.rs +++ b/crates/common/src/webhooks/manager.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ sync::Arc, diff --git a/crates/common/src/webhooks/mod.rs b/crates/common/src/webhooks/mod.rs index 77fe8cec..9c5944c7 100644 --- a/crates/common/src/webhooks/mod.rs +++ b/crates/common/src/webhooks/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{net::IpAddr, sync::Arc, time::Duration}; diff --git a/crates/directory/src/backend/imap/client.rs b/crates/directory/src/backend/imap/client.rs index 0ff98369..f3738489 100644 --- a/crates/directory/src/backend/imap/client.rs +++ b/crates/directory/src/backend/imap/client.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_send::Credentials; use smtp_proto::{ diff --git a/crates/directory/src/backend/imap/config.rs b/crates/directory/src/backend/imap/config.rs index 4a88f9de..96827ea6 100644 --- a/crates/directory/src/backend/imap/config.rs +++ b/crates/directory/src/backend/imap/config.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/directory/src/backend/imap/lookup.rs b/crates/directory/src/backend/imap/lookup.rs index d82ec914..e900df2d 100644 --- a/crates/directory/src/backend/imap/lookup.rs +++ b/crates/directory/src/backend/imap/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_send::Credentials; use smtp_proto::{AUTH_CRAM_MD5, AUTH_LOGIN, AUTH_OAUTHBEARER, AUTH_PLAIN, AUTH_XOAUTH2}; diff --git a/crates/directory/src/backend/imap/mod.rs b/crates/directory/src/backend/imap/mod.rs index 7556bab7..9fdf61e5 100644 --- a/crates/directory/src/backend/imap/mod.rs +++ b/crates/directory/src/backend/imap/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod client; pub mod config; diff --git a/crates/directory/src/backend/imap/pool.rs b/crates/directory/src/backend/imap/pool.rs index deb60fc2..927da682 100644 --- a/crates/directory/src/backend/imap/pool.rs +++ b/crates/directory/src/backend/imap/pool.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::atomic::Ordering; diff --git a/crates/directory/src/backend/imap/tls.rs b/crates/directory/src/backend/imap/tls.rs index cba300d4..f2d0b427 100644 --- a/crates/directory/src/backend/imap/tls.rs +++ b/crates/directory/src/backend/imap/tls.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/directory/src/backend/internal/lookup.rs b/crates/directory/src/backend/internal/lookup.rs index 72621331..defdc30e 100644 --- a/crates/directory/src/backend/internal/lookup.rs +++ b/crates/directory/src/backend/internal/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_send::Credentials; use store::{ diff --git a/crates/directory/src/backend/internal/manage.rs b/crates/directory/src/backend/internal/manage.rs index 160d91e1..9588c91e 100644 --- a/crates/directory/src/backend/internal/manage.rs +++ b/crates/directory/src/backend/internal/manage.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::types::collection::Collection; use store::{ diff --git a/crates/directory/src/backend/internal/mod.rs b/crates/directory/src/backend/internal/mod.rs index 2fed4d33..b708a1b5 100644 --- a/crates/directory/src/backend/internal/mod.rs +++ b/crates/directory/src/backend/internal/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod lookup; pub mod manage; diff --git a/crates/directory/src/backend/ldap/config.rs b/crates/directory/src/backend/ldap/config.rs index f27deb79..8381856c 100644 --- a/crates/directory/src/backend/ldap/config.rs +++ b/crates/directory/src/backend/ldap/config.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/directory/src/backend/ldap/lookup.rs b/crates/directory/src/backend/ldap/lookup.rs index 957b418c..d46ff631 100644 --- a/crates/directory/src/backend/ldap/lookup.rs +++ b/crates/directory/src/backend/ldap/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ldap3::{Ldap, LdapConnAsync, LdapError, Scope, SearchEntry}; use mail_send::Credentials; diff --git a/crates/directory/src/backend/ldap/mod.rs b/crates/directory/src/backend/ldap/mod.rs index 5a2be0f3..1ab52826 100644 --- a/crates/directory/src/backend/ldap/mod.rs +++ b/crates/directory/src/backend/ldap/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use deadpool::managed::Pool; use ldap3::{ldap_escape, LdapConnSettings}; diff --git a/crates/directory/src/backend/ldap/pool.rs b/crates/directory/src/backend/ldap/pool.rs index 4cc52978..7e55fa40 100644 --- a/crates/directory/src/backend/ldap/pool.rs +++ b/crates/directory/src/backend/ldap/pool.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use async_trait::async_trait; use deadpool::managed; diff --git a/crates/directory/src/backend/memory/config.rs b/crates/directory/src/backend/memory/config.rs index 44e2a64e..d3df6d86 100644 --- a/crates/directory/src/backend/memory/config.rs +++ b/crates/directory/src/backend/memory/config.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use store::Store; use utils::config::{utils::AsKey, Config}; diff --git a/crates/directory/src/backend/memory/lookup.rs b/crates/directory/src/backend/memory/lookup.rs index eb2bd398..6109bacd 100644 --- a/crates/directory/src/backend/memory/lookup.rs +++ b/crates/directory/src/backend/memory/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_send::Credentials; diff --git a/crates/directory/src/backend/memory/mod.rs b/crates/directory/src/backend/memory/mod.rs index 97e8ceff..fde9160b 100644 --- a/crates/directory/src/backend/memory/mod.rs +++ b/crates/directory/src/backend/memory/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::{AHashMap, AHashSet}; use store::Store; diff --git a/crates/directory/src/backend/mod.rs b/crates/directory/src/backend/mod.rs index f0388b1b..7355355f 100644 --- a/crates/directory/src/backend/mod.rs +++ b/crates/directory/src/backend/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod imap; pub mod internal; diff --git a/crates/directory/src/backend/smtp/config.rs b/crates/directory/src/backend/smtp/config.rs index 48072628..d5248f76 100644 --- a/crates/directory/src/backend/smtp/config.rs +++ b/crates/directory/src/backend/smtp/config.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/directory/src/backend/smtp/lookup.rs b/crates/directory/src/backend/smtp/lookup.rs index a6c25e17..e1a15663 100644 --- a/crates/directory/src/backend/smtp/lookup.rs +++ b/crates/directory/src/backend/smtp/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_send::{smtp::AssertReply, Credentials}; use smtp_proto::Severity; diff --git a/crates/directory/src/backend/smtp/mod.rs b/crates/directory/src/backend/smtp/mod.rs index 2e10833e..7d37527a 100644 --- a/crates/directory/src/backend/smtp/mod.rs +++ b/crates/directory/src/backend/smtp/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod config; pub mod lookup; diff --git a/crates/directory/src/backend/smtp/pool.rs b/crates/directory/src/backend/smtp/pool.rs index 34ef0ddb..c2bdf5a7 100644 --- a/crates/directory/src/backend/smtp/pool.rs +++ b/crates/directory/src/backend/smtp/pool.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use async_trait::async_trait; use deadpool::managed; diff --git a/crates/directory/src/backend/sql/config.rs b/crates/directory/src/backend/sql/config.rs index d2273766..a8295fe3 100644 --- a/crates/directory/src/backend/sql/config.rs +++ b/crates/directory/src/backend/sql/config.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use store::{Store, Stores}; use utils::config::{utils::AsKey, Config}; diff --git a/crates/directory/src/backend/sql/lookup.rs b/crates/directory/src/backend/sql/lookup.rs index 4a96f543..bb0e6f03 100644 --- a/crates/directory/src/backend/sql/lookup.rs +++ b/crates/directory/src/backend/sql/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_send::Credentials; use store::{NamedRows, Rows, Value}; diff --git a/crates/directory/src/backend/sql/mod.rs b/crates/directory/src/backend/sql/mod.rs index d3f169f5..1faf3c7e 100644 --- a/crates/directory/src/backend/sql/mod.rs +++ b/crates/directory/src/backend/sql/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use store::{LookupStore, Store}; diff --git a/crates/directory/src/core/cache.rs b/crates/directory/src/core/cache.rs index fc1c218b..2e4219cb 100644 --- a/crates/directory/src/core/cache.rs +++ b/crates/directory/src/core/cache.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ borrow::Borrow, diff --git a/crates/directory/src/core/config.rs b/crates/directory/src/core/config.rs index 6e579d34..a73698cd 100644 --- a/crates/directory/src/core/config.rs +++ b/crates/directory/src/core/config.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use deadpool::{ managed::{Manager, Pool}, diff --git a/crates/directory/src/core/dispatch.rs b/crates/directory/src/core/dispatch.rs index d5478215..cb8d65ce 100644 --- a/crates/directory/src/core/dispatch.rs +++ b/crates/directory/src/core/dispatch.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ backend::internal::lookup::DirectoryStore, Directory, DirectoryInner, Principal, QueryBy, diff --git a/crates/directory/src/core/mod.rs b/crates/directory/src/core/mod.rs index 683aa978..ae094f1e 100644 --- a/crates/directory/src/core/mod.rs +++ b/crates/directory/src/core/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod cache; pub mod config; diff --git a/crates/directory/src/core/secret.rs b/crates/directory/src/core/secret.rs index 05bf27c6..ef017620 100644 --- a/crates/directory/src/core/secret.rs +++ b/crates/directory/src/core/secret.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use argon2::Argon2; use mail_builder::encoders::base64::base64_encode; diff --git a/crates/directory/src/lib.rs b/crates/directory/src/lib.rs index b59e1472..60c80358 100644 --- a/crates/directory/src/lib.rs +++ b/crates/directory/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use core::cache::CachedDirectory; use std::{ diff --git a/crates/enterprise/Cargo.toml b/crates/enterprise/Cargo.toml new file mode 100644 index 00000000..5aa0dd83 --- /dev/null +++ b/crates/enterprise/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "enterprise" +version = "0.8.2" +edition = "2021" +license = "LicenseRef-SEL" +resolver = "2" + +[dependencies] +base64 = "0.22.1" +ring = "0.17.8" + +[features] +test_mode = [] diff --git a/crates/enterprise/src/lib.rs b/crates/enterprise/src/lib.rs new file mode 100644 index 00000000..c1c8295e --- /dev/null +++ b/crates/enterprise/src/lib.rs @@ -0,0 +1,7 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: LicenseRef-SCL + */ + +pub mod license; diff --git a/crates/enterprise/src/license.rs b/crates/enterprise/src/license.rs new file mode 100644 index 00000000..1a98d3f7 --- /dev/null +++ b/crates/enterprise/src/license.rs @@ -0,0 +1,166 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: LicenseRef-SCL + */ + +use std::time::SystemTime; + +use ring::signature::{Ed25519KeyPair, UnparsedPublicKey, ED25519}; + +use base64::{engine::general_purpose::STANDARD, Engine}; + +pub struct LicenseValidator { + pub public_key: UnparsedPublicKey>, +} + +pub struct LicenseGenerator { + key_pair: Ed25519KeyPair, +} + +#[derive(Debug)] +pub struct LicenseKey { + pub valid_to: u64, + pub valid_from: u64, + pub domain: String, + pub accounts: u32, +} + +#[derive(Debug)] +pub enum LicenseError { + Expired, + Parse, + Validation, + Decode, + Invalid, +} + +const U64_LEN: usize = std::mem::size_of::(); +const U32_LEN: usize = std::mem::size_of::(); + +impl LicenseValidator { + #[allow(clippy::new_without_default)] + pub fn new() -> Self { + LicenseValidator { + public_key: UnparsedPublicKey::new( + &ED25519, + vec![ + 118, 10, 182, 35, 89, 111, 11, 60, 154, 47, 205, 127, 107, 229, 55, 104, 72, + 54, 141, 14, 97, 219, 2, 4, 119, 143, 156, 10, 152, 216, 32, 194, + ], + ), + } + } + + pub fn validate(&self, key: impl AsRef) -> Result { + let key = STANDARD + .decode(key.as_ref()) + .map_err(|_| LicenseError::Decode)?; + let valid_from = u64::from_le_bytes( + key.get(..U64_LEN) + .ok_or(LicenseError::Parse)? + .try_into() + .unwrap(), + ); + let valid_to = u64::from_le_bytes( + key.get(U64_LEN..(U64_LEN * 2)) + .ok_or(LicenseError::Parse)? + .try_into() + .unwrap(), + ); + let accounts = u32::from_le_bytes( + key.get((U64_LEN * 2)..(U64_LEN * 2) + U32_LEN) + .ok_or(LicenseError::Parse)? + .try_into() + .unwrap(), + ); + let domain_len = u32::from_le_bytes( + key.get((U64_LEN * 2) + U32_LEN..(U64_LEN * 2) + (U32_LEN * 2)) + .ok_or(LicenseError::Parse)? + .try_into() + .unwrap(), + ) as usize; + let domain = String::from_utf8( + key.get((U64_LEN * 2) + (U32_LEN * 2)..(U64_LEN * 2) + (U32_LEN * 2) + domain_len) + .ok_or(LicenseError::Parse)? + .to_vec(), + ) + .map_err(|_| LicenseError::Parse)?; + let signature = key + .get((U64_LEN * 2) + (U32_LEN * 2) + domain_len..) + .ok_or(LicenseError::Parse)?; + + if valid_from == 0 + || valid_to == 0 + || valid_from >= valid_to + || accounts == 0 + || domain.is_empty() + { + return Err(LicenseError::Invalid); + } + + // Validate signature + self.public_key + .verify( + &key[..(U64_LEN * 2) + (U32_LEN * 2) + domain_len], + signature, + ) + .map_err(|_| LicenseError::Validation)?; + + let key = LicenseKey { + valid_from, + valid_to, + domain, + accounts, + }; + + if !key.is_expired() { + Ok(key) + } else { + Err(LicenseError::Expired) + } + } +} + +impl LicenseKey { + pub fn new(domain: String, accounts: u32, expires_in: u64) -> Self { + let now = SystemTime::UNIX_EPOCH + .elapsed() + .unwrap_or_default() + .as_secs(); + LicenseKey { + valid_from: now - 300, + valid_to: now + expires_in + 300, + domain, + accounts, + } + } + + pub fn is_expired(&self) -> bool { + let now = SystemTime::UNIX_EPOCH + .elapsed() + .unwrap_or_default() + .as_secs(); + + now >= self.valid_to || now < self.valid_from + } +} + +impl LicenseGenerator { + pub fn new(pkcs8_der: impl AsRef<[u8]>) -> Self { + Self { + key_pair: Ed25519KeyPair::from_pkcs8(pkcs8_der.as_ref()).unwrap(), + } + } + + pub fn generate(&self, key: LicenseKey) -> String { + let mut bytes = Vec::new(); + bytes.extend_from_slice(&key.valid_from.to_le_bytes()); + bytes.extend_from_slice(&key.valid_to.to_le_bytes()); + bytes.extend_from_slice(&key.accounts.to_le_bytes()); + bytes.extend_from_slice(&(key.domain.len() as u32).to_le_bytes()); + bytes.extend_from_slice(key.domain.as_bytes()); + bytes.extend_from_slice(self.key_pair.sign(&bytes).as_ref()); + STANDARD.encode(&bytes) + } +} diff --git a/crates/imap-proto/src/lib.rs b/crates/imap-proto/src/lib.rs index b051a42b..10322047 100644 --- a/crates/imap-proto/src/lib.rs +++ b/crates/imap-proto/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/imap-proto/src/parser/acl.rs b/crates/imap-proto/src/parser/acl.rs index 08390f4d..4dc078cb 100644 --- a/crates/imap-proto/src/parser/acl.rs +++ b/crates/imap-proto/src/parser/acl.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{ diff --git a/crates/imap-proto/src/parser/append.rs b/crates/imap-proto/src/parser/append.rs index 7ba1fc40..24f6103a 100644 --- a/crates/imap-proto/src/parser/append.rs +++ b/crates/imap-proto/src/parser/append.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{ diff --git a/crates/imap-proto/src/parser/authenticate.rs b/crates/imap-proto/src/parser/authenticate.rs index da542910..3cd61ba8 100644 --- a/crates/imap-proto/src/parser/authenticate.rs +++ b/crates/imap-proto/src/parser/authenticate.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::authenticate::{self, Mechanism}, diff --git a/crates/imap-proto/src/parser/copy_move.rs b/crates/imap-proto/src/parser/copy_move.rs index 46fb2562..f21fe628 100644 --- a/crates/imap-proto/src/parser/copy_move.rs +++ b/crates/imap-proto/src/parser/copy_move.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{copy_move, ProtocolVersion}, diff --git a/crates/imap-proto/src/parser/create.rs b/crates/imap-proto/src/parser/create.rs index 19f46a88..0885b97c 100644 --- a/crates/imap-proto/src/parser/create.rs +++ b/crates/imap-proto/src/parser/create.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{create, ProtocolVersion}, diff --git a/crates/imap-proto/src/parser/delete.rs b/crates/imap-proto/src/parser/delete.rs index ac5f3d72..ad01f834 100644 --- a/crates/imap-proto/src/parser/delete.rs +++ b/crates/imap-proto/src/parser/delete.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{delete, ProtocolVersion}, diff --git a/crates/imap-proto/src/parser/enable.rs b/crates/imap-proto/src/parser/enable.rs index 56dd2ff2..30f8c1be 100644 --- a/crates/imap-proto/src/parser/enable.rs +++ b/crates/imap-proto/src/parser/enable.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{capability::Capability, enable}, diff --git a/crates/imap-proto/src/parser/fetch.rs b/crates/imap-proto/src/parser/fetch.rs index 2e43be16..5062a4b3 100644 --- a/crates/imap-proto/src/parser/fetch.rs +++ b/crates/imap-proto/src/parser/fetch.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; use std::iter::Peekable; diff --git a/crates/imap-proto/src/parser/list.rs b/crates/imap-proto/src/parser/list.rs index 49425c65..87150984 100644 --- a/crates/imap-proto/src/parser/list.rs +++ b/crates/imap-proto/src/parser/list.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{ diff --git a/crates/imap-proto/src/parser/login.rs b/crates/imap-proto/src/parser/login.rs index 152d66f3..691ca206 100644 --- a/crates/imap-proto/src/parser/login.rs +++ b/crates/imap-proto/src/parser/login.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{protocol::login, receiver::Request, Command}; diff --git a/crates/imap-proto/src/parser/lsub.rs b/crates/imap-proto/src/parser/lsub.rs index 2b054585..e9b86e3d 100644 --- a/crates/imap-proto/src/parser/lsub.rs +++ b/crates/imap-proto/src/parser/lsub.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{ diff --git a/crates/imap-proto/src/parser/mod.rs b/crates/imap-proto/src/parser/mod.rs index 61bf00f5..5272e6f0 100644 --- a/crates/imap-proto/src/parser/mod.rs +++ b/crates/imap-proto/src/parser/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod acl; pub mod append; diff --git a/crates/imap-proto/src/parser/rename.rs b/crates/imap-proto/src/parser/rename.rs index 75992a82..1dd364b4 100644 --- a/crates/imap-proto/src/parser/rename.rs +++ b/crates/imap-proto/src/parser/rename.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{rename, ProtocolVersion}, diff --git a/crates/imap-proto/src/parser/search.rs b/crates/imap-proto/src/parser/search.rs index 87651554..5e6f0040 100644 --- a/crates/imap-proto/src/parser/search.rs +++ b/crates/imap-proto/src/parser/search.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; use std::iter::Peekable; diff --git a/crates/imap-proto/src/parser/select.rs b/crates/imap-proto/src/parser/select.rs index c5f4a8b1..57c714e8 100644 --- a/crates/imap-proto/src/parser/select.rs +++ b/crates/imap-proto/src/parser/select.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{ diff --git a/crates/imap-proto/src/parser/sort.rs b/crates/imap-proto/src/parser/sort.rs index 67da6474..382a24ef 100644 --- a/crates/imap-proto/src/parser/sort.rs +++ b/crates/imap-proto/src/parser/sort.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_parser::decoders::charsets::map::charset_decoder; diff --git a/crates/imap-proto/src/parser/status.rs b/crates/imap-proto/src/parser/status.rs index b5b7faac..41acb9ed 100644 --- a/crates/imap-proto/src/parser/status.rs +++ b/crates/imap-proto/src/parser/status.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::protocol::status::Status; use crate::protocol::{status, ProtocolVersion}; diff --git a/crates/imap-proto/src/parser/store.rs b/crates/imap-proto/src/parser/store.rs index 968953f0..9a4f39a9 100644 --- a/crates/imap-proto/src/parser/store.rs +++ b/crates/imap-proto/src/parser/store.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/imap-proto/src/parser/subscribe.rs b/crates/imap-proto/src/parser/subscribe.rs index 5a494b49..e3a93777 100644 --- a/crates/imap-proto/src/parser/subscribe.rs +++ b/crates/imap-proto/src/parser/subscribe.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ protocol::{subscribe, ProtocolVersion}, diff --git a/crates/imap-proto/src/parser/thread.rs b/crates/imap-proto/src/parser/thread.rs index b90083ea..9a8b9548 100644 --- a/crates/imap-proto/src/parser/thread.rs +++ b/crates/imap-proto/src/parser/thread.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_parser::decoders::charsets::map::charset_decoder; diff --git a/crates/imap-proto/src/protocol/acl.rs b/crates/imap-proto/src/protocol/acl.rs index d75cf8f4..2fbff2a3 100644 --- a/crates/imap-proto/src/protocol/acl.rs +++ b/crates/imap-proto/src/protocol/acl.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ /* diff --git a/crates/imap-proto/src/protocol/append.rs b/crates/imap-proto/src/protocol/append.rs index 62db2953..24f13bdf 100644 --- a/crates/imap-proto/src/protocol/append.rs +++ b/crates/imap-proto/src/protocol/append.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::Flag; diff --git a/crates/imap-proto/src/protocol/authenticate.rs b/crates/imap-proto/src/protocol/authenticate.rs index 9eab8178..8be74653 100644 --- a/crates/imap-proto/src/protocol/authenticate.rs +++ b/crates/imap-proto/src/protocol/authenticate.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ #[derive(Debug, Clone, PartialEq, Eq)] pub struct Arguments { diff --git a/crates/imap-proto/src/protocol/capability.rs b/crates/imap-proto/src/protocol/capability.rs index ef2cb297..c73be683 100644 --- a/crates/imap-proto/src/protocol/capability.rs +++ b/crates/imap-proto/src/protocol/capability.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{authenticate::Mechanism, ImapResponse}; diff --git a/crates/imap-proto/src/protocol/copy_move.rs b/crates/imap-proto/src/protocol/copy_move.rs index d2f718d4..669af0ac 100644 --- a/crates/imap-proto/src/protocol/copy_move.rs +++ b/crates/imap-proto/src/protocol/copy_move.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::Sequence; diff --git a/crates/imap-proto/src/protocol/create.rs b/crates/imap-proto/src/protocol/create.rs index ea9cc4f1..dad0ce97 100644 --- a/crates/imap-proto/src/protocol/create.rs +++ b/crates/imap-proto/src/protocol/create.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ #[derive(Debug, Clone, PartialEq, Eq)] pub struct Arguments { diff --git a/crates/imap-proto/src/protocol/delete.rs b/crates/imap-proto/src/protocol/delete.rs index 5e14eb15..8cbd6e32 100644 --- a/crates/imap-proto/src/protocol/delete.rs +++ b/crates/imap-proto/src/protocol/delete.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ #[derive(Debug, Clone, PartialEq, Eq)] pub struct Arguments { diff --git a/crates/imap-proto/src/protocol/enable.rs b/crates/imap-proto/src/protocol/enable.rs index 990639e4..b6f79fc1 100644 --- a/crates/imap-proto/src/protocol/enable.rs +++ b/crates/imap-proto/src/protocol/enable.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{capability::Capability, ImapResponse}; diff --git a/crates/imap-proto/src/protocol/expunge.rs b/crates/imap-proto/src/protocol/expunge.rs index 6f60b149..301f1c45 100644 --- a/crates/imap-proto/src/protocol/expunge.rs +++ b/crates/imap-proto/src/protocol/expunge.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{serialize_sequence, ImapResponse}; diff --git a/crates/imap-proto/src/protocol/fetch.rs b/crates/imap-proto/src/protocol/fetch.rs index 61f2930d..e8b397a8 100644 --- a/crates/imap-proto/src/protocol/fetch.rs +++ b/crates/imap-proto/src/protocol/fetch.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/imap-proto/src/protocol/list.rs b/crates/imap-proto/src/protocol/list.rs index b04d073f..8bfe7e88 100644 --- a/crates/imap-proto/src/protocol/list.rs +++ b/crates/imap-proto/src/protocol/list.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::utf7::utf7_encode; diff --git a/crates/imap-proto/src/protocol/login.rs b/crates/imap-proto/src/protocol/login.rs index e323a150..84c92c1a 100644 --- a/crates/imap-proto/src/protocol/login.rs +++ b/crates/imap-proto/src/protocol/login.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ #[derive(Debug, Clone, PartialEq, Eq)] pub struct Arguments { diff --git a/crates/imap-proto/src/protocol/mod.rs b/crates/imap-proto/src/protocol/mod.rs index da498ac6..ee29d065 100644 --- a/crates/imap-proto/src/protocol/mod.rs +++ b/crates/imap-proto/src/protocol/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{cmp::Ordering, fmt::Display}; diff --git a/crates/imap-proto/src/protocol/namespace.rs b/crates/imap-proto/src/protocol/namespace.rs index b5138383..b0502412 100644 --- a/crates/imap-proto/src/protocol/namespace.rs +++ b/crates/imap-proto/src/protocol/namespace.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{quoted_string, ImapResponse}; diff --git a/crates/imap-proto/src/protocol/rename.rs b/crates/imap-proto/src/protocol/rename.rs index bd89917d..26e139ea 100644 --- a/crates/imap-proto/src/protocol/rename.rs +++ b/crates/imap-proto/src/protocol/rename.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ #[derive(Debug, Clone, PartialEq, Eq)] pub struct Arguments { diff --git a/crates/imap-proto/src/protocol/search.rs b/crates/imap-proto/src/protocol/search.rs index 01d5b57a..2a2b0026 100644 --- a/crates/imap-proto/src/protocol/search.rs +++ b/crates/imap-proto/src/protocol/search.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use store::fts::{FilterItem, FilterType}; diff --git a/crates/imap-proto/src/protocol/select.rs b/crates/imap-proto/src/protocol/select.rs index 3da1c859..90b9c35a 100644 --- a/crates/imap-proto/src/protocol/select.rs +++ b/crates/imap-proto/src/protocol/select.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ResponseCode, StatusResponse}; diff --git a/crates/imap-proto/src/protocol/status.rs b/crates/imap-proto/src/protocol/status.rs index c78a143e..6d0f204c 100644 --- a/crates/imap-proto/src/protocol/status.rs +++ b/crates/imap-proto/src/protocol/status.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::utf7::utf7_encode; diff --git a/crates/imap-proto/src/protocol/store.rs b/crates/imap-proto/src/protocol/store.rs index aab5fbe8..0371f81c 100644 --- a/crates/imap-proto/src/protocol/store.rs +++ b/crates/imap-proto/src/protocol/store.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{fetch::FetchItem, Flag, ImapResponse, Sequence}; diff --git a/crates/imap-proto/src/protocol/subscribe.rs b/crates/imap-proto/src/protocol/subscribe.rs index 5e14eb15..8cbd6e32 100644 --- a/crates/imap-proto/src/protocol/subscribe.rs +++ b/crates/imap-proto/src/protocol/subscribe.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ #[derive(Debug, Clone, PartialEq, Eq)] pub struct Arguments { diff --git a/crates/imap-proto/src/protocol/thread.rs b/crates/imap-proto/src/protocol/thread.rs index 9c5a958c..d7822858 100644 --- a/crates/imap-proto/src/protocol/thread.rs +++ b/crates/imap-proto/src/protocol/thread.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{search::Filter, ImapResponse}; diff --git a/crates/imap-proto/src/receiver.rs b/crates/imap-proto/src/receiver.rs index 434c9d57..6115a52d 100644 --- a/crates/imap-proto/src/receiver.rs +++ b/crates/imap-proto/src/receiver.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, fmt::Display}; diff --git a/crates/imap-proto/src/utf7.rs b/crates/imap-proto/src/utf7.rs index 8c837361..0524e7f5 100644 --- a/crates/imap-proto/src/utf7.rs +++ b/crates/imap-proto/src/utf7.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ // Ported from https://github.com/jstedfast/MailKit/blob/master/MailKit/Net/Imap/ImapEncoding.cs // Author: Jeffrey Stedfast diff --git a/crates/imap/src/core/client.rs b/crates/imap/src/core/client.rs index ccf9ca61..1e2f022e 100644 --- a/crates/imap/src/core/client.rs +++ b/crates/imap/src/core/client.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{iter::Peekable, sync::Arc, vec::IntoIter}; diff --git a/crates/imap/src/core/message.rs b/crates/imap/src/core/message.rs index 2687884d..a98823d1 100644 --- a/crates/imap/src/core/message.rs +++ b/crates/imap/src/core/message.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{collections::BTreeMap, sync::Arc}; diff --git a/crates/imap/src/core/mod.rs b/crates/imap/src/core/mod.rs index 6fc5248d..29f26f63 100644 --- a/crates/imap/src/core/mod.rs +++ b/crates/imap/src/core/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::BTreeMap, diff --git a/crates/imap/src/core/session.rs b/crates/imap/src/core/session.rs index 783dce9e..dc348a2b 100644 --- a/crates/imap/src/core/session.rs +++ b/crates/imap/src/core/session.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/core/writer.rs b/crates/imap/src/core/writer.rs index eeb7f308..29483fe5 100644 --- a/crates/imap/src/core/writer.rs +++ b/crates/imap/src/core/writer.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/imap/src/lib.rs b/crates/imap/src/lib.rs index bad28308..4f14f2a5 100644 --- a/crates/imap/src/lib.rs +++ b/crates/imap/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use core::{ImapInstance, Inner, IMAP}; use std::{collections::hash_map::RandomState, sync::Arc}; diff --git a/crates/imap/src/op/acl.rs b/crates/imap/src/op/acl.rs index 13ea71fc..5e210513 100644 --- a/crates/imap/src/op/acl.rs +++ b/crates/imap/src/op/acl.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/op/append.rs b/crates/imap/src/op/append.rs index ccfaee1e..55333a06 100644 --- a/crates/imap/src/op/append.rs +++ b/crates/imap/src/op/append.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/op/authenticate.rs b/crates/imap/src/op/authenticate.rs index a300dac2..cafcc615 100644 --- a/crates/imap/src/op/authenticate.rs +++ b/crates/imap/src/op/authenticate.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{config::server::ServerProtocol, listener::SessionStream, AuthResult}; use imap_proto::{ diff --git a/crates/imap/src/op/capability.rs b/crates/imap/src/op/capability.rs index 034d4011..6445c54c 100644 --- a/crates/imap/src/op/capability.rs +++ b/crates/imap/src/op/capability.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::Session; use common::listener::SessionStream; diff --git a/crates/imap/src/op/close.rs b/crates/imap/src/op/close.rs index e62a850d..c858f0b3 100644 --- a/crates/imap/src/op/close.rs +++ b/crates/imap/src/op/close.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::{Session, State}; use common::listener::SessionStream; diff --git a/crates/imap/src/op/copy_move.rs b/crates/imap/src/op/copy_move.rs index cb3d1fac..6cffde99 100644 --- a/crates/imap/src/op/copy_move.rs +++ b/crates/imap/src/op/copy_move.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/op/create.rs b/crates/imap/src/op/create.rs index f8545282..e7e4f552 100644 --- a/crates/imap/src/op/create.rs +++ b/crates/imap/src/op/create.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::{Account, Mailbox, Session, SessionData}; use common::listener::SessionStream; diff --git a/crates/imap/src/op/delete.rs b/crates/imap/src/op/delete.rs index 01b90377..508bf22b 100644 --- a/crates/imap/src/op/delete.rs +++ b/crates/imap/src/op/delete.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::{Session, SessionData}; use common::listener::SessionStream; diff --git a/crates/imap/src/op/enable.rs b/crates/imap/src/op/enable.rs index 43ba4e7c..53169a9f 100644 --- a/crates/imap/src/op/enable.rs +++ b/crates/imap/src/op/enable.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::Session; use common::listener::SessionStream; diff --git a/crates/imap/src/op/expunge.rs b/crates/imap/src/op/expunge.rs index 498b59d0..39f445c6 100644 --- a/crates/imap/src/op/expunge.rs +++ b/crates/imap/src/op/expunge.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/op/fetch.rs b/crates/imap/src/op/fetch.rs index ccf3d47c..2aef9b31 100644 --- a/crates/imap/src/op/fetch.rs +++ b/crates/imap/src/op/fetch.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, sync::Arc}; diff --git a/crates/imap/src/op/idle.rs b/crates/imap/src/op/idle.rs index 80c46a58..0552dc27 100644 --- a/crates/imap/src/op/idle.rs +++ b/crates/imap/src/op/idle.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/op/list.rs b/crates/imap/src/op/list.rs index 7de2d140..afea98e4 100644 --- a/crates/imap/src/op/list.rs +++ b/crates/imap/src/op/list.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::{Session, SessionData}; use common::listener::SessionStream; diff --git a/crates/imap/src/op/login.rs b/crates/imap/src/op/login.rs index 6c32939a..4bf62127 100644 --- a/crates/imap/src/op/login.rs +++ b/crates/imap/src/op/login.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::{receiver::Request, Command}; diff --git a/crates/imap/src/op/logout.rs b/crates/imap/src/op/logout.rs index 9af4663c..afc79712 100644 --- a/crates/imap/src/op/logout.rs +++ b/crates/imap/src/op/logout.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::Session; use common::listener::SessionStream; diff --git a/crates/imap/src/op/mod.rs b/crates/imap/src/op/mod.rs index e4017eb1..5070a478 100644 --- a/crates/imap/src/op/mod.rs +++ b/crates/imap/src/op/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ::store::query::log::Query; use imap_proto::StatusResponse; diff --git a/crates/imap/src/op/namespace.rs b/crates/imap/src/op/namespace.rs index 56bbba38..63268ef0 100644 --- a/crates/imap/src/op/namespace.rs +++ b/crates/imap/src/op/namespace.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::Session; use common::listener::SessionStream; diff --git a/crates/imap/src/op/noop.rs b/crates/imap/src/op/noop.rs index 61cf509a..415de232 100644 --- a/crates/imap/src/op/noop.rs +++ b/crates/imap/src/op/noop.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::{Session, State}; use common::listener::SessionStream; diff --git a/crates/imap/src/op/rename.rs b/crates/imap/src/op/rename.rs index da7d481c..68e5a86d 100644 --- a/crates/imap/src/op/rename.rs +++ b/crates/imap/src/op/rename.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::BTreeMap; diff --git a/crates/imap/src/op/search.rs b/crates/imap/src/op/search.rs index 8d539a7c..14e54a9e 100644 --- a/crates/imap/src/op/search.rs +++ b/crates/imap/src/op/search.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/op/select.rs b/crates/imap/src/op/select.rs index 5e972ab0..87d2b77b 100644 --- a/crates/imap/src/op/select.rs +++ b/crates/imap/src/op/select.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/op/status.rs b/crates/imap/src/op/status.rs index 75274bda..a781beca 100644 --- a/crates/imap/src/op/status.rs +++ b/crates/imap/src/op/status.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/op/store.rs b/crates/imap/src/op/store.rs index eba56e0e..56a499ec 100644 --- a/crates/imap/src/op/store.rs +++ b/crates/imap/src/op/store.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/imap/src/op/subscribe.rs b/crates/imap/src/op/subscribe.rs index ccab91e2..771abdcc 100644 --- a/crates/imap/src/op/subscribe.rs +++ b/crates/imap/src/op/subscribe.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::{Session, SessionData}; use common::listener::SessionStream; diff --git a/crates/imap/src/op/thread.rs b/crates/imap/src/op/thread.rs index dcbfb9ed..68fe4ce7 100644 --- a/crates/imap/src/op/thread.rs +++ b/crates/imap/src/op/thread.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/jmap-proto/src/error/method.rs b/crates/jmap-proto/src/error/method.rs index 97af70af..14785b11 100644 --- a/crates/jmap-proto/src/error/method.rs +++ b/crates/jmap-proto/src/error/method.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/error/mod.rs b/crates/jmap-proto/src/error/mod.rs index 82fd7d99..4b3034b0 100644 --- a/crates/jmap-proto/src/error/mod.rs +++ b/crates/jmap-proto/src/error/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod method; pub mod request; diff --git a/crates/jmap-proto/src/error/request.rs b/crates/jmap-proto/src/error/request.rs index 54540acf..82e7a1f0 100644 --- a/crates/jmap-proto/src/error/request.rs +++ b/crates/jmap-proto/src/error/request.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, fmt::Display}; diff --git a/crates/jmap-proto/src/error/set.rs b/crates/jmap-proto/src/error/set.rs index 83ee75e0..3b44f2f5 100644 --- a/crates/jmap-proto/src/error/set.rs +++ b/crates/jmap-proto/src/error/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/jmap-proto/src/lib.rs b/crates/jmap-proto/src/lib.rs index 0357faed..55ae0711 100644 --- a/crates/jmap-proto/src/lib.rs +++ b/crates/jmap-proto/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod error; pub mod method; diff --git a/crates/jmap-proto/src/method/changes.rs b/crates/jmap-proto/src/method/changes.rs index 6cb2a181..9993779e 100644 --- a/crates/jmap-proto/src/method/changes.rs +++ b/crates/jmap-proto/src/method/changes.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ error::method::MethodError, diff --git a/crates/jmap-proto/src/method/copy.rs b/crates/jmap-proto/src/method/copy.rs index 59838343..bd0cea63 100644 --- a/crates/jmap-proto/src/method/copy.rs +++ b/crates/jmap-proto/src/method/copy.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use serde::Serialize; use utils::map::vec_map::VecMap; diff --git a/crates/jmap-proto/src/method/get.rs b/crates/jmap-proto/src/method/get.rs index eb3dd7ea..fa23f829 100644 --- a/crates/jmap-proto/src/method/get.rs +++ b/crates/jmap-proto/src/method/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ error::method::MethodError, diff --git a/crates/jmap-proto/src/method/import.rs b/crates/jmap-proto/src/method/import.rs index 591698c8..c13daad5 100644 --- a/crates/jmap-proto/src/method/import.rs +++ b/crates/jmap-proto/src/method/import.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::map::vec_map::VecMap; diff --git a/crates/jmap-proto/src/method/lookup.rs b/crates/jmap-proto/src/method/lookup.rs index 3f01e192..7e823ee6 100644 --- a/crates/jmap-proto/src/method/lookup.rs +++ b/crates/jmap-proto/src/method/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::map::vec_map::VecMap; diff --git a/crates/jmap-proto/src/method/mod.rs b/crates/jmap-proto/src/method/mod.rs index 26e8e228..822db147 100644 --- a/crates/jmap-proto/src/method/mod.rs +++ b/crates/jmap-proto/src/method/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashMap; diff --git a/crates/jmap-proto/src/method/parse.rs b/crates/jmap-proto/src/method/parse.rs index 26a95166..ca1715fc 100644 --- a/crates/jmap-proto/src/method/parse.rs +++ b/crates/jmap-proto/src/method/parse.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::map::vec_map::VecMap; diff --git a/crates/jmap-proto/src/method/query.rs b/crates/jmap-proto/src/method/query.rs index d32e75f0..8f531d45 100644 --- a/crates/jmap-proto/src/method/query.rs +++ b/crates/jmap-proto/src/method/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/method/query_changes.rs b/crates/jmap-proto/src/method/query_changes.rs index 2af1c470..290321bc 100644 --- a/crates/jmap-proto/src/method/query_changes.rs +++ b/crates/jmap-proto/src/method/query_changes.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ error::method::MethodError, diff --git a/crates/jmap-proto/src/method/search_snippet.rs b/crates/jmap-proto/src/method/search_snippet.rs index 380d7466..e73cd514 100644 --- a/crates/jmap-proto/src/method/search_snippet.rs +++ b/crates/jmap-proto/src/method/search_snippet.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ parser::{json::Parser, Ignore, JsonObjectParser, Token}, diff --git a/crates/jmap-proto/src/method/set.rs b/crates/jmap-proto/src/method/set.rs index 5820cd1e..39f14e83 100644 --- a/crates/jmap-proto/src/method/set.rs +++ b/crates/jmap-proto/src/method/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashMap; use utils::map::{bitmap::Bitmap, vec_map::VecMap}; diff --git a/crates/jmap-proto/src/method/upload.rs b/crates/jmap-proto/src/method/upload.rs index 4c887ab8..25d037f9 100644 --- a/crates/jmap-proto/src/method/upload.rs +++ b/crates/jmap-proto/src/method/upload.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashMap; use mail_parser::decoders::base64::base64_decode; diff --git a/crates/jmap-proto/src/method/validate.rs b/crates/jmap-proto/src/method/validate.rs index 05674b7a..3dcbd405 100644 --- a/crates/jmap-proto/src/method/validate.rs +++ b/crates/jmap-proto/src/method/validate.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use serde::Serialize; diff --git a/crates/jmap-proto/src/object/blob.rs b/crates/jmap-proto/src/object/blob.rs index 75dd89ad..0a44e4bf 100644 --- a/crates/jmap-proto/src/object/blob.rs +++ b/crates/jmap-proto/src/object/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ parser::{json::Parser, Ignore}, diff --git a/crates/jmap-proto/src/object/email.rs b/crates/jmap-proto/src/object/email.rs index bbbf1f27..64661b17 100644 --- a/crates/jmap-proto/src/object/email.rs +++ b/crates/jmap-proto/src/object/email.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ parser::{json::Parser, Ignore, JsonObjectParser}, diff --git a/crates/jmap-proto/src/object/email_submission.rs b/crates/jmap-proto/src/object/email_submission.rs index aa11ff8f..7191a5e5 100644 --- a/crates/jmap-proto/src/object/email_submission.rs +++ b/crates/jmap-proto/src/object/email_submission.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::map::vec_map::VecMap; diff --git a/crates/jmap-proto/src/object/index.rs b/crates/jmap-proto/src/object/index.rs index f404f4a4..cebc6091 100644 --- a/crates/jmap-proto/src/object/index.rs +++ b/crates/jmap-proto/src/object/index.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, collections::HashSet}; diff --git a/crates/jmap-proto/src/object/mailbox.rs b/crates/jmap-proto/src/object/mailbox.rs index c8807c49..ad3e8a4b 100644 --- a/crates/jmap-proto/src/object/mailbox.rs +++ b/crates/jmap-proto/src/object/mailbox.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ parser::{json::Parser, Ignore}, diff --git a/crates/jmap-proto/src/object/mod.rs b/crates/jmap-proto/src/object/mod.rs index fae0c00b..4f333366 100644 --- a/crates/jmap-proto/src/object/mod.rs +++ b/crates/jmap-proto/src/object/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod blob; pub mod email; diff --git a/crates/jmap-proto/src/object/sieve.rs b/crates/jmap-proto/src/object/sieve.rs index f4205273..1f05a7f9 100644 --- a/crates/jmap-proto/src/object/sieve.rs +++ b/crates/jmap-proto/src/object/sieve.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ parser::json::Parser, diff --git a/crates/jmap-proto/src/parser/base32.rs b/crates/jmap-proto/src/parser/base32.rs index 78e98f4b..597d6448 100644 --- a/crates/jmap-proto/src/parser/base32.rs +++ b/crates/jmap-proto/src/parser/base32.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::codec::{base32_custom::BASE32_INVERSE, leb128::Leb128Iterator}; diff --git a/crates/jmap-proto/src/parser/impls.rs b/crates/jmap-proto/src/parser/impls.rs index a793058f..677aaf34 100644 --- a/crates/jmap-proto/src/parser/impls.rs +++ b/crates/jmap-proto/src/parser/impls.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/parser/json.rs b/crates/jmap-proto/src/parser/json.rs index 3a8ed474..ce790e6f 100644 --- a/crates/jmap-proto/src/parser/json.rs +++ b/crates/jmap-proto/src/parser/json.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fmt::Display, iter::Peekable, slice::Iter}; diff --git a/crates/jmap-proto/src/parser/mod.rs b/crates/jmap-proto/src/parser/mod.rs index e1fbfecd..a21133a2 100644 --- a/crates/jmap-proto/src/parser/mod.rs +++ b/crates/jmap-proto/src/parser/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/request/capability.rs b/crates/jmap-proto/src/request/capability.rs index 48bbe9cb..7ec457ef 100644 --- a/crates/jmap-proto/src/request/capability.rs +++ b/crates/jmap-proto/src/request/capability.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::map::vec_map::VecMap; diff --git a/crates/jmap-proto/src/request/echo.rs b/crates/jmap-proto/src/request/echo.rs index 200af56d..b82a4d86 100644 --- a/crates/jmap-proto/src/request/echo.rs +++ b/crates/jmap-proto/src/request/echo.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use serde_json::value::RawValue; use std::fmt::Write; diff --git a/crates/jmap-proto/src/request/method.rs b/crates/jmap-proto/src/request/method.rs index e3c67011..b9b51594 100644 --- a/crates/jmap-proto/src/request/method.rs +++ b/crates/jmap-proto/src/request/method.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/request/mod.rs b/crates/jmap-proto/src/request/mod.rs index b25b1cff..0afa8451 100644 --- a/crates/jmap-proto/src/request/mod.rs +++ b/crates/jmap-proto/src/request/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod capability; pub mod echo; diff --git a/crates/jmap-proto/src/request/parser.rs b/crates/jmap-proto/src/request/parser.rs index a43803e4..3f62d523 100644 --- a/crates/jmap-proto/src/request/parser.rs +++ b/crates/jmap-proto/src/request/parser.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::HashMap; diff --git a/crates/jmap-proto/src/request/reference.rs b/crates/jmap-proto/src/request/reference.rs index 3f856080..62ca66ba 100644 --- a/crates/jmap-proto/src/request/reference.rs +++ b/crates/jmap-proto/src/request/reference.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/request/websocket.rs b/crates/jmap-proto/src/request/websocket.rs index f5ee79d2..c2a42851 100644 --- a/crates/jmap-proto/src/request/websocket.rs +++ b/crates/jmap-proto/src/request/websocket.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, collections::HashMap}; diff --git a/crates/jmap-proto/src/response/mod.rs b/crates/jmap-proto/src/response/mod.rs index 273cc844..7d5b78b3 100644 --- a/crates/jmap-proto/src/response/mod.rs +++ b/crates/jmap-proto/src/response/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod references; pub mod serialize; diff --git a/crates/jmap-proto/src/response/references.rs b/crates/jmap-proto/src/response/references.rs index 24f6754c..2c7aa2bd 100644 --- a/crates/jmap-proto/src/response/references.rs +++ b/crates/jmap-proto/src/response/references.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::HashMap; diff --git a/crates/jmap-proto/src/response/serialize.rs b/crates/jmap-proto/src/response/serialize.rs index 6baa3971..e457a15b 100644 --- a/crates/jmap-proto/src/response/serialize.rs +++ b/crates/jmap-proto/src/response/serialize.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use serde::{ser::SerializeSeq, Serialize}; diff --git a/crates/jmap-proto/src/types/acl.rs b/crates/jmap-proto/src/types/acl.rs index 39d01b2a..8b898a4b 100644 --- a/crates/jmap-proto/src/types/acl.rs +++ b/crates/jmap-proto/src/types/acl.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::{self, Display}; diff --git a/crates/jmap-proto/src/types/any_id.rs b/crates/jmap-proto/src/types/any_id.rs index a3786ebc..62ec2397 100644 --- a/crates/jmap-proto/src/types/any_id.rs +++ b/crates/jmap-proto/src/types/any_id.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ parser::{json::Parser, JsonObjectParser}, diff --git a/crates/jmap-proto/src/types/blob.rs b/crates/jmap-proto/src/types/blob.rs index 359e56e3..7c920823 100644 --- a/crates/jmap-proto/src/types/blob.rs +++ b/crates/jmap-proto/src/types/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Borrow; diff --git a/crates/jmap-proto/src/types/collection.rs b/crates/jmap-proto/src/types/collection.rs index 5684d534..4147a91c 100644 --- a/crates/jmap-proto/src/types/collection.rs +++ b/crates/jmap-proto/src/types/collection.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::{self, Display, Formatter}; diff --git a/crates/jmap-proto/src/types/date.rs b/crates/jmap-proto/src/types/date.rs index 39698816..1c72a8d3 100644 --- a/crates/jmap-proto/src/types/date.rs +++ b/crates/jmap-proto/src/types/date.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/types/id.rs b/crates/jmap-proto/src/types/id.rs index 46bdb11b..e820ca95 100644 --- a/crates/jmap-proto/src/types/id.rs +++ b/crates/jmap-proto/src/types/id.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::Deref; diff --git a/crates/jmap-proto/src/types/keyword.rs b/crates/jmap-proto/src/types/keyword.rs index 3ca381a6..737ea3e0 100644 --- a/crates/jmap-proto/src/types/keyword.rs +++ b/crates/jmap-proto/src/types/keyword.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/types/mod.rs b/crates/jmap-proto/src/types/mod.rs index 1a03ee30..4315d0ad 100644 --- a/crates/jmap-proto/src/types/mod.rs +++ b/crates/jmap-proto/src/types/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::parser::{json::Parser, JsonObjectParser}; diff --git a/crates/jmap-proto/src/types/pointer.rs b/crates/jmap-proto/src/types/pointer.rs index 0ad1d9ee..2d6731b3 100644 --- a/crates/jmap-proto/src/types/pointer.rs +++ b/crates/jmap-proto/src/types/pointer.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/types/property.rs b/crates/jmap-proto/src/types/property.rs index 66d1482b..40214d59 100644 --- a/crates/jmap-proto/src/types/property.rs +++ b/crates/jmap-proto/src/types/property.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::{Display, Formatter}; diff --git a/crates/jmap-proto/src/types/state.rs b/crates/jmap-proto/src/types/state.rs index 50993b99..20da85dc 100644 --- a/crates/jmap-proto/src/types/state.rs +++ b/crates/jmap-proto/src/types/state.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::codec::{ base32_custom::Base32Writer, diff --git a/crates/jmap-proto/src/types/type_state.rs b/crates/jmap-proto/src/types/type_state.rs index 4a46b1a5..44bd7aaf 100644 --- a/crates/jmap-proto/src/types/type_state.rs +++ b/crates/jmap-proto/src/types/type_state.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/jmap-proto/src/types/value.rs b/crates/jmap-proto/src/types/value.rs index 6bb86dc6..90a2952d 100644 --- a/crates/jmap-proto/src/types/value.rs +++ b/crates/jmap-proto/src/types/value.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, fmt::Display}; diff --git a/crates/jmap/src/api/autoconfig.rs b/crates/jmap/src/api/autoconfig.rs index a384118a..e51b006d 100644 --- a/crates/jmap/src/api/autoconfig.rs +++ b/crates/jmap/src/api/autoconfig.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Write; diff --git a/crates/jmap/src/api/event_source.rs b/crates/jmap/src/api/event_source.rs index 0c1e6ec8..2156988c 100644 --- a/crates/jmap/src/api/event_source.rs +++ b/crates/jmap/src/api/event_source.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ sync::Arc, diff --git a/crates/jmap/src/api/http.rs b/crates/jmap/src/api/http.rs index 5d559102..89397b82 100644 --- a/crates/jmap/src/api/http.rs +++ b/crates/jmap/src/api/http.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{net::IpAddr, sync::Arc}; diff --git a/crates/jmap/src/api/management/dkim.rs b/crates/jmap/src/api/management/dkim.rs index 5d00e30f..6dd7e5ba 100644 --- a/crates/jmap/src/api/management/dkim.rs +++ b/crates/jmap/src/api/management/dkim.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::str::FromStr; diff --git a/crates/jmap/src/api/management/domain.rs b/crates/jmap/src/api/management/domain.rs index 460155a8..cedc414c 100644 --- a/crates/jmap/src/api/management/domain.rs +++ b/crates/jmap/src/api/management/domain.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::backend::internal::manage::ManageDirectory; diff --git a/crates/jmap/src/api/management/mod.rs b/crates/jmap/src/api/management/mod.rs index 684b5ea0..64e3f5aa 100644 --- a/crates/jmap/src/api/management/mod.rs +++ b/crates/jmap/src/api/management/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod dkim; pub mod domain; diff --git a/crates/jmap/src/api/management/principal.rs b/crates/jmap/src/api/management/principal.rs index e7bc606b..6ad7b548 100644 --- a/crates/jmap/src/api/management/principal.rs +++ b/crates/jmap/src/api/management/principal.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/jmap/src/api/management/queue.rs b/crates/jmap/src/api/management/queue.rs index b829aa01..d5db8b76 100644 --- a/crates/jmap/src/api/management/queue.rs +++ b/crates/jmap/src/api/management/queue.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::str::FromStr; diff --git a/crates/jmap/src/api/management/reload.rs b/crates/jmap/src/api/management/reload.rs index 053fc52f..52721e10 100644 --- a/crates/jmap/src/api/management/reload.rs +++ b/crates/jmap/src/api/management/reload.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use hyper::Method; use jmap_proto::error::request::RequestError; diff --git a/crates/jmap/src/api/management/report.rs b/crates/jmap/src/api/management/report.rs index 525f473c..1bed1e1b 100644 --- a/crates/jmap/src/api/management/report.rs +++ b/crates/jmap/src/api/management/report.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use hyper::Method; use jmap_proto::error::request::RequestError; diff --git a/crates/jmap/src/api/management/settings.rs b/crates/jmap/src/api/management/settings.rs index bf607019..931ff52e 100644 --- a/crates/jmap/src/api/management/settings.rs +++ b/crates/jmap/src/api/management/settings.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use hyper::Method; use jmap_proto::error::request::RequestError; diff --git a/crates/jmap/src/api/management/sieve.rs b/crates/jmap/src/api/management/sieve.rs index 5176734f..fbcc25d2 100644 --- a/crates/jmap/src/api/management/sieve.rs +++ b/crates/jmap/src/api/management/sieve.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::SystemTime; diff --git a/crates/jmap/src/api/management/stores.rs b/crates/jmap/src/api/management/stores.rs index edb1e167..742526c5 100644 --- a/crates/jmap/src/api/management/stores.rs +++ b/crates/jmap/src/api/management/stores.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use base64::{engine::general_purpose::URL_SAFE_NO_PAD, Engine}; use common::manager::webadmin::Resource; diff --git a/crates/jmap/src/api/mod.rs b/crates/jmap/src/api/mod.rs index d963150b..2a5819f3 100644 --- a/crates/jmap/src/api/mod.rs +++ b/crates/jmap/src/api/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use hyper::StatusCode; use jmap_proto::types::{id::Id, state::State, type_state::DataType}; diff --git a/crates/jmap/src/api/request.rs b/crates/jmap/src/api/request.rs index 4617d2ad..35c243b5 100644 --- a/crates/jmap/src/api/request.rs +++ b/crates/jmap/src/api/request.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/jmap/src/api/session.rs b/crates/jmap/src/api/session.rs index 5032b661..34687cbf 100644 --- a/crates/jmap/src/api/session.rs +++ b/crates/jmap/src/api/session.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/jmap/src/auth/acl.rs b/crates/jmap/src/auth/acl.rs index a9546903..d462abd6 100644 --- a/crates/jmap/src/auth/acl.rs +++ b/crates/jmap/src/auth/acl.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::QueryBy; use jmap_proto::{ diff --git a/crates/jmap/src/auth/authenticate.rs b/crates/jmap/src/auth/authenticate.rs index 8c320a21..f28253d1 100644 --- a/crates/jmap/src/auth/authenticate.rs +++ b/crates/jmap/src/auth/authenticate.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{net::IpAddr, sync::Arc, time::Instant}; diff --git a/crates/jmap/src/auth/mod.rs b/crates/jmap/src/auth/mod.rs index 985e4fde..8c2f2c7a 100644 --- a/crates/jmap/src/auth/mod.rs +++ b/crates/jmap/src/auth/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::hash_map::DefaultHasher, diff --git a/crates/jmap/src/auth/oauth/auth.rs b/crates/jmap/src/auth/oauth/auth.rs index ff760699..40d9fd6b 100644 --- a/crates/jmap/src/auth/oauth/auth.rs +++ b/crates/jmap/src/auth/oauth/auth.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/jmap/src/auth/oauth/mod.rs b/crates/jmap/src/auth/oauth/mod.rs index 61092e9f..6ff31a53 100644 --- a/crates/jmap/src/auth/oauth/mod.rs +++ b/crates/jmap/src/auth/oauth/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::HashMap; diff --git a/crates/jmap/src/auth/oauth/token.rs b/crates/jmap/src/auth/oauth/token.rs index 49a41e45..ce553e0c 100644 --- a/crates/jmap/src/auth/oauth/token.rs +++ b/crates/jmap/src/auth/oauth/token.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::SystemTime; diff --git a/crates/jmap/src/auth/rate_limit.rs b/crates/jmap/src/auth/rate_limit.rs index 3d10accc..a243bb1b 100644 --- a/crates/jmap/src/auth/rate_limit.rs +++ b/crates/jmap/src/auth/rate_limit.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{net::IpAddr, sync::Arc}; diff --git a/crates/jmap/src/blob/copy.rs b/crates/jmap/src/blob/copy.rs index 1d139195..1f2173f9 100644 --- a/crates/jmap/src/blob/copy.rs +++ b/crates/jmap/src/blob/copy.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::{ diff --git a/crates/jmap/src/blob/download.rs b/crates/jmap/src/blob/download.rs index e2cc7e7d..3953cb17 100644 --- a/crates/jmap/src/blob/download.rs +++ b/crates/jmap/src/blob/download.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::Range; diff --git a/crates/jmap/src/blob/get.rs b/crates/jmap/src/blob/get.rs index 5347147c..b7f2790c 100644 --- a/crates/jmap/src/blob/get.rs +++ b/crates/jmap/src/blob/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/blob/mod.rs b/crates/jmap/src/blob/mod.rs index 56818560..da70fef3 100644 --- a/crates/jmap/src/blob/mod.rs +++ b/crates/jmap/src/blob/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::types::{blob::BlobId, id::Id}; diff --git a/crates/jmap/src/blob/upload.rs b/crates/jmap/src/blob/upload.rs index 2645d89f..28ac8e4f 100644 --- a/crates/jmap/src/blob/upload.rs +++ b/crates/jmap/src/blob/upload.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/jmap/src/changes/get.rs b/crates/jmap/src/changes/get.rs index e54f7880..c7728cf2 100644 --- a/crates/jmap/src/changes/get.rs +++ b/crates/jmap/src/changes/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/changes/mod.rs b/crates/jmap/src/changes/mod.rs index b9497403..6c14d1b7 100644 --- a/crates/jmap/src/changes/mod.rs +++ b/crates/jmap/src/changes/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod get; pub mod query; diff --git a/crates/jmap/src/changes/query.rs b/crates/jmap/src/changes/query.rs index 197a0259..1cdac45d 100644 --- a/crates/jmap/src/changes/query.rs +++ b/crates/jmap/src/changes/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/changes/state.rs b/crates/jmap/src/changes/state.rs index 9196a1b2..a6ac7a63 100644 --- a/crates/jmap/src/changes/state.rs +++ b/crates/jmap/src/changes/state.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/changes/write.rs b/crates/jmap/src/changes/write.rs index bd280fb8..db5e7822 100644 --- a/crates/jmap/src/changes/write.rs +++ b/crates/jmap/src/changes/write.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/jmap/src/email/body.rs b/crates/jmap/src/email/body.rs index 685bdc9f..9a48615e 100644 --- a/crates/jmap/src/email/body.rs +++ b/crates/jmap/src/email/body.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ object::Object, diff --git a/crates/jmap/src/email/cache.rs b/crates/jmap/src/email/cache.rs index 4ab6f538..8de9b27e 100644 --- a/crates/jmap/src/email/cache.rs +++ b/crates/jmap/src/email/cache.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{collections::HashMap, sync::Arc}; diff --git a/crates/jmap/src/email/copy.rs b/crates/jmap/src/email/copy.rs index a938b968..3bdea146 100644 --- a/crates/jmap/src/email/copy.rs +++ b/crates/jmap/src/email/copy.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::{method::MethodError, set::SetError}, diff --git a/crates/jmap/src/email/crypto.rs b/crates/jmap/src/email/crypto.rs index 848a4736..2c6f6aaa 100644 --- a/crates/jmap/src/email/crypto.rs +++ b/crates/jmap/src/email/crypto.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, collections::BTreeSet, fmt::Display, io::Cursor, sync::Arc}; diff --git a/crates/jmap/src/email/delete.rs b/crates/jmap/src/email/delete.rs index 6ecbc6a2..39a79b69 100644 --- a/crates/jmap/src/email/delete.rs +++ b/crates/jmap/src/email/delete.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/jmap/src/email/get.rs b/crates/jmap/src/email/get.rs index 7d4e6d6e..f492ade2 100644 --- a/crates/jmap/src/email/get.rs +++ b/crates/jmap/src/email/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/email/headers.rs b/crates/jmap/src/email/headers.rs index 095656b2..0ceee69d 100644 --- a/crates/jmap/src/email/headers.rs +++ b/crates/jmap/src/email/headers.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/jmap/src/email/import.rs b/crates/jmap/src/email/import.rs index dd405ebd..767ae3aa 100644 --- a/crates/jmap/src/email/import.rs +++ b/crates/jmap/src/email/import.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::{ diff --git a/crates/jmap/src/email/index.rs b/crates/jmap/src/email/index.rs index 8cadfaee..0b36d810 100644 --- a/crates/jmap/src/email/index.rs +++ b/crates/jmap/src/email/index.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/jmap/src/email/ingest.rs b/crates/jmap/src/email/ingest.rs index 2fc41699..5c2b2c21 100644 --- a/crates/jmap/src/email/ingest.rs +++ b/crates/jmap/src/email/ingest.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, time::Duration}; diff --git a/crates/jmap/src/email/metadata.rs b/crates/jmap/src/email/metadata.rs index d48fbcd0..8ed52003 100644 --- a/crates/jmap/src/email/metadata.rs +++ b/crates/jmap/src/email/metadata.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/jmap/src/email/mod.rs b/crates/jmap/src/email/mod.rs index 7aab45a6..7c45b756 100644 --- a/crates/jmap/src/email/mod.rs +++ b/crates/jmap/src/email/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod body; pub mod cache; diff --git a/crates/jmap/src/email/parse.rs b/crates/jmap/src/email/parse.rs index 9ec71243..ad55ec57 100644 --- a/crates/jmap/src/email/parse.rs +++ b/crates/jmap/src/email/parse.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/email/query.rs b/crates/jmap/src/email/query.rs index 6ba0e625..efacc8a1 100644 --- a/crates/jmap/src/email/query.rs +++ b/crates/jmap/src/email/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/email/set.rs b/crates/jmap/src/email/set.rs index 19f01116..26e0f4ea 100644 --- a/crates/jmap/src/email/set.rs +++ b/crates/jmap/src/email/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, collections::HashMap, slice::IterMut}; diff --git a/crates/jmap/src/email/snippet.rs b/crates/jmap/src/email/snippet.rs index 5f2c1133..38544e67 100644 --- a/crates/jmap/src/email/snippet.rs +++ b/crates/jmap/src/email/snippet.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/identity/get.rs b/crates/jmap/src/identity/get.rs index e7d86ae4..c8ad3c23 100644 --- a/crates/jmap/src/identity/get.rs +++ b/crates/jmap/src/identity/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::QueryBy; use jmap_proto::{ diff --git a/crates/jmap/src/identity/mod.rs b/crates/jmap/src/identity/mod.rs index 3ac096b0..2caab5e7 100644 --- a/crates/jmap/src/identity/mod.rs +++ b/crates/jmap/src/identity/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod get; pub mod set; diff --git a/crates/jmap/src/identity/set.rs b/crates/jmap/src/identity/set.rs index 686beea9..a21dbd01 100644 --- a/crates/jmap/src/identity/set.rs +++ b/crates/jmap/src/identity/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::QueryBy; use jmap_proto::{ diff --git a/crates/jmap/src/lib.rs b/crates/jmap/src/lib.rs index 1840710d..4f308b3c 100644 --- a/crates/jmap/src/lib.rs +++ b/crates/jmap/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::hash_map::RandomState, diff --git a/crates/jmap/src/mailbox/get.rs b/crates/jmap/src/mailbox/get.rs index 40529e1b..56a5fcc6 100644 --- a/crates/jmap/src/mailbox/get.rs +++ b/crates/jmap/src/mailbox/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/mailbox/mod.rs b/crates/jmap/src/mailbox/mod.rs index f6e3e61b..ed0deb83 100644 --- a/crates/jmap/src/mailbox/mod.rs +++ b/crates/jmap/src/mailbox/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::slice::Iter; diff --git a/crates/jmap/src/mailbox/query.rs b/crates/jmap/src/mailbox/query.rs index 5799d459..eecdd9ca 100644 --- a/crates/jmap/src/mailbox/query.rs +++ b/crates/jmap/src/mailbox/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/mailbox/set.rs b/crates/jmap/src/mailbox/set.rs index a18b6dd6..1ced1c69 100644 --- a/crates/jmap/src/mailbox/set.rs +++ b/crates/jmap/src/mailbox/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::config::jmap::settings::SpecialUse; use jmap_proto::{ diff --git a/crates/jmap/src/principal/get.rs b/crates/jmap/src/principal/get.rs index 8b12d1d5..c766026f 100644 --- a/crates/jmap/src/principal/get.rs +++ b/crates/jmap/src/principal/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::QueryBy; use jmap_proto::{ diff --git a/crates/jmap/src/principal/mod.rs b/crates/jmap/src/principal/mod.rs index cc153667..8e89f098 100644 --- a/crates/jmap/src/principal/mod.rs +++ b/crates/jmap/src/principal/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod get; pub mod query; diff --git a/crates/jmap/src/principal/query.rs b/crates/jmap/src/principal/query.rs index f42608fb..62a63387 100644 --- a/crates/jmap/src/principal/query.rs +++ b/crates/jmap/src/principal/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::QueryBy; use jmap_proto::{ diff --git a/crates/jmap/src/push/ece.rs b/crates/jmap/src/push/ece.rs index b693956a..03bc4158 100644 --- a/crates/jmap/src/push/ece.rs +++ b/crates/jmap/src/push/ece.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use aes_gcm::{ aead::{generic_array::GenericArray, Aead}, diff --git a/crates/jmap/src/push/get.rs b/crates/jmap/src/push/get.rs index 4fc9a00f..08418af5 100644 --- a/crates/jmap/src/push/get.rs +++ b/crates/jmap/src/push/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use base64::{engine::general_purpose, Engine}; use jmap_proto::{ diff --git a/crates/jmap/src/push/manager.rs b/crates/jmap/src/push/manager.rs index 9ef5cdd7..de8d4398 100644 --- a/crates/jmap/src/push/manager.rs +++ b/crates/jmap/src/push/manager.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use base64::{engine::general_purpose, Engine}; use common::IPC_CHANNEL_BUFFER; diff --git a/crates/jmap/src/push/mod.rs b/crates/jmap/src/push/mod.rs index ab1169e3..9e6dae69 100644 --- a/crates/jmap/src/push/mod.rs +++ b/crates/jmap/src/push/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod ece; pub mod get; diff --git a/crates/jmap/src/push/set.rs b/crates/jmap/src/push/set.rs index bb8f5e65..9402e08f 100644 --- a/crates/jmap/src/push/set.rs +++ b/crates/jmap/src/push/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use base64::{engine::general_purpose, Engine}; use jmap_proto::{ diff --git a/crates/jmap/src/quota/get.rs b/crates/jmap/src/quota/get.rs index 93045827..3c97f8d0 100644 --- a/crates/jmap/src/quota/get.rs +++ b/crates/jmap/src/quota/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/quota/mod.rs b/crates/jmap/src/quota/mod.rs index cc153667..8e89f098 100644 --- a/crates/jmap/src/quota/mod.rs +++ b/crates/jmap/src/quota/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod get; pub mod query; diff --git a/crates/jmap/src/quota/query.rs b/crates/jmap/src/quota/query.rs index 5add882e..a869d2aa 100644 --- a/crates/jmap/src/quota/query.rs +++ b/crates/jmap/src/quota/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/quota/set.rs b/crates/jmap/src/quota/set.rs index 09e814cc..a88349cd 100644 --- a/crates/jmap/src/quota/set.rs +++ b/crates/jmap/src/quota/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ object::index::{IndexAs, IndexProperty}, diff --git a/crates/jmap/src/services/delivery.rs b/crates/jmap/src/services/delivery.rs index 0bb0f10b..fc732125 100644 --- a/crates/jmap/src/services/delivery.rs +++ b/crates/jmap/src/services/delivery.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::DeliveryEvent; use tokio::sync::mpsc; diff --git a/crates/jmap/src/services/gossip/heartbeat.rs b/crates/jmap/src/services/gossip/heartbeat.rs index ec7aeba2..4aec1e15 100644 --- a/crates/jmap/src/services/gossip/heartbeat.rs +++ b/crates/jmap/src/services/gossip/heartbeat.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{Peer, State, HEARTBEAT_WINDOW, HEARTBEAT_WINDOW_MASK}; use std::time::Instant; diff --git a/crates/jmap/src/services/gossip/leave.rs b/crates/jmap/src/services/gossip/leave.rs index 10eb3308..9e0f121d 100644 --- a/crates/jmap/src/services/gossip/leave.rs +++ b/crates/jmap/src/services/gossip/leave.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::services::gossip::State; diff --git a/crates/jmap/src/services/gossip/mod.rs b/crates/jmap/src/services/gossip/mod.rs index 4009fcbe..ee48c009 100644 --- a/crates/jmap/src/services/gossip/mod.rs +++ b/crates/jmap/src/services/gossip/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod heartbeat; pub mod leave; diff --git a/crates/jmap/src/services/gossip/peer.rs b/crates/jmap/src/services/gossip/peer.rs index 1e17ff0c..65203e12 100644 --- a/crates/jmap/src/services/gossip/peer.rs +++ b/crates/jmap/src/services/gossip/peer.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fmt::Display, net::IpAddr, time::Instant}; diff --git a/crates/jmap/src/services/gossip/ping.rs b/crates/jmap/src/services/gossip/ping.rs index b34c80a7..27b09a77 100644 --- a/crates/jmap/src/services/gossip/ping.rs +++ b/crates/jmap/src/services/gossip/ping.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use smtp::queue; diff --git a/crates/jmap/src/services/gossip/request.rs b/crates/jmap/src/services/gossip/request.rs index bfdc9b7a..51b99cc8 100644 --- a/crates/jmap/src/services/gossip/request.rs +++ b/crates/jmap/src/services/gossip/request.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::auth::SymmetricEncrypt; diff --git a/crates/jmap/src/services/gossip/spawn.rs b/crates/jmap/src/services/gossip/spawn.rs index 84ad927c..02e065ea 100644 --- a/crates/jmap/src/services/gossip/spawn.rs +++ b/crates/jmap/src/services/gossip/spawn.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::auth::SymmetricEncrypt; use crate::JmapInstance; diff --git a/crates/jmap/src/services/housekeeper.rs b/crates/jmap/src/services/housekeeper.rs index f7d24816..f33b7ea1 100644 --- a/crates/jmap/src/services/housekeeper.rs +++ b/crates/jmap/src/services/housekeeper.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::BinaryHeap, diff --git a/crates/jmap/src/services/index.rs b/crates/jmap/src/services/index.rs index cbb3e1b7..9a6aa184 100644 --- a/crates/jmap/src/services/index.rs +++ b/crates/jmap/src/services/index.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::types::{collection::Collection, property::Property}; use store::{ diff --git a/crates/jmap/src/services/ingest.rs b/crates/jmap/src/services/ingest.rs index 58e14ac9..767f686a 100644 --- a/crates/jmap/src/services/ingest.rs +++ b/crates/jmap/src/services/ingest.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{DeliveryResult, IngestMessage}; use directory::QueryBy; diff --git a/crates/jmap/src/services/mod.rs b/crates/jmap/src/services/mod.rs index f3a92a89..c2017b94 100644 --- a/crates/jmap/src/services/mod.rs +++ b/crates/jmap/src/services/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod delivery; pub mod gossip; diff --git a/crates/jmap/src/services/state.rs b/crates/jmap/src/services/state.rs index 289aa757..1b05fcc7 100644 --- a/crates/jmap/src/services/state.rs +++ b/crates/jmap/src/services/state.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant, SystemTime}; diff --git a/crates/jmap/src/sieve/get.rs b/crates/jmap/src/sieve/get.rs index c17d0d79..bf82dca4 100644 --- a/crates/jmap/src/sieve/get.rs +++ b/crates/jmap/src/sieve/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/jmap/src/sieve/ingest.rs b/crates/jmap/src/sieve/ingest.rs index 6fe0d172..10c8ca15 100644 --- a/crates/jmap/src/sieve/ingest.rs +++ b/crates/jmap/src/sieve/ingest.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/jmap/src/sieve/mod.rs b/crates/jmap/src/sieve/mod.rs index e806a3cc..79c36d4d 100644 --- a/crates/jmap/src/sieve/mod.rs +++ b/crates/jmap/src/sieve/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/jmap/src/sieve/query.rs b/crates/jmap/src/sieve/query.rs index 63117bc6..1ceb1c1a 100644 --- a/crates/jmap/src/sieve/query.rs +++ b/crates/jmap/src/sieve/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/sieve/set.rs b/crates/jmap/src/sieve/set.rs index d8cb964c..3a68a7b2 100644 --- a/crates/jmap/src/sieve/set.rs +++ b/crates/jmap/src/sieve/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::{ diff --git a/crates/jmap/src/sieve/validate.rs b/crates/jmap/src/sieve/validate.rs index a7dc776b..10046600 100644 --- a/crates/jmap/src/sieve/validate.rs +++ b/crates/jmap/src/sieve/validate.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::{ diff --git a/crates/jmap/src/submission/get.rs b/crates/jmap/src/submission/get.rs index 102ae206..4c6db4a3 100644 --- a/crates/jmap/src/submission/get.rs +++ b/crates/jmap/src/submission/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/submission/mod.rs b/crates/jmap/src/submission/mod.rs index 5b87a1fe..b459a10c 100644 --- a/crates/jmap/src/submission/mod.rs +++ b/crates/jmap/src/submission/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod get; pub mod query; diff --git a/crates/jmap/src/submission/query.rs b/crates/jmap/src/submission/query.rs index 1442b73b..7f30b4c4 100644 --- a/crates/jmap/src/submission/query.rs +++ b/crates/jmap/src/submission/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/submission/set.rs b/crates/jmap/src/submission/set.rs index 7cb9adbc..2fc91130 100644 --- a/crates/jmap/src/submission/set.rs +++ b/crates/jmap/src/submission/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{collections::HashMap, sync::Arc}; diff --git a/crates/jmap/src/thread/get.rs b/crates/jmap/src/thread/get.rs index 5396d29b..da06d2d9 100644 --- a/crates/jmap/src/thread/get.rs +++ b/crates/jmap/src/thread/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/thread/mod.rs b/crates/jmap/src/thread/mod.rs index e2021b2c..06c4e78e 100644 --- a/crates/jmap/src/thread/mod.rs +++ b/crates/jmap/src/thread/mod.rs @@ -1,24 +1,7 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod get; diff --git a/crates/jmap/src/vacation/get.rs b/crates/jmap/src/vacation/get.rs index 53cc8218..1dd3a6d1 100644 --- a/crates/jmap/src/vacation/get.rs +++ b/crates/jmap/src/vacation/get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ error::method::MethodError, diff --git a/crates/jmap/src/vacation/mod.rs b/crates/jmap/src/vacation/mod.rs index 3ac096b0..2caab5e7 100644 --- a/crates/jmap/src/vacation/mod.rs +++ b/crates/jmap/src/vacation/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod get; pub mod set; diff --git a/crates/jmap/src/vacation/set.rs b/crates/jmap/src/vacation/set.rs index 186100bf..bc825813 100644 --- a/crates/jmap/src/vacation/set.rs +++ b/crates/jmap/src/vacation/set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/jmap/src/websocket/mod.rs b/crates/jmap/src/websocket/mod.rs index b543207c..932f8e59 100644 --- a/crates/jmap/src/websocket/mod.rs +++ b/crates/jmap/src/websocket/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod stream; pub mod upgrade; diff --git a/crates/jmap/src/websocket/stream.rs b/crates/jmap/src/websocket/stream.rs index 2e6d4669..1c28ebd2 100644 --- a/crates/jmap/src/websocket/stream.rs +++ b/crates/jmap/src/websocket/stream.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{sync::Arc, time::Instant}; diff --git a/crates/jmap/src/websocket/upgrade.rs b/crates/jmap/src/websocket/upgrade.rs index 5bdc654a..5c47e0eb 100644 --- a/crates/jmap/src/websocket/upgrade.rs +++ b/crates/jmap/src/websocket/upgrade.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/main/src/main.rs b/crates/main/src/main.rs index e2f99121..3403620c 100644 --- a/crates/main/src/main.rs +++ b/crates/main/src/main.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/managesieve/src/core/client.rs b/crates/managesieve/src/core/client.rs index ee4e6fe2..53791536 100644 --- a/crates/managesieve/src/core/client.rs +++ b/crates/managesieve/src/core/client.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::SessionStream; use imap_proto::receiver::{self, Request}; diff --git a/crates/managesieve/src/core/mod.rs b/crates/managesieve/src/core/mod.rs index c6ea872e..822f3fc4 100644 --- a/crates/managesieve/src/core/mod.rs +++ b/crates/managesieve/src/core/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod client; pub mod session; diff --git a/crates/managesieve/src/core/session.rs b/crates/managesieve/src/core/session.rs index 4b102108..2ec0b38f 100644 --- a/crates/managesieve/src/core/session.rs +++ b/crates/managesieve/src/core/session.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::{SessionData, SessionManager, SessionStream}; use imap_proto::receiver::{self, Receiver}; diff --git a/crates/managesieve/src/lib.rs b/crates/managesieve/src/lib.rs index 9c95268d..280736a7 100644 --- a/crates/managesieve/src/lib.rs +++ b/crates/managesieve/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod core; pub mod op; diff --git a/crates/managesieve/src/op/authenticate.rs b/crates/managesieve/src/op/authenticate.rs index d069c543..2be23968 100644 --- a/crates/managesieve/src/op/authenticate.rs +++ b/crates/managesieve/src/op/authenticate.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{ config::server::ServerProtocol, diff --git a/crates/managesieve/src/op/capability.rs b/crates/managesieve/src/op/capability.rs index f8d4a54c..45d7273a 100644 --- a/crates/managesieve/src/op/capability.rs +++ b/crates/managesieve/src/op/capability.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::SessionStream; use jmap_proto::request::capability::Capabilities; diff --git a/crates/managesieve/src/op/checkscript.rs b/crates/managesieve/src/op/checkscript.rs index dd839e03..4fb0717b 100644 --- a/crates/managesieve/src/op/checkscript.rs +++ b/crates/managesieve/src/op/checkscript.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::receiver::Request; use tokio::io::{AsyncRead, AsyncWrite}; diff --git a/crates/managesieve/src/op/deletescript.rs b/crates/managesieve/src/op/deletescript.rs index b1fab65f..8d322f3a 100644 --- a/crates/managesieve/src/op/deletescript.rs +++ b/crates/managesieve/src/op/deletescript.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::receiver::Request; use jmap_proto::types::collection::Collection; diff --git a/crates/managesieve/src/op/getscript.rs b/crates/managesieve/src/op/getscript.rs index b0c65f31..72a3af32 100644 --- a/crates/managesieve/src/op/getscript.rs +++ b/crates/managesieve/src/op/getscript.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::receiver::Request; use jmap::sieve::set::ObjectBlobId; diff --git a/crates/managesieve/src/op/havespace.rs b/crates/managesieve/src/op/havespace.rs index 6c60fbcf..a8237f68 100644 --- a/crates/managesieve/src/op/havespace.rs +++ b/crates/managesieve/src/op/havespace.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::receiver::Request; use tokio::io::{AsyncRead, AsyncWrite}; diff --git a/crates/managesieve/src/op/listscripts.rs b/crates/managesieve/src/op/listscripts.rs index 49dd3458..a4dbe622 100644 --- a/crates/managesieve/src/op/listscripts.rs +++ b/crates/managesieve/src/op/listscripts.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ object::Object, diff --git a/crates/managesieve/src/op/logout.rs b/crates/managesieve/src/op/logout.rs index c47362b4..60e68df2 100644 --- a/crates/managesieve/src/op/logout.rs +++ b/crates/managesieve/src/op/logout.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use tokio::io::{AsyncRead, AsyncWrite}; diff --git a/crates/managesieve/src/op/mod.rs b/crates/managesieve/src/op/mod.rs index 7cd4e1b8..3412f3c7 100644 --- a/crates/managesieve/src/op/mod.rs +++ b/crates/managesieve/src/op/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::error::method::MethodError; diff --git a/crates/managesieve/src/op/noop.rs b/crates/managesieve/src/op/noop.rs index 20c6ff64..7137d08e 100644 --- a/crates/managesieve/src/op/noop.rs +++ b/crates/managesieve/src/op/noop.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::receiver::Request; use tokio::io::{AsyncRead, AsyncWrite}; diff --git a/crates/managesieve/src/op/putscript.rs b/crates/managesieve/src/op/putscript.rs index 01974a05..2e16021f 100644 --- a/crates/managesieve/src/op/putscript.rs +++ b/crates/managesieve/src/op/putscript.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::receiver::Request; use jmap::sieve::set::{ObjectBlobId, SCHEMA}; diff --git a/crates/managesieve/src/op/renamescript.rs b/crates/managesieve/src/op/renamescript.rs index bad6e182..d29d8e8f 100644 --- a/crates/managesieve/src/op/renamescript.rs +++ b/crates/managesieve/src/op/renamescript.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::receiver::Request; use jmap::sieve::set::SCHEMA; diff --git a/crates/managesieve/src/op/setactive.rs b/crates/managesieve/src/op/setactive.rs index 6859f85d..82dd51ac 100644 --- a/crates/managesieve/src/op/setactive.rs +++ b/crates/managesieve/src/op/setactive.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::receiver::Request; use jmap_proto::types::collection::Collection; diff --git a/crates/nlp/src/bayes/cache.rs b/crates/nlp/src/bayes/cache.rs index 798b5c62..af1b1234 100644 --- a/crates/nlp/src/bayes/cache.rs +++ b/crates/nlp/src/bayes/cache.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ hash::BuildHasherDefault, diff --git a/crates/nlp/src/bayes/classify.rs b/crates/nlp/src/bayes/classify.rs index 63478a85..c18c367f 100644 --- a/crates/nlp/src/bayes/classify.rs +++ b/crates/nlp/src/bayes/classify.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::tokenizers::osb::OsbToken; diff --git a/crates/nlp/src/bayes/mod.rs b/crates/nlp/src/bayes/mod.rs index 5a474ec7..7516044e 100644 --- a/crates/nlp/src/bayes/mod.rs +++ b/crates/nlp/src/bayes/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{collections::HashMap, hash::BuildHasherDefault}; diff --git a/crates/nlp/src/bayes/tokenize.rs b/crates/nlp/src/bayes/tokenize.rs index a2156634..2f3ae323 100644 --- a/crates/nlp/src/bayes/tokenize.rs +++ b/crates/nlp/src/bayes/tokenize.rs @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ + use std::borrow::Cow; use utils::suffixlist::PublicSuffix; diff --git a/crates/nlp/src/bayes/train.rs b/crates/nlp/src/bayes/train.rs index eabf9118..c2281f4e 100644 --- a/crates/nlp/src/bayes/train.rs +++ b/crates/nlp/src/bayes/train.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::tokenizers::osb::OsbToken; diff --git a/crates/nlp/src/language/detect.rs b/crates/nlp/src/language/detect.rs index e5b780dc..0312f0d8 100644 --- a/crates/nlp/src/language/detect.rs +++ b/crates/nlp/src/language/detect.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashMap; use whatlang::{detect, Lang}; diff --git a/crates/nlp/src/language/mod.rs b/crates/nlp/src/language/mod.rs index 30f0a05b..cf2ee257 100644 --- a/crates/nlp/src/language/mod.rs +++ b/crates/nlp/src/language/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod detect; pub mod search_snippet; diff --git a/crates/nlp/src/language/search_snippet.rs b/crates/nlp/src/language/search_snippet.rs index 676191ea..4da899a3 100644 --- a/crates/nlp/src/language/search_snippet.rs +++ b/crates/nlp/src/language/search_snippet.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::Language; diff --git a/crates/nlp/src/language/stemmer.rs b/crates/nlp/src/language/stemmer.rs index 6732bb56..c3f6c9ce 100644 --- a/crates/nlp/src/language/stemmer.rs +++ b/crates/nlp/src/language/stemmer.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/nlp/src/language/stopwords.rs b/crates/nlp/src/language/stopwords.rs index a07e180d..aa7ecef8 100644 --- a/crates/nlp/src/language/stopwords.rs +++ b/crates/nlp/src/language/stopwords.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use phf::{phf_set, Set}; pub static STOP_WORDS: &[Option<&Set<&'static str>>] = &[ diff --git a/crates/nlp/src/tokenizers/chinese.rs b/crates/nlp/src/tokenizers/chinese.rs index 4ba246cb..e4bba1ed 100644 --- a/crates/nlp/src/tokenizers/chinese.rs +++ b/crates/nlp/src/tokenizers/chinese.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, vec::IntoIter}; diff --git a/crates/nlp/src/tokenizers/japanese.rs b/crates/nlp/src/tokenizers/japanese.rs index d0762c86..451d4b10 100644 --- a/crates/nlp/src/tokenizers/japanese.rs +++ b/crates/nlp/src/tokenizers/japanese.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::vec::IntoIter; diff --git a/crates/nlp/src/tokenizers/mod.rs b/crates/nlp/src/tokenizers/mod.rs index dda42d84..bbd5f050 100644 --- a/crates/nlp/src/tokenizers/mod.rs +++ b/crates/nlp/src/tokenizers/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod chinese; pub mod japanese; diff --git a/crates/nlp/src/tokenizers/osb.rs b/crates/nlp/src/tokenizers/osb.rs index 53976140..e6cba5f8 100644 --- a/crates/nlp/src/tokenizers/osb.rs +++ b/crates/nlp/src/tokenizers/osb.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, iter::Peekable}; diff --git a/crates/nlp/src/tokenizers/space.rs b/crates/nlp/src/tokenizers/space.rs index f3ef6891..e3a7b609 100644 --- a/crates/nlp/src/tokenizers/space.rs +++ b/crates/nlp/src/tokenizers/space.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::str::Chars; diff --git a/crates/nlp/src/tokenizers/types.rs b/crates/nlp/src/tokenizers/types.rs index 1e79a9e5..f69fe0ab 100644 --- a/crates/nlp/src/tokenizers/types.rs +++ b/crates/nlp/src/tokenizers/types.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::str::CharIndices; diff --git a/crates/nlp/src/tokenizers/word.rs b/crates/nlp/src/tokenizers/word.rs index 26854fbf..80482c7a 100644 --- a/crates/nlp/src/tokenizers/word.rs +++ b/crates/nlp/src/tokenizers/word.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, str::CharIndices}; diff --git a/crates/pop3/src/client.rs b/crates/pop3/src/client.rs index cdc35abd..6f5dd035 100644 --- a/crates/pop3/src/client.rs +++ b/crates/pop3/src/client.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::SessionStream; use mail_send::Credentials; diff --git a/crates/pop3/src/lib.rs b/crates/pop3/src/lib.rs index 00809b19..c973b848 100644 --- a/crates/pop3/src/lib.rs +++ b/crates/pop3/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{net::IpAddr, sync::Arc}; diff --git a/crates/pop3/src/mailbox.rs b/crates/pop3/src/mailbox.rs index a640334a..90b08103 100644 --- a/crates/pop3/src/mailbox.rs +++ b/crates/pop3/src/mailbox.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::BTreeMap; diff --git a/crates/pop3/src/op/authenticate.rs b/crates/pop3/src/op/authenticate.rs index 857a2d92..c378a822 100644 --- a/crates/pop3/src/op/authenticate.rs +++ b/crates/pop3/src/op/authenticate.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{ config::server::ServerProtocol, diff --git a/crates/pop3/src/op/delete.rs b/crates/pop3/src/op/delete.rs index bbde0416..b27bd6bc 100644 --- a/crates/pop3/src/op/delete.rs +++ b/crates/pop3/src/op/delete.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::SessionStream; use jmap_proto::types::{state::StateChange, type_state::DataType}; diff --git a/crates/pop3/src/op/fetch.rs b/crates/pop3/src/op/fetch.rs index e06672f1..19b48fe0 100644 --- a/crates/pop3/src/op/fetch.rs +++ b/crates/pop3/src/op/fetch.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::SessionStream; use jmap::email::metadata::MessageMetadata; diff --git a/crates/pop3/src/op/list.rs b/crates/pop3/src/op/list.rs index e75adeaf..0ee40097 100644 --- a/crates/pop3/src/op/list.rs +++ b/crates/pop3/src/op/list.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::SessionStream; diff --git a/crates/pop3/src/op/mod.rs b/crates/pop3/src/op/mod.rs index 3399ab2a..bb5f22d7 100644 --- a/crates/pop3/src/op/mod.rs +++ b/crates/pop3/src/op/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod authenticate; pub mod delete; diff --git a/crates/pop3/src/protocol/mod.rs b/crates/pop3/src/protocol/mod.rs index 7f6c07e8..1086ddf4 100644 --- a/crates/pop3/src/protocol/mod.rs +++ b/crates/pop3/src/protocol/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod request; pub mod response; diff --git a/crates/pop3/src/protocol/request.rs b/crates/pop3/src/protocol/request.rs index 0b70f0ce..829f9f36 100644 --- a/crates/pop3/src/protocol/request.rs +++ b/crates/pop3/src/protocol/request.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/pop3/src/protocol/response.rs b/crates/pop3/src/protocol/response.rs index 7b806c74..f1f9ec69 100644 --- a/crates/pop3/src/protocol/response.rs +++ b/crates/pop3/src/protocol/response.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, fmt::Display}; diff --git a/crates/pop3/src/session.rs b/crates/pop3/src/session.rs index b79216aa..ff3f785d 100644 --- a/crates/pop3/src/session.rs +++ b/crates/pop3/src/session.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/smtp/src/core/mod.rs b/crates/smtp/src/core/mod.rs index 960291f3..4fa124ca 100644 --- a/crates/smtp/src/core/mod.rs +++ b/crates/smtp/src/core/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ hash::Hash, diff --git a/crates/smtp/src/core/params.rs b/crates/smtp/src/core/params.rs index f4e7291b..9d7a24e1 100644 --- a/crates/smtp/src/core/params.rs +++ b/crates/smtp/src/core/params.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/smtp/src/core/throttle.rs b/crates/smtp/src/core/throttle.rs index cf9059ab..e393acb1 100644 --- a/crates/smtp/src/core/throttle.rs +++ b/crates/smtp/src/core/throttle.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{ config::smtp::{queue::QueueQuota, *}, diff --git a/crates/smtp/src/inbound/auth.rs b/crates/smtp/src/inbound/auth.rs index 2a9dcf0e..34cf4422 100644 --- a/crates/smtp/src/inbound/auth.rs +++ b/crates/smtp/src/inbound/auth.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{listener::SessionStream, AuthResult}; use mail_parser::decoders::base64::base64_decode; diff --git a/crates/smtp/src/inbound/data.rs b/crates/smtp/src/inbound/data.rs index a39dedc7..c79d3f3f 100644 --- a/crates/smtp/src/inbound/data.rs +++ b/crates/smtp/src/inbound/data.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ borrow::Cow, diff --git a/crates/smtp/src/inbound/ehlo.rs b/crates/smtp/src/inbound/ehlo.rs index 5ce8d265..151d6371 100644 --- a/crates/smtp/src/inbound/ehlo.rs +++ b/crates/smtp/src/inbound/ehlo.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, SystemTime}; diff --git a/crates/smtp/src/inbound/hooks/client.rs b/crates/smtp/src/inbound/hooks/client.rs index 0a3f4639..0aa3f2c7 100644 --- a/crates/smtp/src/inbound/hooks/client.rs +++ b/crates/smtp/src/inbound/hooks/client.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::config::smtp::session::MTAHook; diff --git a/crates/smtp/src/inbound/hooks/message.rs b/crates/smtp/src/inbound/hooks/message.rs index a7caee87..8b6c1dac 100644 --- a/crates/smtp/src/inbound/hooks/message.rs +++ b/crates/smtp/src/inbound/hooks/message.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashMap; use common::{ diff --git a/crates/smtp/src/inbound/hooks/mod.rs b/crates/smtp/src/inbound/hooks/mod.rs index 85a5e9f6..da106b26 100644 --- a/crates/smtp/src/inbound/hooks/mod.rs +++ b/crates/smtp/src/inbound/hooks/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod client; pub mod message; diff --git a/crates/smtp/src/inbound/mail.rs b/crates/smtp/src/inbound/mail.rs index 7875a2fe..0ffb6b27 100644 --- a/crates/smtp/src/inbound/mail.rs +++ b/crates/smtp/src/inbound/mail.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, SystemTime}; diff --git a/crates/smtp/src/inbound/milter/client.rs b/crates/smtp/src/inbound/milter/client.rs index fbbd0de3..f5394f4a 100644 --- a/crates/smtp/src/inbound/milter/client.rs +++ b/crates/smtp/src/inbound/milter/client.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::config::smtp::session::Milter; use rustls_pki_types::ServerName; diff --git a/crates/smtp/src/inbound/milter/macros.rs b/crates/smtp/src/inbound/milter/macros.rs index 9986d7cc..2d61a1a2 100644 --- a/crates/smtp/src/inbound/milter/macros.rs +++ b/crates/smtp/src/inbound/milter/macros.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, net::IpAddr}; diff --git a/crates/smtp/src/inbound/milter/message.rs b/crates/smtp/src/inbound/milter/message.rs index 778ff4e1..aa4f0ce0 100644 --- a/crates/smtp/src/inbound/milter/message.rs +++ b/crates/smtp/src/inbound/milter/message.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/smtp/src/inbound/milter/mod.rs b/crates/smtp/src/inbound/milter/mod.rs index 5a57f36a..a668ea48 100644 --- a/crates/smtp/src/inbound/milter/mod.rs +++ b/crates/smtp/src/inbound/milter/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, fmt::Display, net::IpAddr, time::Duration}; diff --git a/crates/smtp/src/inbound/milter/protocol.rs b/crates/smtp/src/inbound/milter/protocol.rs index 09fad424..f8bcba93 100644 --- a/crates/smtp/src/inbound/milter/protocol.rs +++ b/crates/smtp/src/inbound/milter/protocol.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::net::IpAddr; diff --git a/crates/smtp/src/inbound/milter/receiver.rs b/crates/smtp/src/inbound/milter/receiver.rs index c3a48804..cf7bd99a 100644 --- a/crates/smtp/src/inbound/milter/receiver.rs +++ b/crates/smtp/src/inbound/milter/receiver.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/smtp/src/inbound/mod.rs b/crates/smtp/src/inbound/mod.rs index 166b06a0..83ee1ceb 100644 --- a/crates/smtp/src/inbound/mod.rs +++ b/crates/smtp/src/inbound/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/smtp/src/inbound/rcpt.rs b/crates/smtp/src/inbound/rcpt.rs index a8166fc2..0b4b4b35 100644 --- a/crates/smtp/src/inbound/rcpt.rs +++ b/crates/smtp/src/inbound/rcpt.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{config::smtp::session::Stage, listener::SessionStream, scripts::ScriptModification}; use smtp_proto::{ diff --git a/crates/smtp/src/inbound/session.rs b/crates/smtp/src/inbound/session.rs index 945f18d7..28fddf74 100644 --- a/crates/smtp/src/inbound/session.rs +++ b/crates/smtp/src/inbound/session.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{ config::{server::ServerProtocol, smtp::session::Mechanism}, diff --git a/crates/smtp/src/inbound/spawn.rs b/crates/smtp/src/inbound/spawn.rs index b8a6c26a..9902bbaf 100644 --- a/crates/smtp/src/inbound/spawn.rs +++ b/crates/smtp/src/inbound/spawn.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Instant; diff --git a/crates/smtp/src/inbound/vrfy.rs b/crates/smtp/src/inbound/vrfy.rs index f846b21b..2b383313 100644 --- a/crates/smtp/src/inbound/vrfy.rs +++ b/crates/smtp/src/inbound/vrfy.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::SessionStream; use directory::DirectoryError; diff --git a/crates/smtp/src/lib.rs b/crates/smtp/src/lib.rs index 0eafdd11..68466bf2 100644 --- a/crates/smtp/src/lib.rs +++ b/crates/smtp/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::core::{throttle::ThrottleKeyHasherBuilder, TlsConnectors}; use core::{Inner, SmtpInstance, SMTP}; diff --git a/crates/smtp/src/outbound/dane/dnssec.rs b/crates/smtp/src/outbound/dane/dnssec.rs index 5bd5de13..1c2f11e3 100644 --- a/crates/smtp/src/outbound/dane/dnssec.rs +++ b/crates/smtp/src/outbound/dane/dnssec.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::config::smtp::resolver::{Tlsa, TlsaEntry}; use mail_auth::{ diff --git a/crates/smtp/src/outbound/dane/mod.rs b/crates/smtp/src/outbound/dane/mod.rs index d9674c0b..170bc59e 100644 --- a/crates/smtp/src/outbound/dane/mod.rs +++ b/crates/smtp/src/outbound/dane/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod dnssec; pub mod verify; diff --git a/crates/smtp/src/outbound/dane/verify.rs b/crates/smtp/src/outbound/dane/verify.rs index 2e6b3b9b..8e001a05 100644 --- a/crates/smtp/src/outbound/dane/verify.rs +++ b/crates/smtp/src/outbound/dane/verify.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::config::smtp::resolver::Tlsa; use rustls_pki_types::CertificateDer; diff --git a/crates/smtp/src/outbound/delivery.rs b/crates/smtp/src/outbound/delivery.rs index 2418fb60..72d25ed4 100644 --- a/crates/smtp/src/outbound/delivery.rs +++ b/crates/smtp/src/outbound/delivery.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::outbound::dane::verify::TlsaVerify; use crate::outbound::mta_sts::verify::VerifyPolicy; diff --git a/crates/smtp/src/outbound/local.rs b/crates/smtp/src/outbound/local.rs index ed105ba1..ac7c74c1 100644 --- a/crates/smtp/src/outbound/local.rs +++ b/crates/smtp/src/outbound/local.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{DeliveryEvent, DeliveryResult, IngestMessage}; use smtp_proto::Response; diff --git a/crates/smtp/src/outbound/lookup.rs b/crates/smtp/src/outbound/lookup.rs index a2f70f72..7e8e77e5 100644 --- a/crates/smtp/src/outbound/lookup.rs +++ b/crates/smtp/src/outbound/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ net::{IpAddr, Ipv4Addr, Ipv6Addr}, diff --git a/crates/smtp/src/outbound/mod.rs b/crates/smtp/src/outbound/mod.rs index e0e0db0f..c1083137 100644 --- a/crates/smtp/src/outbound/mod.rs +++ b/crates/smtp/src/outbound/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/smtp/src/outbound/mta_sts/lookup.rs b/crates/smtp/src/outbound/mta_sts/lookup.rs index 8030a322..58d4b93d 100644 --- a/crates/smtp/src/outbound/mta_sts/lookup.rs +++ b/crates/smtp/src/outbound/mta_sts/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ fmt::Display, diff --git a/crates/smtp/src/outbound/mta_sts/mod.rs b/crates/smtp/src/outbound/mta_sts/mod.rs index a852e822..d6c05c87 100644 --- a/crates/smtp/src/outbound/mta_sts/mod.rs +++ b/crates/smtp/src/outbound/mta_sts/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod lookup; pub mod parse; diff --git a/crates/smtp/src/outbound/mta_sts/parse.rs b/crates/smtp/src/outbound/mta_sts/parse.rs index abd37e58..6121ef56 100644 --- a/crates/smtp/src/outbound/mta_sts/parse.rs +++ b/crates/smtp/src/outbound/mta_sts/parse.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::config::smtp::resolver::{Mode, MxPattern, Policy}; diff --git a/crates/smtp/src/outbound/mta_sts/verify.rs b/crates/smtp/src/outbound/mta_sts/verify.rs index ec6eceae..827e556a 100644 --- a/crates/smtp/src/outbound/mta_sts/verify.rs +++ b/crates/smtp/src/outbound/mta_sts/verify.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::config::smtp::resolver::{Mode, MxPattern, Policy}; diff --git a/crates/smtp/src/outbound/session.rs b/crates/smtp/src/outbound/session.rs index d0857693..c4c4bd07 100644 --- a/crates/smtp/src/outbound/session.rs +++ b/crates/smtp/src/outbound/session.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::config::smtp::queue::RequireOptional; use mail_send::{smtp::AssertReply, Credentials, SmtpClient}; diff --git a/crates/smtp/src/queue/dsn.rs b/crates/smtp/src/queue/dsn.rs index 4241b3f8..52b87d98 100644 --- a/crates/smtp/src/queue/dsn.rs +++ b/crates/smtp/src/queue/dsn.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use chrono::{TimeZone, Utc}; use common::webhooks::{WebhookDSN, WebhookDSNType, WebhookPayload, WebhookType}; diff --git a/crates/smtp/src/queue/manager.rs b/crates/smtp/src/queue/manager.rs index ab05bca2..aa2ae6ad 100644 --- a/crates/smtp/src/queue/manager.rs +++ b/crates/smtp/src/queue/manager.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{sync::atomic::Ordering, time::Duration}; diff --git a/crates/smtp/src/queue/mod.rs b/crates/smtp/src/queue/mod.rs index b7d92562..cb68709a 100644 --- a/crates/smtp/src/queue/mod.rs +++ b/crates/smtp/src/queue/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ fmt::Display, diff --git a/crates/smtp/src/queue/quota.rs b/crates/smtp/src/queue/quota.rs index 3492d68a..c181b20c 100644 --- a/crates/smtp/src/queue/quota.rs +++ b/crates/smtp/src/queue/quota.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{config::smtp::queue::QueueQuota, expr::functions::ResolveVariable}; use store::{ diff --git a/crates/smtp/src/queue/spool.rs b/crates/smtp/src/queue/spool.rs index 6167b5de..c09747e2 100644 --- a/crates/smtp/src/queue/spool.rs +++ b/crates/smtp/src/queue/spool.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::queue::DomainPart; use std::borrow::Cow; diff --git a/crates/smtp/src/queue/throttle.rs b/crates/smtp/src/queue/throttle.rs index 791dfdcc..e5e60a33 100644 --- a/crates/smtp/src/queue/throttle.rs +++ b/crates/smtp/src/queue/throttle.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{ config::smtp::Throttle, diff --git a/crates/smtp/src/reporting/analysis.rs b/crates/smtp/src/reporting/analysis.rs index 8c32fc77..6691f2ca 100644 --- a/crates/smtp/src/reporting/analysis.rs +++ b/crates/smtp/src/reporting/analysis.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ borrow::Cow, diff --git a/crates/smtp/src/reporting/dkim.rs b/crates/smtp/src/reporting/dkim.rs index 5aaa2c40..be5f885b 100644 --- a/crates/smtp/src/reporting/dkim.rs +++ b/crates/smtp/src/reporting/dkim.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::SessionStream; use mail_auth::{ diff --git a/crates/smtp/src/reporting/dmarc.rs b/crates/smtp/src/reporting/dmarc.rs index 51779a33..efebba6a 100644 --- a/crates/smtp/src/reporting/dmarc.rs +++ b/crates/smtp/src/reporting/dmarc.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::hash_map::Entry; diff --git a/crates/smtp/src/reporting/mod.rs b/crates/smtp/src/reporting/mod.rs index 4bbdc43d..e5dda014 100644 --- a/crates/smtp/src/reporting/mod.rs +++ b/crates/smtp/src/reporting/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{io, sync::Arc, time::SystemTime}; diff --git a/crates/smtp/src/reporting/scheduler.rs b/crates/smtp/src/reporting/scheduler.rs index e6e526df..61235e8f 100644 --- a/crates/smtp/src/reporting/scheduler.rs +++ b/crates/smtp/src/reporting/scheduler.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::{AHashMap, RandomState}; use common::Core; diff --git a/crates/smtp/src/reporting/spf.rs b/crates/smtp/src/reporting/spf.rs index 8ad915cd..f7354b24 100644 --- a/crates/smtp/src/reporting/spf.rs +++ b/crates/smtp/src/reporting/spf.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::listener::SessionStream; use mail_auth::{report::AuthFailureType, AuthenticationResults, SpfOutput}; diff --git a/crates/smtp/src/reporting/tls.rs b/crates/smtp/src/reporting/tls.rs index 87fcf8e1..ea5723ac 100644 --- a/crates/smtp/src/reporting/tls.rs +++ b/crates/smtp/src/reporting/tls.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{collections::hash_map::Entry, sync::Arc, time::Duration}; diff --git a/crates/smtp/src/scripts/envelope.rs b/crates/smtp/src/scripts/envelope.rs index f119aed4..5cf1177b 100644 --- a/crates/smtp/src/scripts/envelope.rs +++ b/crates/smtp/src/scripts/envelope.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use sieve::Envelope; use smtp_proto::{ diff --git a/crates/smtp/src/scripts/event_loop.rs b/crates/smtp/src/scripts/event_loop.rs index 7ee087a1..a10709ab 100644 --- a/crates/smtp/src/scripts/event_loop.rs +++ b/crates/smtp/src/scripts/event_loop.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, sync::Arc}; diff --git a/crates/smtp/src/scripts/exec.rs b/crates/smtp/src/scripts/exec.rs index 6592920c..d7887fc5 100644 --- a/crates/smtp/src/scripts/exec.rs +++ b/crates/smtp/src/scripts/exec.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{sync::Arc, time::SystemTime}; diff --git a/crates/smtp/src/scripts/mod.rs b/crates/smtp/src/scripts/mod.rs index b744a34a..68972b34 100644 --- a/crates/smtp/src/scripts/mod.rs +++ b/crates/smtp/src/scripts/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::borrow::Cow; diff --git a/crates/store/src/backend/elastic/index.rs b/crates/store/src/backend/elastic/index.rs index 57d74db9..e5fb2afb 100644 --- a/crates/store/src/backend/elastic/index.rs +++ b/crates/store/src/backend/elastic/index.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, fmt::Display}; diff --git a/crates/store/src/backend/elastic/mod.rs b/crates/store/src/backend/elastic/mod.rs index 382d0fe1..fb00057c 100644 --- a/crates/store/src/backend/elastic/mod.rs +++ b/crates/store/src/backend/elastic/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use elasticsearch::{ auth::Credentials, diff --git a/crates/store/src/backend/elastic/query.rs b/crates/store/src/backend/elastic/query.rs index dfdedbae..39814c4a 100644 --- a/crates/store/src/backend/elastic/query.rs +++ b/crates/store/src/backend/elastic/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, fmt::Display}; diff --git a/crates/store/src/backend/foundationdb/blob.rs b/crates/store/src/backend/foundationdb/blob.rs index 6e4b0702..79542f0d 100644 --- a/crates/store/src/backend/foundationdb/blob.rs +++ b/crates/store/src/backend/foundationdb/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::Range; diff --git a/crates/store/src/backend/foundationdb/main.rs b/crates/store/src/backend/foundationdb/main.rs index 2534c811..2f130b48 100644 --- a/crates/store/src/backend/foundationdb/main.rs +++ b/crates/store/src/backend/foundationdb/main.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/store/src/backend/foundationdb/mod.rs b/crates/store/src/backend/foundationdb/mod.rs index 88fbdc3e..d5fd11f3 100644 --- a/crates/store/src/backend/foundationdb/mod.rs +++ b/crates/store/src/backend/foundationdb/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/crates/store/src/backend/foundationdb/read.rs b/crates/store/src/backend/foundationdb/read.rs index 080fb5af..2cfc054d 100644 --- a/crates/store/src/backend/foundationdb/read.rs +++ b/crates/store/src/backend/foundationdb/read.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use foundationdb::{ future::FdbSlice, diff --git a/crates/store/src/backend/foundationdb/write.rs b/crates/store/src/backend/foundationdb/write.rs index cdf1d505..35118e55 100644 --- a/crates/store/src/backend/foundationdb/write.rs +++ b/crates/store/src/backend/foundationdb/write.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ cmp::Ordering, diff --git a/crates/store/src/backend/fs/mod.rs b/crates/store/src/backend/fs/mod.rs index abeff842..8f069e29 100644 --- a/crates/store/src/backend/fs/mod.rs +++ b/crates/store/src/backend/fs/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{io::SeekFrom, ops::Range, path::PathBuf}; diff --git a/crates/store/src/backend/memory/mod.rs b/crates/store/src/backend/memory/mod.rs index 56decdc5..54d0f5ef 100644 --- a/crates/store/src/backend/memory/mod.rs +++ b/crates/store/src/backend/memory/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashMap; use utils::{config::Config, glob::GlobPattern}; diff --git a/crates/store/src/backend/mod.rs b/crates/store/src/backend/mod.rs index cf0b5cfc..3af7828d 100644 --- a/crates/store/src/backend/mod.rs +++ b/crates/store/src/backend/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ #[cfg(feature = "elastic")] pub mod elastic; diff --git a/crates/store/src/backend/mysql/blob.rs b/crates/store/src/backend/mysql/blob.rs index 92c3cb4c..ac725f0a 100644 --- a/crates/store/src/backend/mysql/blob.rs +++ b/crates/store/src/backend/mysql/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::Range; diff --git a/crates/store/src/backend/mysql/lookup.rs b/crates/store/src/backend/mysql/lookup.rs index 8bc7f442..af080901 100644 --- a/crates/store/src/backend/mysql/lookup.rs +++ b/crates/store/src/backend/mysql/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mysql_async::{prelude::Queryable, Params, Row}; diff --git a/crates/store/src/backend/mysql/main.rs b/crates/store/src/backend/mysql/main.rs index 4d9c893a..078e9feb 100644 --- a/crates/store/src/backend/mysql/main.rs +++ b/crates/store/src/backend/mysql/main.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/store/src/backend/mysql/mod.rs b/crates/store/src/backend/mysql/mod.rs index 5b9b028d..408a3c30 100644 --- a/crates/store/src/backend/mysql/mod.rs +++ b/crates/store/src/backend/mysql/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mysql_async::Pool; diff --git a/crates/store/src/backend/mysql/read.rs b/crates/store/src/backend/mysql/read.rs index e6762927..d5f3b647 100644 --- a/crates/store/src/backend/mysql/read.rs +++ b/crates/store/src/backend/mysql/read.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use futures::TryStreamExt; use mysql_async::{prelude::Queryable, Row}; diff --git a/crates/store/src/backend/mysql/write.rs b/crates/store/src/backend/mysql/write.rs index 13e12bf7..3be983bb 100644 --- a/crates/store/src/backend/mysql/write.rs +++ b/crates/store/src/backend/mysql/write.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/crates/store/src/backend/postgres/blob.rs b/crates/store/src/backend/postgres/blob.rs index 92490052..474d6ddc 100644 --- a/crates/store/src/backend/postgres/blob.rs +++ b/crates/store/src/backend/postgres/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::Range; diff --git a/crates/store/src/backend/postgres/lookup.rs b/crates/store/src/backend/postgres/lookup.rs index cce2dda9..a59770dd 100644 --- a/crates/store/src/backend/postgres/lookup.rs +++ b/crates/store/src/backend/postgres/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{QueryResult, QueryType}; diff --git a/crates/store/src/backend/postgres/main.rs b/crates/store/src/backend/postgres/main.rs index f85d7fcc..11afef0e 100644 --- a/crates/store/src/backend/postgres/main.rs +++ b/crates/store/src/backend/postgres/main.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/store/src/backend/postgres/mod.rs b/crates/store/src/backend/postgres/mod.rs index 42d85c57..f812b77d 100644 --- a/crates/store/src/backend/postgres/mod.rs +++ b/crates/store/src/backend/postgres/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use deadpool_postgres::{Pool, PoolError}; diff --git a/crates/store/src/backend/postgres/read.rs b/crates/store/src/backend/postgres/read.rs index 883fd1c5..6324d71e 100644 --- a/crates/store/src/backend/postgres/read.rs +++ b/crates/store/src/backend/postgres/read.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use futures::{pin_mut, TryStreamExt}; use roaring::RoaringBitmap; diff --git a/crates/store/src/backend/postgres/tls.rs b/crates/store/src/backend/postgres/tls.rs index e723865b..c09267bf 100644 --- a/crates/store/src/backend/postgres/tls.rs +++ b/crates/store/src/backend/postgres/tls.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ // Credits: https://github.com/jbg/tokio-postgres-rustls diff --git a/crates/store/src/backend/postgres/write.rs b/crates/store/src/backend/postgres/write.rs index c5189081..2c365a34 100644 --- a/crates/store/src/backend/postgres/write.rs +++ b/crates/store/src/backend/postgres/write.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/crates/store/src/backend/redis/lookup.rs b/crates/store/src/backend/redis/lookup.rs index 814fcd52..bf9a68d7 100644 --- a/crates/store/src/backend/redis/lookup.rs +++ b/crates/store/src/backend/redis/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use redis::AsyncCommands; diff --git a/crates/store/src/backend/redis/mod.rs b/crates/store/src/backend/redis/mod.rs index 607b827a..34356676 100644 --- a/crates/store/src/backend/redis/mod.rs +++ b/crates/store/src/backend/redis/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/store/src/backend/redis/pool.rs b/crates/store/src/backend/redis/pool.rs index 041a8801..3c8a227e 100644 --- a/crates/store/src/backend/redis/pool.rs +++ b/crates/store/src/backend/redis/pool.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use deadpool::managed; use redis::{ diff --git a/crates/store/src/backend/rocksdb/blob.rs b/crates/store/src/backend/rocksdb/blob.rs index c9177e54..0ac348a8 100644 --- a/crates/store/src/backend/rocksdb/blob.rs +++ b/crates/store/src/backend/rocksdb/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::Range; diff --git a/crates/store/src/backend/rocksdb/main.rs b/crates/store/src/backend/rocksdb/main.rs index a2828229..88848a08 100644 --- a/crates/store/src/backend/rocksdb/main.rs +++ b/crates/store/src/backend/rocksdb/main.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::path::PathBuf; diff --git a/crates/store/src/backend/rocksdb/mod.rs b/crates/store/src/backend/rocksdb/mod.rs index af02bb91..17e93ecb 100644 --- a/crates/store/src/backend/rocksdb/mod.rs +++ b/crates/store/src/backend/rocksdb/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/store/src/backend/rocksdb/read.rs b/crates/store/src/backend/rocksdb/read.rs index 4d296729..cf377b8f 100644 --- a/crates/store/src/backend/rocksdb/read.rs +++ b/crates/store/src/backend/rocksdb/read.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use roaring::RoaringBitmap; use rocksdb::{Direction, IteratorMode}; diff --git a/crates/store/src/backend/rocksdb/write.rs b/crates/store/src/backend/rocksdb/write.rs index 6a32f815..5fbaf13d 100644 --- a/crates/store/src/backend/rocksdb/write.rs +++ b/crates/store/src/backend/rocksdb/write.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ sync::Arc, diff --git a/crates/store/src/backend/s3/mod.rs b/crates/store/src/backend/s3/mod.rs index b677559c..cbcdc9dd 100644 --- a/crates/store/src/backend/s3/mod.rs +++ b/crates/store/src/backend/s3/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{io::Write, ops::Range, time::Duration}; diff --git a/crates/store/src/backend/sqlite/blob.rs b/crates/store/src/backend/sqlite/blob.rs index 1506724d..3f2ee84c 100644 --- a/crates/store/src/backend/sqlite/blob.rs +++ b/crates/store/src/backend/sqlite/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::Range; diff --git a/crates/store/src/backend/sqlite/lookup.rs b/crates/store/src/backend/sqlite/lookup.rs index 379bca02..dc4490d7 100644 --- a/crates/store/src/backend/sqlite/lookup.rs +++ b/crates/store/src/backend/sqlite/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use rusqlite::{types::FromSql, Row, Rows, ToSql}; diff --git a/crates/store/src/backend/sqlite/main.rs b/crates/store/src/backend/sqlite/main.rs index 49732bb7..7fefaaed 100644 --- a/crates/store/src/backend/sqlite/main.rs +++ b/crates/store/src/backend/sqlite/main.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use r2d2::Pool; use tokio::sync::oneshot; diff --git a/crates/store/src/backend/sqlite/mod.rs b/crates/store/src/backend/sqlite/mod.rs index c4de6d10..ad3a06b3 100644 --- a/crates/store/src/backend/sqlite/mod.rs +++ b/crates/store/src/backend/sqlite/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use r2d2::Pool; diff --git a/crates/store/src/backend/sqlite/pool.rs b/crates/store/src/backend/sqlite/pool.rs index 481e93fe..963c3237 100644 --- a/crates/store/src/backend/sqlite/pool.rs +++ b/crates/store/src/backend/sqlite/pool.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use rusqlite::{Connection, Error, OpenFlags}; use std::fmt; diff --git a/crates/store/src/backend/sqlite/read.rs b/crates/store/src/backend/sqlite/read.rs index 029ea049..104ed76d 100644 --- a/crates/store/src/backend/sqlite/read.rs +++ b/crates/store/src/backend/sqlite/read.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use roaring::RoaringBitmap; use rusqlite::OptionalExtension; diff --git a/crates/store/src/backend/sqlite/write.rs b/crates/store/src/backend/sqlite/write.rs index ff7cecf8..6e2586c1 100644 --- a/crates/store/src/backend/sqlite/write.rs +++ b/crates/store/src/backend/sqlite/write.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use roaring::RoaringBitmap; use rusqlite::{params, OptionalExtension, TransactionBehavior}; diff --git a/crates/store/src/config.rs b/crates/store/src/config.rs index d84d3f54..d8c40153 100644 --- a/crates/store/src/config.rs +++ b/crates/store/src/config.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/store/src/dispatch/blob.rs b/crates/store/src/dispatch/blob.rs index 06d94121..4ea58d65 100644 --- a/crates/store/src/dispatch/blob.rs +++ b/crates/store/src/dispatch/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, ops::Range}; diff --git a/crates/store/src/dispatch/fts.rs b/crates/store/src/dispatch/fts.rs index 24a5ad22..4eb010c2 100644 --- a/crates/store/src/dispatch/fts.rs +++ b/crates/store/src/dispatch/fts.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/store/src/dispatch/lookup.rs b/crates/store/src/dispatch/lookup.rs index 95d965c0..93467b61 100644 --- a/crates/store/src/dispatch/lookup.rs +++ b/crates/store/src/dispatch/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::config::Rate; diff --git a/crates/store/src/dispatch/mod.rs b/crates/store/src/dispatch/mod.rs index 6b953076..efd03b53 100644 --- a/crates/store/src/dispatch/mod.rs +++ b/crates/store/src/dispatch/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use roaring::RoaringBitmap; diff --git a/crates/store/src/dispatch/store.rs b/crates/store/src/dispatch/store.rs index 43d7cc18..ee5f5623 100644 --- a/crates/store/src/dispatch/store.rs +++ b/crates/store/src/dispatch/store.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::{BitAndAssign, Range}; diff --git a/crates/store/src/fts/index.rs b/crates/store/src/fts/index.rs index 8a178837..8e0edc20 100644 --- a/crates/store/src/fts/index.rs +++ b/crates/store/src/fts/index.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, fmt::Display}; diff --git a/crates/store/src/fts/mod.rs b/crates/store/src/fts/mod.rs index 80871a18..c38767d9 100644 --- a/crates/store/src/fts/mod.rs +++ b/crates/store/src/fts/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/store/src/fts/pdf.rs b/crates/store/src/fts/pdf.rs index 85386ff6..3f2f752d 100644 --- a/crates/store/src/fts/pdf.rs +++ b/crates/store/src/fts/pdf.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::panic; diff --git a/crates/store/src/fts/postings.rs b/crates/store/src/fts/postings.rs index 28af5b46..fa4ba394 100644 --- a/crates/store/src/fts/postings.rs +++ b/crates/store/src/fts/postings.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::cmp::Ordering; diff --git a/crates/store/src/fts/query.rs b/crates/store/src/fts/query.rs index f1f55c50..7b24c02a 100644 --- a/crates/store/src/fts/query.rs +++ b/crates/store/src/fts/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ fmt::Display, diff --git a/crates/store/src/lib.rs b/crates/store/src/lib.rs index 3f602b25..ea93ed9e 100644 --- a/crates/store/src/lib.rs +++ b/crates/store/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, fmt::Display, sync::Arc}; diff --git a/crates/store/src/query/acl.rs b/crates/store/src/query/acl.rs index 09404c41..ca94a584 100644 --- a/crates/store/src/query/acl.rs +++ b/crates/store/src/query/acl.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{ write::{key::DeserializeBigEndian, BatchBuilder, Operation, ValueClass, ValueOp}, diff --git a/crates/store/src/query/filter.rs b/crates/store/src/query/filter.rs index a260dafb..9a30e00b 100644 --- a/crates/store/src/query/filter.rs +++ b/crates/store/src/query/filter.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::{BitAndAssign, BitOrAssign, BitXorAssign}; diff --git a/crates/store/src/query/log.rs b/crates/store/src/query/log.rs index 750bc08c..5439aaa9 100644 --- a/crates/store/src/query/log.rs +++ b/crates/store/src/query/log.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use utils::codec::leb128::Leb128Iterator; diff --git a/crates/store/src/query/mod.rs b/crates/store/src/query/mod.rs index b62faeed..9a9822f1 100644 --- a/crates/store/src/query/mod.rs +++ b/crates/store/src/query/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod acl; pub mod filter; diff --git a/crates/store/src/query/sort.rs b/crates/store/src/query/sort.rs index ed21e042..7432609d 100644 --- a/crates/store/src/query/sort.rs +++ b/crates/store/src/query/sort.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::cmp::Ordering; diff --git a/crates/store/src/write/assert.rs b/crates/store/src/write/assert.rs index e9ba03b5..d48848cd 100644 --- a/crates/store/src/write/assert.rs +++ b/crates/store/src/write/assert.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::{Deserialize, U32_LEN, U64_LEN}; diff --git a/crates/store/src/write/batch.rs b/crates/store/src/write/batch.rs index c3b68fe5..0587fa89 100644 --- a/crates/store/src/write/batch.rs +++ b/crates/store/src/write/batch.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use super::{ assert::ToAssertValue, Batch, BatchBuilder, BitmapClass, HasFlag, IntoOperations, diff --git a/crates/store/src/write/blob.rs b/crates/store/src/write/blob.rs index bd3600dc..4462fa2f 100644 --- a/crates/store/src/write/blob.rs +++ b/crates/store/src/write/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashSet; use utils::{BlobHash, BLOB_HASH_LEN}; diff --git a/crates/store/src/write/hash.rs b/crates/store/src/write/hash.rs index c429fe71..6164948d 100644 --- a/crates/store/src/write/hash.rs +++ b/crates/store/src/write/hash.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::backend::MAX_TOKEN_LENGTH; diff --git a/crates/store/src/write/key.rs b/crates/store/src/write/key.rs index 470dfb85..1165f90b 100644 --- a/crates/store/src/write/key.rs +++ b/crates/store/src/write/key.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::convert::TryInto; use utils::{codec::leb128::Leb128_, BLOB_HASH_LEN}; diff --git a/crates/store/src/write/log.rs b/crates/store/src/write/log.rs index c3edd31b..5440c6c3 100644 --- a/crates/store/src/write/log.rs +++ b/crates/store/src/write/log.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashSet; use utils::{codec::leb128::Leb128Vec, map::vec_map::VecMap}; diff --git a/crates/store/src/write/mod.rs b/crates/store/src/write/mod.rs index ef56b1fa..cb901b69 100644 --- a/crates/store/src/write/mod.rs +++ b/crates/store/src/write/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ borrow::Cow, diff --git a/crates/store/src/write/purge.rs b/crates/store/src/write/purge.rs index 1653613f..e313acc8 100644 --- a/crates/store/src/write/purge.rs +++ b/crates/store/src/write/purge.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Display; diff --git a/crates/utils/src/codec/base32_custom.rs b/crates/utils/src/codec/base32_custom.rs index d9cba474..b6609b4a 100644 --- a/crates/utils/src/codec/base32_custom.rs +++ b/crates/utils/src/codec/base32_custom.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{io::Write, slice::Iter}; diff --git a/crates/utils/src/codec/leb128.rs b/crates/utils/src/codec/leb128.rs index 4ac637e1..6a17e1f0 100644 --- a/crates/utils/src/codec/leb128.rs +++ b/crates/utils/src/codec/leb128.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ #![allow(dead_code)] diff --git a/crates/utils/src/codec/mod.rs b/crates/utils/src/codec/mod.rs index 66c3305c..715fb40b 100644 --- a/crates/utils/src/codec/mod.rs +++ b/crates/utils/src/codec/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod base32_custom; pub mod leb128; diff --git a/crates/utils/src/config/cron.rs b/crates/utils/src/config/cron.rs index 66ff3ebe..9edf8c18 100644 --- a/crates/utils/src/config/cron.rs +++ b/crates/utils/src/config/cron.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/crates/utils/src/config/ipmask.rs b/crates/utils/src/config/ipmask.rs index fc524598..bb0c80ac 100644 --- a/crates/utils/src/config/ipmask.rs +++ b/crates/utils/src/config/ipmask.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr}; diff --git a/crates/utils/src/config/mod.rs b/crates/utils/src/config/mod.rs index 9b779f00..5a215527 100644 --- a/crates/utils/src/config/mod.rs +++ b/crates/utils/src/config/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod cron; pub mod ipmask; diff --git a/crates/utils/src/config/parser.rs b/crates/utils/src/config/parser.rs index a6d9782c..0f618005 100644 --- a/crates/utils/src/config/parser.rs +++ b/crates/utils/src/config/parser.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::{btree_map::Entry, BTreeMap}, diff --git a/crates/utils/src/config/utils.rs b/crates/utils/src/config/utils.rs index d3608591..125dae58 100644 --- a/crates/utils/src/config/utils.rs +++ b/crates/utils/src/config/utils.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ net::{IpAddr, Ipv4Addr, Ipv6Addr}, diff --git a/crates/utils/src/glob.rs b/crates/utils/src/glob.rs index 513599e4..668fb21e 100644 --- a/crates/utils/src/glob.rs +++ b/crates/utils/src/glob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Sieve Interpreter. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ #[derive(Debug, Clone, PartialEq, Eq)] pub struct GlobPattern { diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs index 6323814a..35359d7a 100644 --- a/crates/utils/src/lib.rs +++ b/crates/utils/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/crates/utils/src/lru_cache.rs b/crates/utils/src/lru_cache.rs index c6fcfafc..15250404 100644 --- a/crates/utils/src/lru_cache.rs +++ b/crates/utils/src/lru_cache.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Borrow, hash::Hash}; diff --git a/crates/utils/src/map/bitmap.rs b/crates/utils/src/map/bitmap.rs index 3cf6e2cb..0759df74 100644 --- a/crates/utils/src/map/bitmap.rs +++ b/crates/utils/src/map/bitmap.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::ops::Deref; diff --git a/crates/utils/src/map/mod.rs b/crates/utils/src/map/mod.rs index 67d1917f..88094be6 100644 --- a/crates/utils/src/map/mod.rs +++ b/crates/utils/src/map/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod bitmap; pub mod mutex_map; diff --git a/crates/utils/src/map/mutex_map.rs b/crates/utils/src/map/mutex_map.rs index ffabf287..653917f7 100644 --- a/crates/utils/src/map/mutex_map.rs +++ b/crates/utils/src/map/mutex_map.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart JMAP Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use core::hash::Hash; use std::hash::Hasher; diff --git a/crates/utils/src/map/ttl_dashmap.rs b/crates/utils/src/map/ttl_dashmap.rs index c70930cd..7cdec783 100644 --- a/crates/utils/src/map/ttl_dashmap.rs +++ b/crates/utils/src/map/ttl_dashmap.rs @@ -1,11 +1,7 @@ /* - * Copyright (c) 2020-2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * Licensed under the Apache License, Version 2.0 or the MIT license - * , at your - * option. This file may not be copied, modified, or distributed - * except according to those terms. + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL */ use std::{borrow::Borrow, hash::Hash, time::Instant}; diff --git a/crates/utils/src/map/vec_map.rs b/crates/utils/src/map/vec_map.rs index 86641251..d39087c9 100644 --- a/crates/utils/src/map/vec_map.rs +++ b/crates/utils/src/map/vec_map.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Borrow, fmt}; diff --git a/crates/utils/src/snowflake.rs b/crates/utils/src/snowflake.rs index 67e38863..70475a7c 100644 --- a/crates/utils/src/snowflake.rs +++ b/crates/utils/src/snowflake.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ sync::atomic::{AtomicU64, Ordering}, diff --git a/crates/utils/src/suffixlist.rs b/crates/utils/src/suffixlist.rs index 5a687035..e0921abe 100644 --- a/crates/utils/src/suffixlist.rs +++ b/crates/utils/src/suffixlist.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::io::Read; diff --git a/crates/utils/src/url_params.rs b/crates/utils/src/url_params.rs index 6588914d..c0a7bb9e 100644 --- a/crates/utils/src/url_params.rs +++ b/crates/utils/src/url_params.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, collections::HashMap}; diff --git a/install.sh b/install.sh index 8bc9edc8..aba0bb49 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,12 @@ #!/usr/bin/env sh # shellcheck shell=dash +# +# SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd +# +# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL +# + # Stalwart Mail Server install script -- based on the rustup installation script. set -e diff --git a/resources/config/build.py b/resources/config/build.py index 7bb9ed0b..a1d35807 100644 --- a/resources/config/build.py +++ b/resources/config/build.py @@ -1,3 +1,9 @@ +# +# SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd +# +# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL +# + import os # Define the scripts and their component files diff --git a/tests/src/directory/imap.rs b/tests/src/directory/imap.rs index eadba5ba..2d55e3e9 100644 --- a/tests/src/directory/imap.rs +++ b/tests/src/directory/imap.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/tests/src/directory/internal.rs b/tests/src/directory/internal.rs index fb669841..2d42cf31 100644 --- a/tests/src/directory/internal.rs +++ b/tests/src/directory/internal.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashSet; use directory::{ diff --git a/tests/src/directory/ldap.rs b/tests/src/directory/ldap.rs index 770c0797..a7fefaa8 100644 --- a/tests/src/directory/ldap.rs +++ b/tests/src/directory/ldap.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fmt::Debug; diff --git a/tests/src/directory/mod.rs b/tests/src/directory/mod.rs index 4f9a4d23..d6efc3e2 100644 --- a/tests/src/directory/mod.rs +++ b/tests/src/directory/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod imap; pub mod internal; diff --git a/tests/src/directory/smtp.rs b/tests/src/directory/smtp.rs index b2b130c6..07b1a8a6 100644 --- a/tests/src/directory/smtp.rs +++ b/tests/src/directory/smtp.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/tests/src/directory/sql.rs b/tests/src/directory/sql.rs index acc6c1b9..9bc69dc0 100644 --- a/tests/src/directory/sql.rs +++ b/tests/src/directory/sql.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::{backend::internal::manage::ManageDirectory, Principal, QueryBy, Type}; use mail_send::Credentials; diff --git a/tests/src/imap/acl.rs b/tests/src/imap/acl.rs index 3ab547f7..156ba1f3 100644 --- a/tests/src/imap/acl.rs +++ b/tests/src/imap/acl.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::ResponseType; diff --git a/tests/src/imap/append.rs b/tests/src/imap/append.rs index 358b353f..1a4c60d0 100644 --- a/tests/src/imap/append.rs +++ b/tests/src/imap/append.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fs, io}; diff --git a/tests/src/imap/basic.rs b/tests/src/imap/basic.rs index 1bbfec19..acaedb86 100644 --- a/tests/src/imap/basic.rs +++ b/tests/src/imap/basic.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap::op::authenticate::decode_challenge_oauth; use imap_proto::ResponseType; diff --git a/tests/src/imap/body_structure.rs b/tests/src/imap/body_structure.rs index 2ce32b36..b9363b81 100644 --- a/tests/src/imap/body_structure.rs +++ b/tests/src/imap/body_structure.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::fs; diff --git a/tests/src/imap/condstore.rs b/tests/src/imap/condstore.rs index d8146022..244b31bc 100644 --- a/tests/src/imap/condstore.rs +++ b/tests/src/imap/condstore.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::ResponseType; diff --git a/tests/src/imap/copy_move.rs b/tests/src/imap/copy_move.rs index 9b3ccbf0..b990c3d5 100644 --- a/tests/src/imap/copy_move.rs +++ b/tests/src/imap/copy_move.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::ResponseType; diff --git a/tests/src/imap/fetch.rs b/tests/src/imap/fetch.rs index f5c6fe48..86b3da6f 100644 --- a/tests/src/imap/fetch.rs +++ b/tests/src/imap/fetch.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::ResponseType; diff --git a/tests/src/imap/idle.rs b/tests/src/imap/idle.rs index 21b73007..47828561 100644 --- a/tests/src/imap/idle.rs +++ b/tests/src/imap/idle.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::ResponseType; diff --git a/tests/src/imap/mailbox.rs b/tests/src/imap/mailbox.rs index 84517774..ded1b2be 100644 --- a/tests/src/imap/mailbox.rs +++ b/tests/src/imap/mailbox.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap::op::list::matches_pattern; use imap_proto::ResponseType; diff --git a/tests/src/imap/managesieve.rs b/tests/src/imap/managesieve.rs index ed3fcf48..31a1534c 100644 --- a/tests/src/imap/managesieve.rs +++ b/tests/src/imap/managesieve.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/imap/mod.rs b/tests/src/imap/mod.rs index c8316322..b3ba31c4 100644 --- a/tests/src/imap/mod.rs +++ b/tests/src/imap/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod acl; pub mod append; diff --git a/tests/src/imap/pop.rs b/tests/src/imap/pop.rs index e8cd9fa2..489b407e 100644 --- a/tests/src/imap/pop.rs +++ b/tests/src/imap/pop.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use mail_send::smtp::tls::build_tls_connector; use rustls_pki_types::ServerName; diff --git a/tests/src/imap/search.rs b/tests/src/imap/search.rs index b1bfd12a..8de789e5 100644 --- a/tests/src/imap/search.rs +++ b/tests/src/imap/search.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::ResponseType; diff --git a/tests/src/imap/store.rs b/tests/src/imap/store.rs index bc0fd6e6..31e0f73b 100644 --- a/tests/src/imap/store.rs +++ b/tests/src/imap/store.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::ResponseType; diff --git a/tests/src/imap/thread.rs b/tests/src/imap/thread.rs index cf043655..87559147 100644 --- a/tests/src/imap/thread.rs +++ b/tests/src/imap/thread.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2020-2022, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use imap_proto::ResponseType; diff --git a/tests/src/jmap/auth_acl.rs b/tests/src/jmap/auth_acl.rs index d687535c..19d169dd 100644 --- a/tests/src/jmap/auth_acl.rs +++ b/tests/src/jmap/auth_acl.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::backend::internal::manage::ManageDirectory; use jmap::mailbox::{INBOX_ID, TRASH_ID}; diff --git a/tests/src/jmap/auth_limits.rs b/tests/src/jmap/auth_limits.rs index 977414b6..d96231d9 100644 --- a/tests/src/jmap/auth_limits.rs +++ b/tests/src/jmap/auth_limits.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ net::{IpAddr, Ipv4Addr}, diff --git a/tests/src/jmap/auth_oauth.rs b/tests/src/jmap/auth_oauth.rs index 337c99d6..8f3c7e51 100644 --- a/tests/src/jmap/auth_oauth.rs +++ b/tests/src/jmap/auth_oauth.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/jmap/blob.rs b/tests/src/jmap/blob.rs index b9c34042..5121be12 100644 --- a/tests/src/jmap/blob.rs +++ b/tests/src/jmap/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::backend::internal::manage::ManageDirectory; use jmap::mailbox::INBOX_ID; diff --git a/tests/src/jmap/crypto.rs b/tests/src/jmap/crypto.rs index 52b972ea..8e435b03 100644 --- a/tests/src/jmap/crypto.rs +++ b/tests/src/jmap/crypto.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::path::PathBuf; diff --git a/tests/src/jmap/delivery.rs b/tests/src/jmap/delivery.rs index 3cb267e0..ebf9527b 100644 --- a/tests/src/jmap/delivery.rs +++ b/tests/src/jmap/delivery.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/jmap/email_changes.rs b/tests/src/jmap/email_changes.rs index 409f2df6..10702cd8 100644 --- a/tests/src/jmap/email_changes.rs +++ b/tests/src/jmap/email_changes.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_proto::{ parser::{json::Parser, JsonObjectParser}, diff --git a/tests/src/jmap/email_copy.rs b/tests/src/jmap/email_copy.rs index 84d3a99e..dae35803 100644 --- a/tests/src/jmap/email_copy.rs +++ b/tests/src/jmap/email_copy.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_client::mailbox::Role; use jmap_proto::types::id::Id; diff --git a/tests/src/jmap/email_get.rs b/tests/src/jmap/email_get.rs index c10653b8..54bbfd48 100644 --- a/tests/src/jmap/email_get.rs +++ b/tests/src/jmap/email_get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fs, path::PathBuf}; diff --git a/tests/src/jmap/email_parse.rs b/tests/src/jmap/email_parse.rs index ecd829ad..5f2534c2 100644 --- a/tests/src/jmap/email_parse.rs +++ b/tests/src/jmap/email_parse.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fs, path::PathBuf}; diff --git a/tests/src/jmap/email_query.rs b/tests/src/jmap/email_query.rs index 72f88696..4e982d6c 100644 --- a/tests/src/jmap/email_query.rs +++ b/tests/src/jmap/email_query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{collections::hash_map::Entry, time::Instant}; diff --git a/tests/src/jmap/email_query_changes.rs b/tests/src/jmap/email_query_changes.rs index e8c18c5e..ab286237 100644 --- a/tests/src/jmap/email_query_changes.rs +++ b/tests/src/jmap/email_query_changes.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_client::{ core::query::{Comparator, Filter}, diff --git a/tests/src/jmap/email_search_snippet.rs b/tests/src/jmap/email_search_snippet.rs index f3b88e4d..7c68d788 100644 --- a/tests/src/jmap/email_search_snippet.rs +++ b/tests/src/jmap/email_search_snippet.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fs, path::PathBuf}; diff --git a/tests/src/jmap/email_set.rs b/tests/src/jmap/email_set.rs index ac0ffa06..65ee1af2 100644 --- a/tests/src/jmap/email_set.rs +++ b/tests/src/jmap/email_set.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fs, path::PathBuf}; diff --git a/tests/src/jmap/email_submission.rs b/tests/src/jmap/email_submission.rs index ebced575..af1eb3d7 100644 --- a/tests/src/jmap/email_submission.rs +++ b/tests/src/jmap/email_submission.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashMap; use directory::backend::internal::manage::ManageDirectory; diff --git a/tests/src/jmap/event_source.rs b/tests/src/jmap/event_source.rs index 8f550a8c..5885260d 100644 --- a/tests/src/jmap/event_source.rs +++ b/tests/src/jmap/event_source.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/jmap/mailbox.rs b/tests/src/jmap/mailbox.rs index 49705f18..87cbb274 100644 --- a/tests/src/jmap/mailbox.rs +++ b/tests/src/jmap/mailbox.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use jmap_client::{ client::Client, diff --git a/tests/src/jmap/mod.rs b/tests/src/jmap/mod.rs index f406c6ad..72eac659 100644 --- a/tests/src/jmap/mod.rs +++ b/tests/src/jmap/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{path::PathBuf, sync::Arc, time::Duration}; diff --git a/tests/src/jmap/purge.rs b/tests/src/jmap/purge.rs index c37e028f..464e443b 100644 --- a/tests/src/jmap/purge.rs +++ b/tests/src/jmap/purge.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashSet; use directory::backend::internal::manage::ManageDirectory; diff --git a/tests/src/jmap/push_subscription.rs b/tests/src/jmap/push_subscription.rs index 1d41f176..c205e087 100644 --- a/tests/src/jmap/push_subscription.rs +++ b/tests/src/jmap/push_subscription.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ sync::{ diff --git a/tests/src/jmap/quota.rs b/tests/src/jmap/quota.rs index ed879429..2e2a2a58 100644 --- a/tests/src/jmap/quota.rs +++ b/tests/src/jmap/quota.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::jmap::{ assert_is_empty, delivery::SmtpConnection, emails_purge_tombstoned, jmap_raw_request, diff --git a/tests/src/jmap/sieve_script.rs b/tests/src/jmap/sieve_script.rs index 7413e1a2..82f4bcb1 100644 --- a/tests/src/jmap/sieve_script.rs +++ b/tests/src/jmap/sieve_script.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use directory::backend::internal::manage::ManageDirectory; use jmap_client::{ diff --git a/tests/src/jmap/stress_test.rs b/tests/src/jmap/stress_test.rs index dad78d87..771e8b6f 100644 --- a/tests/src/jmap/stress_test.rs +++ b/tests/src/jmap/stress_test.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{sync::Arc, time::Duration}; diff --git a/tests/src/jmap/thread_get.rs b/tests/src/jmap/thread_get.rs index 6a89ffc5..8019fe01 100644 --- a/tests/src/jmap/thread_get.rs +++ b/tests/src/jmap/thread_get.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use crate::jmap::{assert_is_empty, mailbox::destroy_all_mailboxes}; use jmap_client::mailbox::Role; diff --git a/tests/src/jmap/thread_merge.rs b/tests/src/jmap/thread_merge.rs index b8f06e4a..cec7dbbd 100644 --- a/tests/src/jmap/thread_merge.rs +++ b/tests/src/jmap/thread_merge.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{io::Cursor, time::Duration}; diff --git a/tests/src/jmap/vacation_response.rs b/tests/src/jmap/vacation_response.rs index 7fbbe9b6..60c1bdae 100644 --- a/tests/src/jmap/vacation_response.rs +++ b/tests/src/jmap/vacation_response.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use chrono::{TimeDelta, Utc}; diff --git a/tests/src/jmap/webhooks.rs b/tests/src/jmap/webhooks.rs index b55f0b1a..bffcf98d 100644 --- a/tests/src/jmap/webhooks.rs +++ b/tests/src/jmap/webhooks.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ sync::{ diff --git a/tests/src/jmap/websocket.rs b/tests/src/jmap/websocket.rs index 4b247750..1b6d21d8 100644 --- a/tests/src/jmap/websocket.rs +++ b/tests/src/jmap/websocket.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashSet; use directory::backend::internal::manage::ManageDirectory; diff --git a/tests/src/lib.rs b/tests/src/lib.rs index 921c6407..96d3b3bf 100644 --- a/tests/src/lib.rs +++ b/tests/src/lib.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::path::PathBuf; diff --git a/tests/src/smtp/config.rs b/tests/src/smtp/config.rs index d198de88..722e57e2 100644 --- a/tests/src/smtp/config.rs +++ b/tests/src/smtp/config.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fs, net::IpAddr, path::PathBuf, time::Duration}; diff --git a/tests/src/smtp/inbound/auth.rs b/tests/src/smtp/inbound/auth.rs index a9406319..c6bf7e22 100644 --- a/tests/src/smtp/inbound/auth.rs +++ b/tests/src/smtp/inbound/auth.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::Core; diff --git a/tests/src/smtp/inbound/basic.rs b/tests/src/smtp/inbound/basic.rs index da6b5189..46475232 100644 --- a/tests/src/smtp/inbound/basic.rs +++ b/tests/src/smtp/inbound/basic.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::Core; use smtp::core::{Inner, Session}; diff --git a/tests/src/smtp/inbound/data.rs b/tests/src/smtp/inbound/data.rs index 71befe07..4b9c45c5 100644 --- a/tests/src/smtp/inbound/data.rs +++ b/tests/src/smtp/inbound/data.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::Core; use store::Stores; diff --git a/tests/src/smtp/inbound/dmarc.rs b/tests/src/smtp/inbound/dmarc.rs index 17bd1bea..09d1f47d 100644 --- a/tests/src/smtp/inbound/dmarc.rs +++ b/tests/src/smtp/inbound/dmarc.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/inbound/ehlo.rs b/tests/src/smtp/inbound/ehlo.rs index 23d6bd79..fe7c76d6 100644 --- a/tests/src/smtp/inbound/ehlo.rs +++ b/tests/src/smtp/inbound/ehlo.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/inbound/limits.rs b/tests/src/smtp/inbound/limits.rs index 0abde2ff..f0616f63 100644 --- a/tests/src/smtp/inbound/limits.rs +++ b/tests/src/smtp/inbound/limits.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/inbound/mail.rs b/tests/src/smtp/inbound/mail.rs index 13b527f9..5d422d07 100644 --- a/tests/src/smtp/inbound/mail.rs +++ b/tests/src/smtp/inbound/mail.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ sync::Arc, diff --git a/tests/src/smtp/inbound/milter.rs b/tests/src/smtp/inbound/milter.rs index de7749d4..38f269b9 100644 --- a/tests/src/smtp/inbound/milter.rs +++ b/tests/src/smtp/inbound/milter.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fs, net::SocketAddr, path::PathBuf, sync::Arc, time::Duration}; diff --git a/tests/src/smtp/inbound/mod.rs b/tests/src/smtp/inbound/mod.rs index b8ec47ac..96926d89 100644 --- a/tests/src/smtp/inbound/mod.rs +++ b/tests/src/smtp/inbound/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/smtp/inbound/rcpt.rs b/tests/src/smtp/inbound/rcpt.rs index f079cda4..9a0d94e1 100644 --- a/tests/src/smtp/inbound/rcpt.rs +++ b/tests/src/smtp/inbound/rcpt.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/smtp/inbound/rewrite.rs b/tests/src/smtp/inbound/rewrite.rs index eae8ff8a..1efe7efc 100644 --- a/tests/src/smtp/inbound/rewrite.rs +++ b/tests/src/smtp/inbound/rewrite.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::Core; diff --git a/tests/src/smtp/inbound/scripts.rs b/tests/src/smtp/inbound/scripts.rs index 788ed341..3775ed4a 100644 --- a/tests/src/smtp/inbound/scripts.rs +++ b/tests/src/smtp/inbound/scripts.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use core::panic; use std::{fmt::Write, fs, path::PathBuf}; diff --git a/tests/src/smtp/inbound/sign.rs b/tests/src/smtp/inbound/sign.rs index d2a369dc..ae176017 100644 --- a/tests/src/smtp/inbound/sign.rs +++ b/tests/src/smtp/inbound/sign.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/inbound/throttle.rs b/tests/src/smtp/inbound/throttle.rs index 7555a822..dca0f454 100644 --- a/tests/src/smtp/inbound/throttle.rs +++ b/tests/src/smtp/inbound/throttle.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/smtp/inbound/vrfy.rs b/tests/src/smtp/inbound/vrfy.rs index 7fbf3af9..4dc4f6ed 100644 --- a/tests/src/smtp/inbound/vrfy.rs +++ b/tests/src/smtp/inbound/vrfy.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::Core; diff --git a/tests/src/smtp/lookup/mod.rs b/tests/src/smtp/lookup/mod.rs index 0b098899..cbaf055e 100644 --- a/tests/src/smtp/lookup/mod.rs +++ b/tests/src/smtp/lookup/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod sql; pub mod utils; diff --git a/tests/src/smtp/lookup/sql.rs b/tests/src/smtp/lookup/sql.rs index e2a9b901..e97a7453 100644 --- a/tests/src/smtp/lookup/sql.rs +++ b/tests/src/smtp/lookup/sql.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/lookup/utils.rs b/tests/src/smtp/lookup/utils.rs index db19774d..6f2a107a 100644 --- a/tests/src/smtp/lookup/utils.rs +++ b/tests/src/smtp/lookup/utils.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/management/mod.rs b/tests/src/smtp/management/mod.rs index 3be5d6c7..97f93717 100644 --- a/tests/src/smtp/management/mod.rs +++ b/tests/src/smtp/management/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod queue; pub mod report; diff --git a/tests/src/smtp/management/queue.rs b/tests/src/smtp/management/queue.rs index fdcc35e3..d808f433 100644 --- a/tests/src/smtp/management/queue.rs +++ b/tests/src/smtp/management/queue.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/management/report.rs b/tests/src/smtp/management/report.rs index 68ae38bf..fbdca1c4 100644 --- a/tests/src/smtp/management/report.rs +++ b/tests/src/smtp/management/report.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/tests/src/smtp/mod.rs b/tests/src/smtp/mod.rs index b57c50cc..09d60a33 100644 --- a/tests/src/smtp/mod.rs +++ b/tests/src/smtp/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{path::PathBuf, sync::Arc}; diff --git a/tests/src/smtp/outbound/dane.rs b/tests/src/smtp/outbound/dane.rs index fac56b5f..abc691ff 100644 --- a/tests/src/smtp/outbound/dane.rs +++ b/tests/src/smtp/outbound/dane.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ collections::BTreeSet, diff --git a/tests/src/smtp/outbound/extensions.rs b/tests/src/smtp/outbound/extensions.rs index 317fc0e2..22d39f1f 100644 --- a/tests/src/smtp/outbound/extensions.rs +++ b/tests/src/smtp/outbound/extensions.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/outbound/fallback_relay.rs b/tests/src/smtp/outbound/fallback_relay.rs index 92d5315e..1d8b0885 100644 --- a/tests/src/smtp/outbound/fallback_relay.rs +++ b/tests/src/smtp/outbound/fallback_relay.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/outbound/ip_lookup.rs b/tests/src/smtp/outbound/ip_lookup.rs index c38596e8..db34b4ec 100644 --- a/tests/src/smtp/outbound/ip_lookup.rs +++ b/tests/src/smtp/outbound/ip_lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/outbound/lmtp.rs b/tests/src/smtp/outbound/lmtp.rs index 779740ee..a854bcc4 100644 --- a/tests/src/smtp/outbound/lmtp.rs +++ b/tests/src/smtp/outbound/lmtp.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/outbound/mod.rs b/tests/src/smtp/outbound/mod.rs index 602ee5bc..43334dbe 100644 --- a/tests/src/smtp/outbound/mod.rs +++ b/tests/src/smtp/outbound/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use common::{ config::server::{ServerProtocol, Servers}, diff --git a/tests/src/smtp/outbound/mta_sts.rs b/tests/src/smtp/outbound/mta_sts.rs index 45347800..20a85f65 100644 --- a/tests/src/smtp/outbound/mta_sts.rs +++ b/tests/src/smtp/outbound/mta_sts.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ sync::Arc, diff --git a/tests/src/smtp/outbound/smtp.rs b/tests/src/smtp/outbound/smtp.rs index 0cb39e83..787db890 100644 --- a/tests/src/smtp/outbound/smtp.rs +++ b/tests/src/smtp/outbound/smtp.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/outbound/throttle.rs b/tests/src/smtp/outbound/throttle.rs index b0030199..472110fb 100644 --- a/tests/src/smtp/outbound/throttle.rs +++ b/tests/src/smtp/outbound/throttle.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ net::{IpAddr, Ipv4Addr}, diff --git a/tests/src/smtp/outbound/tls.rs b/tests/src/smtp/outbound/tls.rs index b583125a..b3646f00 100644 --- a/tests/src/smtp/outbound/tls.rs +++ b/tests/src/smtp/outbound/tls.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/queue/concurrent.rs b/tests/src/smtp/queue/concurrent.rs index 980289e3..8bddda00 100644 --- a/tests/src/smtp/queue/concurrent.rs +++ b/tests/src/smtp/queue/concurrent.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::{Duration, Instant}; diff --git a/tests/src/smtp/queue/dsn.rs b/tests/src/smtp/queue/dsn.rs index d27c7b39..b88abe79 100644 --- a/tests/src/smtp/queue/dsn.rs +++ b/tests/src/smtp/queue/dsn.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{fs, path::PathBuf, time::SystemTime}; diff --git a/tests/src/smtp/queue/manager.rs b/tests/src/smtp/queue/manager.rs index c2ce6df3..9c658d0e 100644 --- a/tests/src/smtp/queue/manager.rs +++ b/tests/src/smtp/queue/manager.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/smtp/queue/mod.rs b/tests/src/smtp/queue/mod.rs index 259512f6..a2f0d8e0 100644 --- a/tests/src/smtp/queue/mod.rs +++ b/tests/src/smtp/queue/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod concurrent; pub mod dsn; diff --git a/tests/src/smtp/queue/retry.rs b/tests/src/smtp/queue/retry.rs index 8be55d76..ac0f1828 100644 --- a/tests/src/smtp/queue/retry.rs +++ b/tests/src/smtp/queue/retry.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/smtp/reporting/analyze.rs b/tests/src/smtp/reporting/analyze.rs index 564eb0d9..59155ae2 100644 --- a/tests/src/smtp/reporting/analyze.rs +++ b/tests/src/smtp/reporting/analyze.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/smtp/reporting/dmarc.rs b/tests/src/smtp/reporting/dmarc.rs index 4c117f61..a724e2ba 100644 --- a/tests/src/smtp/reporting/dmarc.rs +++ b/tests/src/smtp/reporting/dmarc.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ net::IpAddr, diff --git a/tests/src/smtp/reporting/mod.rs b/tests/src/smtp/reporting/mod.rs index 60d0384b..76ceb90c 100644 --- a/tests/src/smtp/reporting/mod.rs +++ b/tests/src/smtp/reporting/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod analyze; pub mod dmarc; diff --git a/tests/src/smtp/reporting/scheduler.rs b/tests/src/smtp/reporting/scheduler.rs index e9406c45..7a952104 100644 --- a/tests/src/smtp/reporting/scheduler.rs +++ b/tests/src/smtp/reporting/scheduler.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::sync::Arc; diff --git a/tests/src/smtp/reporting/tls.rs b/tests/src/smtp/reporting/tls.rs index 2942d138..34208b33 100644 --- a/tests/src/smtp/reporting/tls.rs +++ b/tests/src/smtp/reporting/tls.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{io::Read, sync::Arc, time::Duration}; diff --git a/tests/src/smtp/session.rs b/tests/src/smtp/session.rs index d695260b..a163427b 100644 --- a/tests/src/smtp/session.rs +++ b/tests/src/smtp/session.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{borrow::Cow, path::PathBuf, sync::Arc}; diff --git a/tests/src/store/assign_id.rs b/tests/src/store/assign_id.rs index 3c551c42..8cb86c94 100644 --- a/tests/src/store/assign_id.rs +++ b/tests/src/store/assign_id.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::HashSet; diff --git a/tests/src/store/blob.rs b/tests/src/store/blob.rs index a9978a07..5ebc5a47 100644 --- a/tests/src/store/blob.rs +++ b/tests/src/store/blob.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashMap; use store::{ diff --git a/tests/src/store/import_export.rs b/tests/src/store/import_export.rs index b8078e1d..7123bc18 100644 --- a/tests/src/store/import_export.rs +++ b/tests/src/store/import_export.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use ahash::AHashSet; use common::Core; diff --git a/tests/src/store/lookup.rs b/tests/src/store/lookup.rs index 039a4cbc..09e45b06 100644 --- a/tests/src/store/lookup.rs +++ b/tests/src/store/lookup.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::time::Duration; diff --git a/tests/src/store/mod.rs b/tests/src/store/mod.rs index 28035d63..503eb1a2 100644 --- a/tests/src/store/mod.rs +++ b/tests/src/store/mod.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023 Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ pub mod assign_id; pub mod blob; diff --git a/tests/src/store/ops.rs b/tests/src/store/ops.rs index 279bea81..0e8b3438 100644 --- a/tests/src/store/ops.rs +++ b/tests/src/store/ops.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::collections::HashSet; diff --git a/tests/src/store/query.rs b/tests/src/store/query.rs index c65f98df..ffb4531c 100644 --- a/tests/src/store/query.rs +++ b/tests/src/store/query.rs @@ -1,25 +1,8 @@ /* - * Copyright (c) 2023, Stalwart Labs Ltd. + * SPDX-FileCopyrightText: 2020 Stalwart Labs Ltd * - * This file is part of the Stalwart Mail Server. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * in the LICENSE file at the top-level directory of this distribution. - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * You can be released from the requirements of the AGPLv3 license by - * purchasing a commercial license. Please contact licensing@stalw.art - * for more details. -*/ + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + */ use std::{ fmt::Display,