From 8046838ed57cbf1a43e06f777f2b92972fb4165a Mon Sep 17 00:00:00 2001 From: mdecimus Date: Sat, 15 Jul 2023 21:14:34 +0200 Subject: [PATCH] Added license. --- CHANGELOG | 14 ++++ Cargo.lock | 2 +- README.md | 65 +++++++++++++++---- crates/cli/src/main.rs | 2 +- crates/cli/src/modules/cli.rs | 2 +- crates/cli/src/modules/database.rs | 23 +++++++ crates/cli/src/modules/export.rs | 23 +++++++ crates/cli/src/modules/import.rs | 2 +- crates/cli/src/modules/mod.rs | 2 +- crates/cli/src/modules/queue.rs | 2 +- crates/cli/src/modules/report.rs | 2 +- crates/directory/src/cache/config.rs | 23 +++++++ crates/directory/src/cache/lookup.rs | 23 +++++++ crates/directory/src/cache/lru.rs | 2 +- crates/directory/src/cache/mod.rs | 23 +++++++ crates/directory/src/config.rs | 23 +++++++ crates/directory/src/imap/client.rs | 23 +++++++ crates/directory/src/imap/config.rs | 23 +++++++ crates/directory/src/imap/lookup.rs | 23 +++++++ crates/directory/src/imap/mod.rs | 23 +++++++ crates/directory/src/imap/pool.rs | 23 +++++++ crates/directory/src/imap/tls.rs | 23 +++++++ crates/directory/src/ldap/config.rs | 23 +++++++ crates/directory/src/ldap/lookup.rs | 23 +++++++ crates/directory/src/ldap/mod.rs | 23 +++++++ crates/directory/src/ldap/pool.rs | 23 +++++++ crates/directory/src/lib.rs | 23 +++++++ crates/directory/src/memory/config.rs | 23 +++++++ crates/directory/src/memory/lookup.rs | 23 +++++++ crates/directory/src/memory/mod.rs | 23 +++++++ crates/directory/src/secret.rs | 23 +++++++ crates/directory/src/smtp/config.rs | 23 +++++++ crates/directory/src/smtp/lookup.rs | 23 +++++++ crates/directory/src/smtp/mod.rs | 23 +++++++ crates/directory/src/smtp/pool.rs | 23 +++++++ crates/directory/src/sql/config.rs | 23 +++++++ crates/directory/src/sql/lookup.rs | 23 +++++++ crates/directory/src/sql/mod.rs | 23 +++++++ crates/imap-proto/src/lib.rs | 23 +++++++ crates/imap-proto/src/parser/acl.rs | 2 +- crates/imap-proto/src/parser/append.rs | 2 +- crates/imap-proto/src/parser/authenticate.rs | 2 +- crates/imap-proto/src/parser/copy_move.rs | 2 +- crates/imap-proto/src/parser/create.rs | 2 +- crates/imap-proto/src/parser/delete.rs | 2 +- crates/imap-proto/src/parser/enable.rs | 2 +- crates/imap-proto/src/parser/fetch.rs | 2 +- crates/imap-proto/src/parser/list.rs | 2 +- crates/imap-proto/src/parser/login.rs | 2 +- crates/imap-proto/src/parser/lsub.rs | 2 +- crates/imap-proto/src/parser/mod.rs | 2 +- crates/imap-proto/src/parser/rename.rs | 2 +- crates/imap-proto/src/parser/search.rs | 2 +- crates/imap-proto/src/parser/select.rs | 2 +- crates/imap-proto/src/parser/sort.rs | 2 +- crates/imap-proto/src/parser/status.rs | 2 +- crates/imap-proto/src/parser/store.rs | 2 +- crates/imap-proto/src/parser/subscribe.rs | 2 +- crates/imap-proto/src/parser/thread.rs | 2 +- crates/imap-proto/src/protocol/acl.rs | 2 +- crates/imap-proto/src/protocol/append.rs | 2 +- .../imap-proto/src/protocol/authenticate.rs | 2 +- crates/imap-proto/src/protocol/capability.rs | 2 +- crates/imap-proto/src/protocol/copy_move.rs | 2 +- crates/imap-proto/src/protocol/create.rs | 2 +- crates/imap-proto/src/protocol/delete.rs | 2 +- crates/imap-proto/src/protocol/enable.rs | 2 +- crates/imap-proto/src/protocol/expunge.rs | 2 +- crates/imap-proto/src/protocol/fetch.rs | 2 +- crates/imap-proto/src/protocol/list.rs | 2 +- crates/imap-proto/src/protocol/login.rs | 2 +- crates/imap-proto/src/protocol/mod.rs | 2 +- crates/imap-proto/src/protocol/namespace.rs | 2 +- crates/imap-proto/src/protocol/rename.rs | 2 +- crates/imap-proto/src/protocol/response.rs | 0 crates/imap-proto/src/protocol/search.rs | 2 +- crates/imap-proto/src/protocol/select.rs | 2 +- crates/imap-proto/src/protocol/status.rs | 2 +- crates/imap-proto/src/protocol/store.rs | 2 +- crates/imap-proto/src/protocol/subscribe.rs | 2 +- crates/imap-proto/src/protocol/thread.rs | 2 +- crates/imap-proto/src/receiver.rs | 2 +- crates/imap-proto/src/utf7.rs | 2 +- crates/imap/src/core/client.rs | 2 +- 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 | 2 +- crates/imap/src/lib.rs | 23 +++++++ crates/imap/src/op/acl.rs | 2 +- crates/imap/src/op/append.rs | 2 +- crates/imap/src/op/authenticate.rs | 2 +- crates/imap/src/op/capability.rs | 2 +- crates/imap/src/op/close.rs | 2 +- crates/imap/src/op/copy_move.rs | 2 +- crates/imap/src/op/create.rs | 2 +- crates/imap/src/op/delete.rs | 2 +- crates/imap/src/op/enable.rs | 2 +- crates/imap/src/op/expunge.rs | 2 +- crates/imap/src/op/fetch.rs | 2 +- crates/imap/src/op/idle.rs | 2 +- crates/imap/src/op/list.rs | 2 +- crates/imap/src/op/login.rs | 2 +- crates/imap/src/op/logout.rs | 2 +- crates/imap/src/op/mod.rs | 23 +++++++ crates/imap/src/op/namespace.rs | 2 +- crates/imap/src/op/noop.rs | 2 +- crates/imap/src/op/rename.rs | 2 +- crates/imap/src/op/search.rs | 2 +- crates/imap/src/op/select.rs | 2 +- crates/imap/src/op/status.rs | 2 +- crates/imap/src/op/store.rs | 2 +- crates/imap/src/op/subscribe.rs | 2 +- crates/imap/src/op/thread.rs | 2 +- crates/install/build.rs | 23 +++++++ crates/install/src/main.rs | 23 +++++++ crates/jmap-proto/src/error/method.rs | 2 +- crates/jmap-proto/src/error/mod.rs | 2 +- crates/jmap-proto/src/error/request.rs | 2 +- crates/jmap-proto/src/error/set.rs | 2 +- crates/jmap-proto/src/lib.rs | 2 +- crates/jmap-proto/src/method/changes.rs | 2 +- crates/jmap-proto/src/method/copy.rs | 2 +- crates/jmap-proto/src/method/get.rs | 2 +- crates/jmap-proto/src/method/import.rs | 2 +- crates/jmap-proto/src/method/mod.rs | 2 +- crates/jmap-proto/src/method/parse.rs | 2 +- crates/jmap-proto/src/method/query.rs | 2 +- crates/jmap-proto/src/method/query_changes.rs | 2 +- .../jmap-proto/src/method/search_snippet.rs | 2 +- crates/jmap-proto/src/method/set.rs | 2 +- crates/jmap-proto/src/method/validate.rs | 2 +- crates/jmap-proto/src/object/email.rs | 2 +- .../jmap-proto/src/object/email_submission.rs | 2 +- crates/jmap-proto/src/object/index.rs | 2 +- crates/jmap-proto/src/object/mailbox.rs | 2 +- crates/jmap-proto/src/object/mod.rs | 2 +- crates/jmap-proto/src/object/sieve.rs | 2 +- crates/jmap-proto/src/parser/base32.rs | 2 +- crates/jmap-proto/src/parser/impls.rs | 2 +- crates/jmap-proto/src/parser/json.rs | 2 +- crates/jmap-proto/src/parser/mod.rs | 2 +- crates/jmap-proto/src/request/capability.rs | 2 +- crates/jmap-proto/src/request/echo.rs | 2 +- crates/jmap-proto/src/request/method.rs | 2 +- crates/jmap-proto/src/request/mod.rs | 2 +- crates/jmap-proto/src/request/parser.rs | 2 +- crates/jmap-proto/src/request/reference.rs | 2 +- crates/jmap-proto/src/request/websocket.rs | 2 +- crates/jmap-proto/src/response/mod.rs | 2 +- crates/jmap-proto/src/response/references.rs | 2 +- crates/jmap-proto/src/response/serialize.rs | 2 +- crates/jmap-proto/src/types/acl.rs | 2 +- crates/jmap-proto/src/types/blob.rs | 2 +- crates/jmap-proto/src/types/collection.rs | 2 +- crates/jmap-proto/src/types/date.rs | 2 +- crates/jmap-proto/src/types/id.rs | 2 +- crates/jmap-proto/src/types/keyword.rs | 2 +- crates/jmap-proto/src/types/mod.rs | 2 +- crates/jmap-proto/src/types/pointer.rs | 2 +- crates/jmap-proto/src/types/property.rs | 2 +- crates/jmap-proto/src/types/state.rs | 2 +- crates/jmap-proto/src/types/type_state.rs | 2 +- crates/jmap-proto/src/types/value.rs | 2 +- crates/jmap/src/api/admin.rs | 2 +- crates/jmap/src/api/config.rs | 2 +- crates/jmap/src/api/event_source.rs | 2 +- crates/jmap/src/api/http.rs | 2 +- crates/jmap/src/api/mod.rs | 2 +- crates/jmap/src/api/request.rs | 2 +- crates/jmap/src/api/session.rs | 2 +- crates/jmap/src/auth/acl.rs | 2 +- crates/jmap/src/auth/authenticate.rs | 2 +- crates/jmap/src/auth/mod.rs | 2 +- crates/jmap/src/auth/oauth/device_auth.rs | 2 +- crates/jmap/src/auth/oauth/mod.rs | 2 +- crates/jmap/src/auth/oauth/token.rs | 2 +- crates/jmap/src/auth/oauth/user_code.rs | 2 +- crates/jmap/src/auth/rate_limit.rs | 2 +- crates/jmap/src/blob/copy.rs | 2 +- crates/jmap/src/blob/download.rs | 2 +- crates/jmap/src/blob/mod.rs | 2 +- crates/jmap/src/blob/upload.rs | 2 +- crates/jmap/src/changes/get.rs | 2 +- crates/jmap/src/changes/mod.rs | 2 +- crates/jmap/src/changes/query.rs | 2 +- crates/jmap/src/changes/state.rs | 2 +- crates/jmap/src/changes/write.rs | 2 +- crates/jmap/src/email/body.rs | 2 +- crates/jmap/src/email/copy.rs | 2 +- crates/jmap/src/email/get.rs | 2 +- crates/jmap/src/email/headers.rs | 2 +- crates/jmap/src/email/import.rs | 2 +- crates/jmap/src/email/index.rs | 2 +- crates/jmap/src/email/ingest.rs | 2 +- crates/jmap/src/email/mod.rs | 2 +- crates/jmap/src/email/parse.rs | 2 +- crates/jmap/src/email/query.rs | 2 +- crates/jmap/src/email/set.rs | 2 +- crates/jmap/src/email/snippet.rs | 2 +- crates/jmap/src/identity/get.rs | 2 +- crates/jmap/src/identity/mod.rs | 2 +- crates/jmap/src/identity/set.rs | 2 +- crates/jmap/src/lib.rs | 2 +- crates/jmap/src/mailbox/get.rs | 2 +- crates/jmap/src/mailbox/mod.rs | 2 +- crates/jmap/src/mailbox/query.rs | 2 +- crates/jmap/src/mailbox/set.rs | 2 +- crates/jmap/src/principal/get.rs | 2 +- crates/jmap/src/principal/mod.rs | 23 +++++++ crates/jmap/src/principal/query.rs | 2 +- crates/jmap/src/push/ece.rs | 2 +- crates/jmap/src/push/get.rs | 2 +- crates/jmap/src/push/manager.rs | 2 +- crates/jmap/src/push/mod.rs | 2 +- crates/jmap/src/push/set.rs | 2 +- crates/jmap/src/services/delivery.rs | 2 +- crates/jmap/src/services/housekeeper.rs | 2 +- crates/jmap/src/services/ingest.rs | 2 +- crates/jmap/src/services/mod.rs | 2 +- crates/jmap/src/services/state.rs | 2 +- crates/jmap/src/sieve/get.rs | 2 +- crates/jmap/src/sieve/ingest.rs | 2 +- crates/jmap/src/sieve/mod.rs | 2 +- crates/jmap/src/sieve/query.rs | 2 +- crates/jmap/src/sieve/set.rs | 2 +- crates/jmap/src/sieve/validate.rs | 2 +- crates/jmap/src/submission/get.rs | 2 +- crates/jmap/src/submission/mod.rs | 2 +- crates/jmap/src/submission/query.rs | 2 +- crates/jmap/src/submission/set.rs | 2 +- crates/jmap/src/thread/get.rs | 2 +- crates/jmap/src/thread/mod.rs | 2 +- crates/jmap/src/vacation/get.rs | 2 +- crates/jmap/src/vacation/mod.rs | 2 +- crates/jmap/src/vacation/set.rs | 2 +- crates/jmap/src/websocket/mod.rs | 2 +- crates/jmap/src/websocket/stream.rs | 2 +- crates/jmap/src/websocket/upgrade.rs | 2 +- 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 | 2 +- crates/managesieve/src/op/capability.rs | 2 +- crates/managesieve/src/op/checkscript.rs | 2 +- crates/managesieve/src/op/deletescript.rs | 2 +- crates/managesieve/src/op/getscript.rs | 2 +- crates/managesieve/src/op/havespace.rs | 2 +- crates/managesieve/src/op/listscripts.rs | 2 +- crates/managesieve/src/op/logout.rs | 2 +- crates/managesieve/src/op/mod.rs | 23 +++++++ crates/managesieve/src/op/noop.rs | 2 +- crates/managesieve/src/op/putscript.rs | 2 +- crates/managesieve/src/op/renamescript.rs | 2 +- crates/managesieve/src/op/setactive.rs | 2 +- crates/smtp/Cargo.toml | 2 +- crates/smtp/src/config/auth.rs | 2 +- crates/smtp/src/config/condition.rs | 2 +- crates/smtp/src/config/if_block.rs | 2 +- crates/smtp/src/config/mod.rs | 2 +- crates/smtp/src/config/queue.rs | 2 +- crates/smtp/src/config/remote.rs | 2 +- crates/smtp/src/config/report.rs | 2 +- crates/smtp/src/config/resolver.rs | 2 +- crates/smtp/src/config/scripts.rs | 2 +- crates/smtp/src/config/session.rs | 2 +- crates/smtp/src/config/throttle.rs | 2 +- crates/smtp/src/core/if_block.rs | 2 +- crates/smtp/src/core/management.rs | 2 +- crates/smtp/src/core/mod.rs | 2 +- crates/smtp/src/core/params.rs | 2 +- crates/smtp/src/core/scripts.rs | 2 +- crates/smtp/src/core/throttle.rs | 2 +- crates/smtp/src/core/worker.rs | 2 +- crates/smtp/src/inbound/auth.rs | 2 +- crates/smtp/src/inbound/data.rs | 2 +- crates/smtp/src/inbound/ehlo.rs | 2 +- crates/smtp/src/inbound/mail.rs | 2 +- crates/smtp/src/inbound/mod.rs | 2 +- crates/smtp/src/inbound/rcpt.rs | 2 +- crates/smtp/src/inbound/session.rs | 2 +- crates/smtp/src/inbound/spawn.rs | 2 +- crates/smtp/src/inbound/vrfy.rs | 2 +- crates/smtp/src/lib.rs | 2 +- crates/smtp/src/outbound/dane/dnssec.rs | 2 +- crates/smtp/src/outbound/dane/mod.rs | 2 +- crates/smtp/src/outbound/dane/verify.rs | 2 +- crates/smtp/src/outbound/delivery.rs | 2 +- crates/smtp/src/outbound/local.rs | 23 +++++++ crates/smtp/src/outbound/lookup.rs | 2 +- crates/smtp/src/outbound/mod.rs | 2 +- crates/smtp/src/outbound/mta_sts/lookup.rs | 2 +- crates/smtp/src/outbound/mta_sts/mod.rs | 2 +- crates/smtp/src/outbound/mta_sts/parse.rs | 2 +- crates/smtp/src/outbound/mta_sts/verify.rs | 2 +- crates/smtp/src/outbound/session.rs | 2 +- crates/smtp/src/queue/dsn.rs | 2 +- crates/smtp/src/queue/manager.rs | 2 +- crates/smtp/src/queue/mod.rs | 2 +- crates/smtp/src/queue/quota.rs | 2 +- crates/smtp/src/queue/serialize.rs | 2 +- crates/smtp/src/queue/spool.rs | 2 +- crates/smtp/src/queue/throttle.rs | 2 +- crates/smtp/src/reporting/analysis.rs | 2 +- crates/smtp/src/reporting/dkim.rs | 2 +- crates/smtp/src/reporting/dmarc.rs | 2 +- crates/smtp/src/reporting/mod.rs | 2 +- crates/smtp/src/reporting/scheduler.rs | 2 +- crates/smtp/src/reporting/spf.rs | 2 +- crates/smtp/src/reporting/tls.rs | 2 +- crates/store/src/backend/rocksdb/bitmap.rs | 2 +- crates/store/src/backend/sqlite/id_assign.rs | 2 +- crates/store/src/fts/lang.rs | 2 +- crates/store/src/fts/mod.rs | 2 +- crates/store/src/fts/pdf.rs | 2 +- crates/store/src/fts/search_snippet.rs | 2 +- crates/store/src/fts/stemmer.rs | 2 +- crates/store/src/fts/term_index.rs | 2 +- crates/store/src/fts/tokenizers/chinese.rs | 2 +- .../store/src/fts/tokenizers/indo_european.rs | 2 +- crates/store/src/fts/tokenizers/japanese.rs | 2 +- crates/store/src/fts/tokenizers/mod.rs | 2 +- crates/store/src/fts/tokenizers/word.rs | 2 +- crates/utils/src/codec/base32_custom.rs | 2 +- crates/utils/src/codec/leb128.rs | 2 +- crates/utils/src/config/certificate.rs | 2 +- crates/utils/src/config/listener.rs | 2 +- crates/utils/src/config/mod.rs | 2 +- crates/utils/src/config/parser.rs | 2 +- crates/utils/src/config/utils.rs | 2 +- crates/utils/src/lib.rs | 2 +- crates/utils/src/map/bitmap.rs | 2 +- crates/utils/src/map/mod.rs | 2 +- crates/utils/src/map/vec_map.rs | 2 +- resources/config/jmap.toml | 2 + tests/src/directory/imap.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 | 2 +- tests/src/imap/append.rs | 2 +- tests/src/imap/basic.rs | 2 +- tests/src/imap/body_structure.rs | 23 +++++++ tests/src/imap/condstore.rs | 2 +- tests/src/imap/copy_move.rs | 2 +- tests/src/imap/fetch.rs | 2 +- tests/src/imap/idle.rs | 2 +- tests/src/imap/mailbox.rs | 2 +- tests/src/imap/managesieve.rs | 2 +- tests/src/imap/mod.rs | 2 +- tests/src/imap/search.rs | 2 +- tests/src/imap/store.rs | 2 +- tests/src/imap/thread.rs | 2 +- tests/src/jmap/auth_acl.rs | 2 +- tests/src/jmap/auth_limits.rs | 2 +- tests/src/jmap/auth_oauth.rs | 2 +- tests/src/jmap/delivery.rs | 2 +- tests/src/jmap/email_changes.rs | 2 +- tests/src/jmap/email_copy.rs | 2 +- tests/src/jmap/email_get.rs | 2 +- tests/src/jmap/email_parse.rs | 2 +- tests/src/jmap/email_query.rs | 2 +- tests/src/jmap/email_query_changes.rs | 2 +- tests/src/jmap/email_search_snippet.rs | 2 +- tests/src/jmap/email_set.rs | 2 +- tests/src/jmap/email_submission.rs | 2 +- tests/src/jmap/event_source.rs | 2 +- tests/src/jmap/mailbox.rs | 2 +- tests/src/jmap/mod.rs | 2 +- tests/src/jmap/push_subscription.rs | 2 +- tests/src/jmap/quota.rs | 23 +++++++ tests/src/jmap/sieve_script.rs | 2 +- tests/src/jmap/stress_test.rs | 2 +- tests/src/jmap/thread_get.rs | 2 +- tests/src/jmap/thread_merge.rs | 2 +- tests/src/jmap/vacation_response.rs | 2 +- tests/src/jmap/websocket.rs | 2 +- tests/src/smtp/config.rs | 23 +++++++ tests/src/smtp/inbound/auth.rs | 2 +- tests/src/smtp/inbound/basic.rs | 2 +- tests/src/smtp/inbound/data.rs | 2 +- tests/src/smtp/inbound/dmarc.rs | 2 +- tests/src/smtp/inbound/dnsrbl.rs | 2 +- tests/src/smtp/inbound/ehlo.rs | 2 +- tests/src/smtp/inbound/limits.rs | 2 +- tests/src/smtp/inbound/mail.rs | 2 +- tests/src/smtp/inbound/mod.rs | 2 +- tests/src/smtp/inbound/rcpt.rs | 2 +- tests/src/smtp/inbound/scripts.rs | 2 +- tests/src/smtp/inbound/sign.rs | 2 +- tests/src/smtp/inbound/throttle.rs | 2 +- tests/src/smtp/inbound/vrfy.rs | 2 +- tests/src/smtp/lookup/mod.rs | 2 +- tests/src/smtp/lookup/sql.rs | 2 +- tests/src/smtp/lookup/utils.rs | 23 +++++++ tests/src/smtp/management/mod.rs | 2 +- tests/src/smtp/management/queue.rs | 2 +- tests/src/smtp/management/report.rs | 2 +- tests/src/smtp/mod.rs | 2 +- tests/src/smtp/outbound/dane.rs | 2 +- tests/src/smtp/outbound/extensions.rs | 2 +- tests/src/smtp/outbound/lmtp.rs | 2 +- tests/src/smtp/outbound/mod.rs | 2 +- tests/src/smtp/outbound/mta_sts.rs | 2 +- tests/src/smtp/outbound/smtp.rs | 2 +- tests/src/smtp/outbound/throttle.rs | 2 +- tests/src/smtp/queue/dsn.rs | 2 +- tests/src/smtp/queue/manager.rs | 2 +- tests/src/smtp/queue/mod.rs | 2 +- tests/src/smtp/queue/retry.rs | 2 +- tests/src/smtp/queue/serialize.rs | 2 +- tests/src/smtp/reporting/analyze.rs | 2 +- tests/src/smtp/reporting/dmarc.rs | 2 +- tests/src/smtp/reporting/mod.rs | 2 +- tests/src/smtp/reporting/scheduler.rs | 2 +- tests/src/smtp/reporting/tls.rs | 2 +- tests/src/smtp/session.rs | 2 +- tests/src/store/blob.rs | 23 +++++++ 420 files changed, 1650 insertions(+), 376 deletions(-) create mode 100644 CHANGELOG delete mode 100644 crates/imap-proto/src/protocol/response.rs diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 00000000..e98672df --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,14 @@ +stalwart-mail 0.3.0 +================================ +- Merged the `stalwart-jmap`, `stalwart-imap` and `stalwart-smtp` repositories into + `stalwart-mail`. +- Added support for **LDAP** and **SQL** authentication. +- Added support for **subaddressing** and **catch-all** addresses. +- Added support for **S3-compatible** storage. +- Removed clustering module and replaced it with a **FoundationDB** backend option. +- Integrated Stalwart SMTP into Stalwart JMAP. +- Rewritten JMAP protocol parser. +- Rewritten store backend. +- Rewritten IMAP server to have direct access to the message store (no more IMAP proxy). +- Replaced `actix` with `hyper`. + diff --git a/Cargo.lock b/Cargo.lock index 9e066b08..146a3009 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4073,7 +4073,7 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "smtp" -version = "0.1.1" +version = "0.3.0" dependencies = [ "ahash 0.8.3", "blake3", diff --git a/README.md b/README.md index f261b2b2..491c30ab 100644 --- a/README.md +++ b/README.md @@ -8,22 +8,61 @@ **Stalwart Mail Server** is an open-source mail server solution with JMAP, IMAP4, and SMTP support and a wide range of modern features. It is written in Rust and designed to be secure, fast, robust and scalable. -_Caveat emptor_: This repository is currently under active development and is not yet ready for production use. Please refer to the JMAP, IMAP and SMTP repositories if you would like to -try each of these servers individually: +Key features: -* [Stalwart JMAP Server](https://github.com/stalwartlabs/jmap-server/) -* [Stalwart IMAP Server](https://github.com/stalwartlabs/imap-server/) -* [Stalwart SMTP Server](https://github.com/stalwartlabs/smtp-server/) +- **JMAP** server: + - JMAP Core ([RFC 8620](https://datatracker.ietf.org/doc/html/rfc8620)) + - JMAP Mail ([RFC 8621](https://datatracker.ietf.org/doc/html/rfc8621)) + - JMAP over WebSocket ([RFC 8887](https://datatracker.ietf.org/doc/html/rfc8887)) + - JMAP for Sieve Scripts ([DRAFT-SIEVE-13](https://www.ietf.org/archive/id/draft-ietf-jmap-sieve-13.html)) +- **IMAP4** server: + - IMAP4rev2 ([RFC 9051](https://datatracker.ietf.org/doc/html/rfc9051)) full compliance. + - IMAP4rev1 ([RFC 3501](https://datatracker.ietf.org/doc/html/rfc3501)) backwards compatible. + - ManageSieve ([RFC 5804](https://datatracker.ietf.org/doc/html/rfc5804)) server. + - Numerous [extensions](https://stalw.art/docs/development/rfcs#imap4-and-extensions) supported. +- **SMTP** server: + - Built-in [DMARC](https://datatracker.ietf.org/doc/html/rfc7489), [DKIM](https://datatracker.ietf.org/doc/html/rfc6376), [SPF](https://datatracker.ietf.org/doc/html/rfc7208) and [ARC](https://datatracker.ietf.org/doc/html/rfc8617) support for message authentication. + - Strong transport security through [DANE](https://datatracker.ietf.org/doc/html/rfc6698), [MTA-STS](https://datatracker.ietf.org/doc/html/rfc8461) and [SMTP TLS](https://datatracker.ietf.org/doc/html/rfc8460) reporting. + - Inbound throttling and filtering with granular configuration rules and Sieve scripting. + - Virtual queues with delayed delivery, priority delivery, quotas, routing rules and throttling support. +- **Flexible**: + - **LDAP** directory and **SQL** database authentication. + - Full-text search available in 17 languages. + - Disk quotas. + - Sieve scripting language with support for all [registered extensions](https://www.iana.org/assignments/sieve-extensions/sieve-extensions.xhtml). + - Subaddressing and catch-all addresses support. + - Integration with **OpenTelemetry** to enable monitoring, tracing, and performance analysis. +- **Secure**: + - OAuth 2.0 [authorization code](https://www.rfc-editor.org/rfc/rfc8628) and [device authorization](https://www.rfc-editor.org/rfc/rfc8628) flows. + - Access Control Lists (ACLs). + - Rate limiting. +- **Robust and scalable**: + - **FoundationDB** or **SQLite** database backends. + - **S3-compatible** blob storage support. + - Memory safe (thanks to Rust). -## Why choose Stalwart? +## Get Started -Within the field of mail servers, established names like Postfix, Courier and Dovecot have long been the go-to solutions. However, the landscape of internet messaging is evolving, with a need for more efficient, easy to maintain, reliable, and secure systems. Here's why you might consider making the switch to Stalwart Mail Server: +Install Stalwart Mail Server on your server by following the instructions for your platform: -- Designed with the latest internet messaging protocols in mind - JMAP and IMAP4rev2, along with the conventional SMTP. -- Leverages the performance and security benefits of the Rust programming language. This statically typed, compiled language is known for its memory safety and concurrency support, reducing the likelihood of typical security issues like buffer overflows. -- Thanks to its native FoundationDB and S3 storage support, it can be scaled across many servers, accommodating millions of users. -- Available as a single, integrated package that includes JMAP, IMAP, and SMTP servers. This means that you don't have to install, configure and maintain multiple servers to get a complete solution. -- Designed to be easy to install and maintain, with a single configuration file and a simple command-line interface. +- [Linux / MacOS](https://stalw.art/docs/install/linux) +- [Windows](https://stalw.art/docs/install/windows) +- [Docker](https://stalw.art/docs/install/docker) + +All documentation is available at [stalw.art/docs](https://stalw.art/docs). + +## Support + +If you are having problems running Stalwart Mail Server, you found a bug or just have a question, +do not hesitate to reach us on [Github Discussions](https://github.com/stalwartlabs/mail-server/discussions), +[Reddit](https://www.reddit.com/r/stalwartlabs) or [Discord](https://discord.gg/aVQr3jF8jd). +Additionally you may become a sponsor to obtain priority support from Stalwart Labs Ltd. + +## Funding + +Part of the development of this project was funded through the [NGI0 Entrust Fund](https://nlnet.nl/entrust), a fund established by [NLnet](https://nlnet.nl/) with financial support from the European Commission's [Next Generation Internet](https://ngi.eu/) programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 101069594. + +If you find the project useful you can help by [becoming a sponsor](https://github.com/sponsors/stalwartlabs). Thank you! ## License @@ -36,4 +75,4 @@ a commercial license. Please contact licensing@stalw.art for more details. ## Copyright -Copyright (C) 2020, Stalwart Labs Ltd. +Copyright (C) 2023, Stalwart Labs Ltd. diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 17748506..2be60cc7 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart Command Line Interface. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/cli/src/modules/cli.rs b/crates/cli/src/modules/cli.rs index efb6ac4e..6f66cdbd 100644 --- a/crates/cli/src/modules/cli.rs +++ b/crates/cli/src/modules/cli.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart Command Line Interface. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/cli/src/modules/database.rs b/crates/cli/src/modules/database.rs index 459b63fb..77d80cfc 100644 --- a/crates/cli/src/modules/database.rs +++ b/crates/cli/src/modules/database.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use jmap_client::client::Credentials; use reqwest::header::AUTHORIZATION; diff --git a/crates/cli/src/modules/export.rs b/crates/cli/src/modules/export.rs index 8497a256..78e91b5f 100644 --- a/crates/cli/src/modules/export.rs +++ b/crates/cli/src/modules/export.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::{ path::{Path, PathBuf}, sync::Arc, diff --git a/crates/cli/src/modules/import.rs b/crates/cli/src/modules/import.rs index f8a62eb8..393d98e7 100644 --- a/crates/cli/src/modules/import.rs +++ b/crates/cli/src/modules/import.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart Command Line Interface. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/cli/src/modules/mod.rs b/crates/cli/src/modules/mod.rs index 71c99cc6..d6693209 100644 --- a/crates/cli/src/modules/mod.rs +++ b/crates/cli/src/modules/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart Command Line Interface. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/cli/src/modules/queue.rs b/crates/cli/src/modules/queue.rs index 3daebab5..90fb88c1 100644 --- a/crates/cli/src/modules/queue.rs +++ b/crates/cli/src/modules/queue.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart Command Line Interface. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/cli/src/modules/report.rs b/crates/cli/src/modules/report.rs index 42a3fdb1..42c3198f 100644 --- a/crates/cli/src/modules/report.rs +++ b/crates/cli/src/modules/report.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart Command Line Interface. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/directory/src/cache/config.rs b/crates/directory/src/cache/config.rs index d2d4cba3..8c553954 100644 --- a/crates/directory/src/cache/config.rs +++ b/crates/directory/src/cache/config.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::{sync::Arc, time::Duration}; use parking_lot::lock_api::Mutex; diff --git a/crates/directory/src/cache/lookup.rs b/crates/directory/src/cache/lookup.rs index f18548c7..c28a669f 100644 --- a/crates/directory/src/cache/lookup.rs +++ b/crates/directory/src/cache/lookup.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use mail_send::Credentials; use crate::{Directory, Principal}; diff --git a/crates/directory/src/cache/lru.rs b/crates/directory/src/cache/lru.rs index 5f85d303..2f3baf58 100644 --- a/crates/directory/src/cache/lru.rs +++ b/crates/directory/src/cache/lru.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/directory/src/cache/mod.rs b/crates/directory/src/cache/mod.rs index cfe9c3ff..6c2a39db 100644 --- a/crates/directory/src/cache/mod.rs +++ b/crates/directory/src/cache/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use parking_lot::Mutex; use crate::Directory; diff --git a/crates/directory/src/config.rs b/crates/directory/src/config.rs index 940720f9..c6833b6a 100644 --- a/crates/directory/src/config.rs +++ b/crates/directory/src/config.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use bb8::{ManageConnection, Pool}; use std::{ fs::File, diff --git a/crates/directory/src/imap/client.rs b/crates/directory/src/imap/client.rs index 576be086..c7fb5683 100644 --- a/crates/directory/src/imap/client.rs +++ b/crates/directory/src/imap/client.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use mail_send::Credentials; use smtp_proto::{ request::{parser::Rfc5321Parser, AUTH}, diff --git a/crates/directory/src/imap/config.rs b/crates/directory/src/imap/config.rs index c6172dd1..9cd7f2e8 100644 --- a/crates/directory/src/imap/config.rs +++ b/crates/directory/src/imap/config.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::sync::Arc; use mail_send::smtp::tls::build_tls_connector; diff --git a/crates/directory/src/imap/lookup.rs b/crates/directory/src/imap/lookup.rs index 18e9bc1d..d18d9642 100644 --- a/crates/directory/src/imap/lookup.rs +++ b/crates/directory/src/imap/lookup.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use mail_send::Credentials; use smtp_proto::{AUTH_CRAM_MD5, AUTH_LOGIN, AUTH_OAUTHBEARER, AUTH_PLAIN, AUTH_XOAUTH2}; diff --git a/crates/directory/src/imap/mod.rs b/crates/directory/src/imap/mod.rs index 6593e6ee..d13d0bae 100644 --- a/crates/directory/src/imap/mod.rs +++ b/crates/directory/src/imap/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + pub mod client; pub mod config; pub mod lookup; diff --git a/crates/directory/src/imap/pool.rs b/crates/directory/src/imap/pool.rs index 1307245e..30bdf7a0 100644 --- a/crates/directory/src/imap/pool.rs +++ b/crates/directory/src/imap/pool.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::sync::atomic::Ordering; use bb8::ManageConnection; diff --git a/crates/directory/src/imap/tls.rs b/crates/directory/src/imap/tls.rs index 93f3b5bf..5940ce8c 100644 --- a/crates/directory/src/imap/tls.rs +++ b/crates/directory/src/imap/tls.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::time::Duration; use rustls::ServerName; diff --git a/crates/directory/src/ldap/config.rs b/crates/directory/src/ldap/config.rs index b82c2e09..2786476c 100644 --- a/crates/directory/src/ldap/config.rs +++ b/crates/directory/src/ldap/config.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::sync::Arc; use ldap3::LdapConnSettings; diff --git a/crates/directory/src/ldap/lookup.rs b/crates/directory/src/ldap/lookup.rs index 14dacb50..5e0d2d70 100644 --- a/crates/directory/src/ldap/lookup.rs +++ b/crates/directory/src/ldap/lookup.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use ldap3::{ResultEntry, Scope, SearchEntry}; use mail_send::Credentials; diff --git a/crates/directory/src/ldap/mod.rs b/crates/directory/src/ldap/mod.rs index a71c454d..8cd12d91 100644 --- a/crates/directory/src/ldap/mod.rs +++ b/crates/directory/src/ldap/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use bb8::Pool; use ldap3::{ldap_escape, LdapConnSettings}; diff --git a/crates/directory/src/ldap/pool.rs b/crates/directory/src/ldap/pool.rs index 0bb8a641..c62fc6b9 100644 --- a/crates/directory/src/ldap/pool.rs +++ b/crates/directory/src/ldap/pool.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use bb8::ManageConnection; use ldap3::{exop::WhoAmI, Ldap, LdapConnAsync, LdapError}; diff --git a/crates/directory/src/lib.rs b/crates/directory/src/lib.rs index b717c259..eaff7de7 100644 --- a/crates/directory/src/lib.rs +++ b/crates/directory/src/lib.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::{borrow::Cow, fmt::Debug, sync::Arc}; use ahash::{AHashMap, AHashSet}; diff --git a/crates/directory/src/memory/config.rs b/crates/directory/src/memory/config.rs index 4909b610..dc5a28ae 100644 --- a/crates/directory/src/memory/config.rs +++ b/crates/directory/src/memory/config.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::sync::Arc; use utils::config::{utils::AsKey, Config}; diff --git a/crates/directory/src/memory/lookup.rs b/crates/directory/src/memory/lookup.rs index 79ba585d..252e2ddf 100644 --- a/crates/directory/src/memory/lookup.rs +++ b/crates/directory/src/memory/lookup.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use mail_send::Credentials; use crate::{to_catch_all_address, unwrap_subaddress, Directory, DirectoryError, Principal}; diff --git a/crates/directory/src/memory/mod.rs b/crates/directory/src/memory/mod.rs index 926743c6..8aade901 100644 --- a/crates/directory/src/memory/mod.rs +++ b/crates/directory/src/memory/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use ahash::{AHashMap, AHashSet}; use crate::{DirectoryOptions, Principal}; diff --git a/crates/directory/src/secret.rs b/crates/directory/src/secret.rs index 58ee0ed0..0df74773 100644 --- a/crates/directory/src/secret.rs +++ b/crates/directory/src/secret.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use argon2::Argon2; use mail_builder::encoders::base64::base64_encode; use mail_parser::decoders::base64::base64_decode; diff --git a/crates/directory/src/smtp/config.rs b/crates/directory/src/smtp/config.rs index cfba988c..c385b3a3 100644 --- a/crates/directory/src/smtp/config.rs +++ b/crates/directory/src/smtp/config.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::sync::Arc; use mail_send::{smtp::tls::build_tls_connector, SmtpClientBuilder}; diff --git a/crates/directory/src/smtp/lookup.rs b/crates/directory/src/smtp/lookup.rs index fd69edb0..e4cf0c29 100644 --- a/crates/directory/src/smtp/lookup.rs +++ b/crates/directory/src/smtp/lookup.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use mail_send::{smtp::AssertReply, Credentials}; use smtp_proto::Severity; diff --git a/crates/directory/src/smtp/mod.rs b/crates/directory/src/smtp/mod.rs index 397006d8..97bc2b94 100644 --- a/crates/directory/src/smtp/mod.rs +++ b/crates/directory/src/smtp/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + pub mod config; pub mod lookup; pub mod pool; diff --git a/crates/directory/src/smtp/pool.rs b/crates/directory/src/smtp/pool.rs index 283cd974..6bda981c 100644 --- a/crates/directory/src/smtp/pool.rs +++ b/crates/directory/src/smtp/pool.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use bb8::ManageConnection; use mail_send::{smtp::AssertReply, Error}; diff --git a/crates/directory/src/sql/config.rs b/crates/directory/src/sql/config.rs index 924afb05..881c321c 100644 --- a/crates/directory/src/sql/config.rs +++ b/crates/directory/src/sql/config.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::sync::Arc; use sqlx::any::{install_default_drivers, AnyPoolOptions}; diff --git a/crates/directory/src/sql/lookup.rs b/crates/directory/src/sql/lookup.rs index c3afbbd0..76a0c185 100644 --- a/crates/directory/src/sql/lookup.rs +++ b/crates/directory/src/sql/lookup.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use mail_send::Credentials; use sqlx::{any::AnyRow, Column, Row}; diff --git a/crates/directory/src/sql/mod.rs b/crates/directory/src/sql/mod.rs index 914e8a27..7d358123 100644 --- a/crates/directory/src/sql/mod.rs +++ b/crates/directory/src/sql/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use sqlx::{Any, Pool}; use crate::DirectoryOptions; diff --git a/crates/imap-proto/src/lib.rs b/crates/imap-proto/src/lib.rs index 82d216c9..b051a42b 100644 --- a/crates/imap-proto/src/lib.rs +++ b/crates/imap-proto/src/lib.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::borrow::Cow; use jmap_proto::error::{method::MethodError, set::SetErrorType}; diff --git a/crates/imap-proto/src/parser/acl.rs b/crates/imap-proto/src/parser/acl.rs index 2b7c6644..7829fb35 100644 --- a/crates/imap-proto/src/parser/acl.rs +++ b/crates/imap-proto/src/parser/acl.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/append.rs b/crates/imap-proto/src/parser/append.rs index 824ab123..f44c2da7 100644 --- a/crates/imap-proto/src/parser/append.rs +++ b/crates/imap-proto/src/parser/append.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/authenticate.rs b/crates/imap-proto/src/parser/authenticate.rs index aff4e47f..da542910 100644 --- a/crates/imap-proto/src/parser/authenticate.rs +++ b/crates/imap-proto/src/parser/authenticate.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/copy_move.rs b/crates/imap-proto/src/parser/copy_move.rs index 63abea42..de055fdf 100644 --- a/crates/imap-proto/src/parser/copy_move.rs +++ b/crates/imap-proto/src/parser/copy_move.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/create.rs b/crates/imap-proto/src/parser/create.rs index 53430a52..19f46a88 100644 --- a/crates/imap-proto/src/parser/create.rs +++ b/crates/imap-proto/src/parser/create.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/delete.rs b/crates/imap-proto/src/parser/delete.rs index 6840b3c5..ac5f3d72 100644 --- a/crates/imap-proto/src/parser/delete.rs +++ b/crates/imap-proto/src/parser/delete.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/enable.rs b/crates/imap-proto/src/parser/enable.rs index 6e282ef4..56dd2ff2 100644 --- a/crates/imap-proto/src/parser/enable.rs +++ b/crates/imap-proto/src/parser/enable.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/fetch.rs b/crates/imap-proto/src/parser/fetch.rs index c9a450f8..35c65eed 100644 --- a/crates/imap-proto/src/parser/fetch.rs +++ b/crates/imap-proto/src/parser/fetch.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/list.rs b/crates/imap-proto/src/parser/list.rs index 538964ac..49425c65 100644 --- a/crates/imap-proto/src/parser/list.rs +++ b/crates/imap-proto/src/parser/list.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/login.rs b/crates/imap-proto/src/parser/login.rs index 30fe6085..152d66f3 100644 --- a/crates/imap-proto/src/parser/login.rs +++ b/crates/imap-proto/src/parser/login.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/lsub.rs b/crates/imap-proto/src/parser/lsub.rs index fbb971f3..2b054585 100644 --- a/crates/imap-proto/src/parser/lsub.rs +++ b/crates/imap-proto/src/parser/lsub.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/mod.rs b/crates/imap-proto/src/parser/mod.rs index c0adb5c6..ff7a90fd 100644 --- a/crates/imap-proto/src/parser/mod.rs +++ b/crates/imap-proto/src/parser/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/rename.rs b/crates/imap-proto/src/parser/rename.rs index 06a36c28..75992a82 100644 --- a/crates/imap-proto/src/parser/rename.rs +++ b/crates/imap-proto/src/parser/rename.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/search.rs b/crates/imap-proto/src/parser/search.rs index 3a9c662b..1c48e5b4 100644 --- a/crates/imap-proto/src/parser/search.rs +++ b/crates/imap-proto/src/parser/search.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/select.rs b/crates/imap-proto/src/parser/select.rs index 650fe2f7..d5f5f31c 100644 --- a/crates/imap-proto/src/parser/select.rs +++ b/crates/imap-proto/src/parser/select.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/sort.rs b/crates/imap-proto/src/parser/sort.rs index 9018506d..67da6474 100644 --- a/crates/imap-proto/src/parser/sort.rs +++ b/crates/imap-proto/src/parser/sort.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/status.rs b/crates/imap-proto/src/parser/status.rs index e2208ffe..b5b7faac 100644 --- a/crates/imap-proto/src/parser/status.rs +++ b/crates/imap-proto/src/parser/status.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/store.rs b/crates/imap-proto/src/parser/store.rs index c3839e76..968953f0 100644 --- a/crates/imap-proto/src/parser/store.rs +++ b/crates/imap-proto/src/parser/store.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/subscribe.rs b/crates/imap-proto/src/parser/subscribe.rs index 01efdc55..5a494b49 100644 --- a/crates/imap-proto/src/parser/subscribe.rs +++ b/crates/imap-proto/src/parser/subscribe.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/parser/thread.rs b/crates/imap-proto/src/parser/thread.rs index b7c49b8c..b90083ea 100644 --- a/crates/imap-proto/src/parser/thread.rs +++ b/crates/imap-proto/src/parser/thread.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/acl.rs b/crates/imap-proto/src/protocol/acl.rs index 41696fef..d75cf8f4 100644 --- a/crates/imap-proto/src/protocol/acl.rs +++ b/crates/imap-proto/src/protocol/acl.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/append.rs b/crates/imap-proto/src/protocol/append.rs index cb14fe00..62db2953 100644 --- a/crates/imap-proto/src/protocol/append.rs +++ b/crates/imap-proto/src/protocol/append.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/authenticate.rs b/crates/imap-proto/src/protocol/authenticate.rs index e01cd86c..9eab8178 100644 --- a/crates/imap-proto/src/protocol/authenticate.rs +++ b/crates/imap-proto/src/protocol/authenticate.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/capability.rs b/crates/imap-proto/src/protocol/capability.rs index 3866d3bc..ef2cb297 100644 --- a/crates/imap-proto/src/protocol/capability.rs +++ b/crates/imap-proto/src/protocol/capability.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/copy_move.rs b/crates/imap-proto/src/protocol/copy_move.rs index 7995c669..d2f718d4 100644 --- a/crates/imap-proto/src/protocol/copy_move.rs +++ b/crates/imap-proto/src/protocol/copy_move.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/create.rs b/crates/imap-proto/src/protocol/create.rs index 05eeaa56..ea9cc4f1 100644 --- a/crates/imap-proto/src/protocol/create.rs +++ b/crates/imap-proto/src/protocol/create.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/delete.rs b/crates/imap-proto/src/protocol/delete.rs index 2a3dd068..5e14eb15 100644 --- a/crates/imap-proto/src/protocol/delete.rs +++ b/crates/imap-proto/src/protocol/delete.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/enable.rs b/crates/imap-proto/src/protocol/enable.rs index 79363c0e..3faf80da 100644 --- a/crates/imap-proto/src/protocol/enable.rs +++ b/crates/imap-proto/src/protocol/enable.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/expunge.rs b/crates/imap-proto/src/protocol/expunge.rs index 75bed02f..6f60b149 100644 --- a/crates/imap-proto/src/protocol/expunge.rs +++ b/crates/imap-proto/src/protocol/expunge.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/fetch.rs b/crates/imap-proto/src/protocol/fetch.rs index 8a558fa9..125a97c0 100644 --- a/crates/imap-proto/src/protocol/fetch.rs +++ b/crates/imap-proto/src/protocol/fetch.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/list.rs b/crates/imap-proto/src/protocol/list.rs index 6b3b1af1..b04d073f 100644 --- a/crates/imap-proto/src/protocol/list.rs +++ b/crates/imap-proto/src/protocol/list.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/login.rs b/crates/imap-proto/src/protocol/login.rs index 22c5892d..e323a150 100644 --- a/crates/imap-proto/src/protocol/login.rs +++ b/crates/imap-proto/src/protocol/login.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/mod.rs b/crates/imap-proto/src/protocol/mod.rs index 2c0e2388..778adfd9 100644 --- a/crates/imap-proto/src/protocol/mod.rs +++ b/crates/imap-proto/src/protocol/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/namespace.rs b/crates/imap-proto/src/protocol/namespace.rs index 5f06c722..b5138383 100644 --- a/crates/imap-proto/src/protocol/namespace.rs +++ b/crates/imap-proto/src/protocol/namespace.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/rename.rs b/crates/imap-proto/src/protocol/rename.rs index 30f4c9d2..bd89917d 100644 --- a/crates/imap-proto/src/protocol/rename.rs +++ b/crates/imap-proto/src/protocol/rename.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/response.rs b/crates/imap-proto/src/protocol/response.rs deleted file mode 100644 index e69de29b..00000000 diff --git a/crates/imap-proto/src/protocol/search.rs b/crates/imap-proto/src/protocol/search.rs index 022ba224..12898de7 100644 --- a/crates/imap-proto/src/protocol/search.rs +++ b/crates/imap-proto/src/protocol/search.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/select.rs b/crates/imap-proto/src/protocol/select.rs index fe88e713..2dff6a62 100644 --- a/crates/imap-proto/src/protocol/select.rs +++ b/crates/imap-proto/src/protocol/select.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/status.rs b/crates/imap-proto/src/protocol/status.rs index 988af3ea..c78a143e 100644 --- a/crates/imap-proto/src/protocol/status.rs +++ b/crates/imap-proto/src/protocol/status.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/store.rs b/crates/imap-proto/src/protocol/store.rs index 797c91a7..aab5fbe8 100644 --- a/crates/imap-proto/src/protocol/store.rs +++ b/crates/imap-proto/src/protocol/store.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/subscribe.rs b/crates/imap-proto/src/protocol/subscribe.rs index 2a3dd068..5e14eb15 100644 --- a/crates/imap-proto/src/protocol/subscribe.rs +++ b/crates/imap-proto/src/protocol/subscribe.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/protocol/thread.rs b/crates/imap-proto/src/protocol/thread.rs index 6ddd2258..9c5a958c 100644 --- a/crates/imap-proto/src/protocol/thread.rs +++ b/crates/imap-proto/src/protocol/thread.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/receiver.rs b/crates/imap-proto/src/receiver.rs index 56f56d07..3a07fadc 100644 --- a/crates/imap-proto/src/receiver.rs +++ b/crates/imap-proto/src/receiver.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap-proto/src/utf7.rs b/crates/imap-proto/src/utf7.rs index fe5a62e4..8c837361 100644 --- a/crates/imap-proto/src/utf7.rs +++ b/crates/imap-proto/src/utf7.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/core/client.rs b/crates/imap/src/core/client.rs index 088e985a..bb67a198 100644 --- a/crates/imap/src/core/client.rs +++ b/crates/imap/src/core/client.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/core/message.rs b/crates/imap/src/core/message.rs index fa1905f7..8eb1c0ee 100644 --- a/crates/imap/src/core/message.rs +++ b/crates/imap/src/core/message.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::hash::{BuildHasher, Hash, Hasher}; use ahash::{AHashMap, AHashSet, AHasher, RandomState}; diff --git a/crates/imap/src/core/mod.rs b/crates/imap/src/core/mod.rs index 7fe08daf..63ac7cb2 100644 --- a/crates/imap/src/core/mod.rs +++ b/crates/imap/src/core/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::{ collections::BTreeMap, sync::{atomic::AtomicU32, Arc}, diff --git a/crates/imap/src/core/session.rs b/crates/imap/src/core/session.rs index 42bf118b..8ee7088e 100644 --- a/crates/imap/src/core/session.rs +++ b/crates/imap/src/core/session.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use imap_proto::{protocol::ProtocolVersion, receiver::Receiver}; use jmap::auth::rate_limit::RemoteAddress; use tokio::{ diff --git a/crates/imap/src/core/writer.rs b/crates/imap/src/core/writer.rs index 7ef98cb2..9f4c1953 100644 --- a/crates/imap/src/core/writer.rs +++ b/crates/imap/src/core/writer.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/lib.rs b/crates/imap/src/lib.rs index 251dbe93..441bb3b6 100644 --- a/crates/imap/src/lib.rs +++ b/crates/imap/src/lib.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::{collections::hash_map::RandomState, sync::Arc}; use crate::core::IMAP; diff --git a/crates/imap/src/op/acl.rs b/crates/imap/src/op/acl.rs index 3eb27f55..0c3da191 100644 --- a/crates/imap/src/op/acl.rs +++ b/crates/imap/src/op/acl.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/append.rs b/crates/imap/src/op/append.rs index fc7dc941..ba1e2edb 100644 --- a/crates/imap/src/op/append.rs +++ b/crates/imap/src/op/append.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/authenticate.rs b/crates/imap/src/op/authenticate.rs index 4f73892d..82d64f05 100644 --- a/crates/imap/src/op/authenticate.rs +++ b/crates/imap/src/op/authenticate.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/capability.rs b/crates/imap/src/op/capability.rs index 21ee3827..2c69fb67 100644 --- a/crates/imap/src/op/capability.rs +++ b/crates/imap/src/op/capability.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/close.rs b/crates/imap/src/op/close.rs index 67f486e6..23236f78 100644 --- a/crates/imap/src/op/close.rs +++ b/crates/imap/src/op/close.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/copy_move.rs b/crates/imap/src/op/copy_move.rs index e194f658..2edd9f57 100644 --- a/crates/imap/src/op/copy_move.rs +++ b/crates/imap/src/op/copy_move.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/create.rs b/crates/imap/src/op/create.rs index 767275cb..9fa23660 100644 --- a/crates/imap/src/op/create.rs +++ b/crates/imap/src/op/create.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/delete.rs b/crates/imap/src/op/delete.rs index 8d650857..52281a81 100644 --- a/crates/imap/src/op/delete.rs +++ b/crates/imap/src/op/delete.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/enable.rs b/crates/imap/src/op/enable.rs index 975ed6d5..416eef2b 100644 --- a/crates/imap/src/op/enable.rs +++ b/crates/imap/src/op/enable.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/expunge.rs b/crates/imap/src/op/expunge.rs index 2468a01f..4b963088 100644 --- a/crates/imap/src/op/expunge.rs +++ b/crates/imap/src/op/expunge.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/fetch.rs b/crates/imap/src/op/fetch.rs index 87df717e..254e0ef0 100644 --- a/crates/imap/src/op/fetch.rs +++ b/crates/imap/src/op/fetch.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/idle.rs b/crates/imap/src/op/idle.rs index 1bfb6ecd..ffa813d5 100644 --- a/crates/imap/src/op/idle.rs +++ b/crates/imap/src/op/idle.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/list.rs b/crates/imap/src/op/list.rs index 3f7f1013..d2b80caf 100644 --- a/crates/imap/src/op/list.rs +++ b/crates/imap/src/op/list.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/login.rs b/crates/imap/src/op/login.rs index 52c69ac8..8008978c 100644 --- a/crates/imap/src/op/login.rs +++ b/crates/imap/src/op/login.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/logout.rs b/crates/imap/src/op/logout.rs index 3130fb57..c66bbf2a 100644 --- a/crates/imap/src/op/logout.rs +++ b/crates/imap/src/op/logout.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/mod.rs b/crates/imap/src/op/mod.rs index 74caee94..e4017eb1 100644 --- a/crates/imap/src/op/mod.rs +++ b/crates/imap/src/op/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + 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 315f80c3..4e865ff3 100644 --- a/crates/imap/src/op/namespace.rs +++ b/crates/imap/src/op/namespace.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/noop.rs b/crates/imap/src/op/noop.rs index 82a77bb4..794f7112 100644 --- a/crates/imap/src/op/noop.rs +++ b/crates/imap/src/op/noop.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/rename.rs b/crates/imap/src/op/rename.rs index f7942d3c..7ed754ec 100644 --- a/crates/imap/src/op/rename.rs +++ b/crates/imap/src/op/rename.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/search.rs b/crates/imap/src/op/search.rs index 0a72555a..cba7c3bc 100644 --- a/crates/imap/src/op/search.rs +++ b/crates/imap/src/op/search.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/select.rs b/crates/imap/src/op/select.rs index 73e915e2..1f0e9ee4 100644 --- a/crates/imap/src/op/select.rs +++ b/crates/imap/src/op/select.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/status.rs b/crates/imap/src/op/status.rs index 7504564d..a5a27a35 100644 --- a/crates/imap/src/op/status.rs +++ b/crates/imap/src/op/status.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/store.rs b/crates/imap/src/op/store.rs index 02b6e3bc..f56a3491 100644 --- a/crates/imap/src/op/store.rs +++ b/crates/imap/src/op/store.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/subscribe.rs b/crates/imap/src/op/subscribe.rs index 24e54705..1562272d 100644 --- a/crates/imap/src/op/subscribe.rs +++ b/crates/imap/src/op/subscribe.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/imap/src/op/thread.rs b/crates/imap/src/op/thread.rs index 2f205a83..92c32c27 100644 --- a/crates/imap/src/op/thread.rs +++ b/crates/imap/src/op/thread.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/install/build.rs b/crates/install/build.rs index 81caa36d..bbb40c62 100644 --- a/crates/install/build.rs +++ b/crates/install/build.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + fn main() { println!( "cargo:rustc-env=TARGET={}", diff --git a/crates/install/src/main.rs b/crates/install/src/main.rs index 2c71e6ea..9d3cca73 100644 --- a/crates/install/src/main.rs +++ b/crates/install/src/main.rs @@ -45,6 +45,29 @@ enum Component { Smtp, } +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + #[derive(Debug, Clone, Copy, PartialEq, Eq)] enum Backend { SQLite, diff --git a/crates/jmap-proto/src/error/method.rs b/crates/jmap-proto/src/error/method.rs index 233dffbe..b335cb94 100644 --- a/crates/jmap-proto/src/error/method.rs +++ b/crates/jmap-proto/src/error/method.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/error/mod.rs b/crates/jmap-proto/src/error/mod.rs index fdc732ae..82fd7d99 100644 --- a/crates/jmap-proto/src/error/mod.rs +++ b/crates/jmap-proto/src/error/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/error/request.rs b/crates/jmap-proto/src/error/request.rs index fa5ab0ff..acec58d7 100644 --- a/crates/jmap-proto/src/error/request.rs +++ b/crates/jmap-proto/src/error/request.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/error/set.rs b/crates/jmap-proto/src/error/set.rs index 7e28e418..2cdf693a 100644 --- a/crates/jmap-proto/src/error/set.rs +++ b/crates/jmap-proto/src/error/set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/lib.rs b/crates/jmap-proto/src/lib.rs index b20866bd..0357faed 100644 --- a/crates/jmap-proto/src/lib.rs +++ b/crates/jmap-proto/src/lib.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/changes.rs b/crates/jmap-proto/src/method/changes.rs index 051e605b..52acb712 100644 --- a/crates/jmap-proto/src/method/changes.rs +++ b/crates/jmap-proto/src/method/changes.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/copy.rs b/crates/jmap-proto/src/method/copy.rs index 9325d082..59838343 100644 --- a/crates/jmap-proto/src/method/copy.rs +++ b/crates/jmap-proto/src/method/copy.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/get.rs b/crates/jmap-proto/src/method/get.rs index 48c1c0c3..1d38c4ac 100644 --- a/crates/jmap-proto/src/method/get.rs +++ b/crates/jmap-proto/src/method/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/import.rs b/crates/jmap-proto/src/method/import.rs index 1abb97fc..c7ce8629 100644 --- a/crates/jmap-proto/src/method/import.rs +++ b/crates/jmap-proto/src/method/import.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/mod.rs b/crates/jmap-proto/src/method/mod.rs index f65b4377..d9a34de6 100644 --- a/crates/jmap-proto/src/method/mod.rs +++ b/crates/jmap-proto/src/method/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/parse.rs b/crates/jmap-proto/src/method/parse.rs index 175b7c58..26a95166 100644 --- a/crates/jmap-proto/src/method/parse.rs +++ b/crates/jmap-proto/src/method/parse.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/query.rs b/crates/jmap-proto/src/method/query.rs index 1d817c2b..1df7c3bc 100644 --- a/crates/jmap-proto/src/method/query.rs +++ b/crates/jmap-proto/src/method/query.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/query_changes.rs b/crates/jmap-proto/src/method/query_changes.rs index ea82f24b..d9820afd 100644 --- a/crates/jmap-proto/src/method/query_changes.rs +++ b/crates/jmap-proto/src/method/query_changes.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/search_snippet.rs b/crates/jmap-proto/src/method/search_snippet.rs index 12dfd3e3..380d7466 100644 --- a/crates/jmap-proto/src/method/search_snippet.rs +++ b/crates/jmap-proto/src/method/search_snippet.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/set.rs b/crates/jmap-proto/src/method/set.rs index d2a2482a..2b28b300 100644 --- a/crates/jmap-proto/src/method/set.rs +++ b/crates/jmap-proto/src/method/set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/method/validate.rs b/crates/jmap-proto/src/method/validate.rs index e61bc9b2..05674b7a 100644 --- a/crates/jmap-proto/src/method/validate.rs +++ b/crates/jmap-proto/src/method/validate.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/object/email.rs b/crates/jmap-proto/src/object/email.rs index e3307754..bbbf1f27 100644 --- a/crates/jmap-proto/src/object/email.rs +++ b/crates/jmap-proto/src/object/email.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/object/email_submission.rs b/crates/jmap-proto/src/object/email_submission.rs index d49cf96b..aa11ff8f 100644 --- a/crates/jmap-proto/src/object/email_submission.rs +++ b/crates/jmap-proto/src/object/email_submission.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/object/index.rs b/crates/jmap-proto/src/object/index.rs index 2c43e55d..6fe8f8ae 100644 --- a/crates/jmap-proto/src/object/index.rs +++ b/crates/jmap-proto/src/object/index.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/object/mailbox.rs b/crates/jmap-proto/src/object/mailbox.rs index 128dee12..c8807c49 100644 --- a/crates/jmap-proto/src/object/mailbox.rs +++ b/crates/jmap-proto/src/object/mailbox.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/object/mod.rs b/crates/jmap-proto/src/object/mod.rs index b1dacec1..d9b3f0da 100644 --- a/crates/jmap-proto/src/object/mod.rs +++ b/crates/jmap-proto/src/object/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/object/sieve.rs b/crates/jmap-proto/src/object/sieve.rs index 576591ee..f4205273 100644 --- a/crates/jmap-proto/src/object/sieve.rs +++ b/crates/jmap-proto/src/object/sieve.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/parser/base32.rs b/crates/jmap-proto/src/parser/base32.rs index 37344a80..78e98f4b 100644 --- a/crates/jmap-proto/src/parser/base32.rs +++ b/crates/jmap-proto/src/parser/base32.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/parser/impls.rs b/crates/jmap-proto/src/parser/impls.rs index 57bd95ad..318d70e4 100644 --- a/crates/jmap-proto/src/parser/impls.rs +++ b/crates/jmap-proto/src/parser/impls.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/parser/json.rs b/crates/jmap-proto/src/parser/json.rs index c6678216..a03560c9 100644 --- a/crates/jmap-proto/src/parser/json.rs +++ b/crates/jmap-proto/src/parser/json.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/parser/mod.rs b/crates/jmap-proto/src/parser/mod.rs index a8b87c9b..e1fbfecd 100644 --- a/crates/jmap-proto/src/parser/mod.rs +++ b/crates/jmap-proto/src/parser/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/request/capability.rs b/crates/jmap-proto/src/request/capability.rs index 98bac650..5e27a187 100644 --- a/crates/jmap-proto/src/request/capability.rs +++ b/crates/jmap-proto/src/request/capability.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/request/echo.rs b/crates/jmap-proto/src/request/echo.rs index c77cffcd..200af56d 100644 --- a/crates/jmap-proto/src/request/echo.rs +++ b/crates/jmap-proto/src/request/echo.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/request/method.rs b/crates/jmap-proto/src/request/method.rs index ba72d7be..5616dbaa 100644 --- a/crates/jmap-proto/src/request/method.rs +++ b/crates/jmap-proto/src/request/method.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/request/mod.rs b/crates/jmap-proto/src/request/mod.rs index 30b132e2..8a5b6ba7 100644 --- a/crates/jmap-proto/src/request/mod.rs +++ b/crates/jmap-proto/src/request/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/request/parser.rs b/crates/jmap-proto/src/request/parser.rs index 6cb6c669..24a41dbf 100644 --- a/crates/jmap-proto/src/request/parser.rs +++ b/crates/jmap-proto/src/request/parser.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/request/reference.rs b/crates/jmap-proto/src/request/reference.rs index 8bb0c358..320dc63e 100644 --- a/crates/jmap-proto/src/request/reference.rs +++ b/crates/jmap-proto/src/request/reference.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/request/websocket.rs b/crates/jmap-proto/src/request/websocket.rs index 97308e1d..97584f64 100644 --- a/crates/jmap-proto/src/request/websocket.rs +++ b/crates/jmap-proto/src/request/websocket.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/response/mod.rs b/crates/jmap-proto/src/response/mod.rs index bed47ba5..b028b8e1 100644 --- a/crates/jmap-proto/src/response/mod.rs +++ b/crates/jmap-proto/src/response/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/response/references.rs b/crates/jmap-proto/src/response/references.rs index a38bd010..06ec15ed 100644 --- a/crates/jmap-proto/src/response/references.rs +++ b/crates/jmap-proto/src/response/references.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/response/serialize.rs b/crates/jmap-proto/src/response/serialize.rs index eec0fd97..6baa3971 100644 --- a/crates/jmap-proto/src/response/serialize.rs +++ b/crates/jmap-proto/src/response/serialize.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/acl.rs b/crates/jmap-proto/src/types/acl.rs index 39f6c1d1..39d01b2a 100644 --- a/crates/jmap-proto/src/types/acl.rs +++ b/crates/jmap-proto/src/types/acl.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/blob.rs b/crates/jmap-proto/src/types/blob.rs index b3d7f500..4be8ad0b 100644 --- a/crates/jmap-proto/src/types/blob.rs +++ b/crates/jmap-proto/src/types/blob.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/collection.rs b/crates/jmap-proto/src/types/collection.rs index 99dcd6e1..93c6979f 100644 --- a/crates/jmap-proto/src/types/collection.rs +++ b/crates/jmap-proto/src/types/collection.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/date.rs b/crates/jmap-proto/src/types/date.rs index 76171aa1..39698816 100644 --- a/crates/jmap-proto/src/types/date.rs +++ b/crates/jmap-proto/src/types/date.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/id.rs b/crates/jmap-proto/src/types/id.rs index 2c0c91ff..b423f413 100644 --- a/crates/jmap-proto/src/types/id.rs +++ b/crates/jmap-proto/src/types/id.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/keyword.rs b/crates/jmap-proto/src/types/keyword.rs index 85687c73..fd0fab81 100644 --- a/crates/jmap-proto/src/types/keyword.rs +++ b/crates/jmap-proto/src/types/keyword.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/mod.rs b/crates/jmap-proto/src/types/mod.rs index 013c3a73..55430e99 100644 --- a/crates/jmap-proto/src/types/mod.rs +++ b/crates/jmap-proto/src/types/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/pointer.rs b/crates/jmap-proto/src/types/pointer.rs index 3a9e20cc..914f53ec 100644 --- a/crates/jmap-proto/src/types/pointer.rs +++ b/crates/jmap-proto/src/types/pointer.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/property.rs b/crates/jmap-proto/src/types/property.rs index 06e1f99c..31380408 100644 --- a/crates/jmap-proto/src/types/property.rs +++ b/crates/jmap-proto/src/types/property.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/state.rs b/crates/jmap-proto/src/types/state.rs index 204848bd..2c2de523 100644 --- a/crates/jmap-proto/src/types/state.rs +++ b/crates/jmap-proto/src/types/state.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/type_state.rs b/crates/jmap-proto/src/types/type_state.rs index a8f3b055..938b4e84 100644 --- a/crates/jmap-proto/src/types/type_state.rs +++ b/crates/jmap-proto/src/types/type_state.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap-proto/src/types/value.rs b/crates/jmap-proto/src/types/value.rs index 62c4ad09..d6a68506 100644 --- a/crates/jmap-proto/src/types/value.rs +++ b/crates/jmap-proto/src/types/value.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/api/admin.rs b/crates/jmap/src/api/admin.rs index c391f4ce..d27cdc36 100644 --- a/crates/jmap/src/api/admin.rs +++ b/crates/jmap/src/api/admin.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/api/config.rs b/crates/jmap/src/api/config.rs index 845ec07e..e826a206 100644 --- a/crates/jmap/src/api/config.rs +++ b/crates/jmap/src/api/config.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/api/event_source.rs b/crates/jmap/src/api/event_source.rs index 8274aa2c..e8a85373 100644 --- a/crates/jmap/src/api/event_source.rs +++ b/crates/jmap/src/api/event_source.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/api/http.rs b/crates/jmap/src/api/http.rs index 73b91d4e..5a9f2e5f 100644 --- a/crates/jmap/src/api/http.rs +++ b/crates/jmap/src/api/http.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/api/mod.rs b/crates/jmap/src/api/mod.rs index edc02e1d..0943ef9d 100644 --- a/crates/jmap/src/api/mod.rs +++ b/crates/jmap/src/api/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/api/request.rs b/crates/jmap/src/api/request.rs index 631cef68..8d30a3af 100644 --- a/crates/jmap/src/api/request.rs +++ b/crates/jmap/src/api/request.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/api/session.rs b/crates/jmap/src/api/session.rs index 92d344cd..fc0437b0 100644 --- a/crates/jmap/src/api/session.rs +++ b/crates/jmap/src/api/session.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/auth/acl.rs b/crates/jmap/src/auth/acl.rs index 7ef3bba8..15166f3e 100644 --- a/crates/jmap/src/auth/acl.rs +++ b/crates/jmap/src/auth/acl.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/auth/authenticate.rs b/crates/jmap/src/auth/authenticate.rs index 58fbde00..a01e0e46 100644 --- a/crates/jmap/src/auth/authenticate.rs +++ b/crates/jmap/src/auth/authenticate.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/auth/mod.rs b/crates/jmap/src/auth/mod.rs index db674027..76c73d1c 100644 --- a/crates/jmap/src/auth/mod.rs +++ b/crates/jmap/src/auth/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/auth/oauth/device_auth.rs b/crates/jmap/src/auth/oauth/device_auth.rs index 98001cbc..a641fec9 100644 --- a/crates/jmap/src/auth/oauth/device_auth.rs +++ b/crates/jmap/src/auth/oauth/device_auth.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/auth/oauth/mod.rs b/crates/jmap/src/auth/oauth/mod.rs index 58d94681..658969fc 100644 --- a/crates/jmap/src/auth/oauth/mod.rs +++ b/crates/jmap/src/auth/oauth/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/auth/oauth/token.rs b/crates/jmap/src/auth/oauth/token.rs index 457a5227..73023c31 100644 --- a/crates/jmap/src/auth/oauth/token.rs +++ b/crates/jmap/src/auth/oauth/token.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/auth/oauth/user_code.rs b/crates/jmap/src/auth/oauth/user_code.rs index e449abe8..76fab55e 100644 --- a/crates/jmap/src/auth/oauth/user_code.rs +++ b/crates/jmap/src/auth/oauth/user_code.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/auth/rate_limit.rs b/crates/jmap/src/auth/rate_limit.rs index f03c9473..4fa31c78 100644 --- a/crates/jmap/src/auth/rate_limit.rs +++ b/crates/jmap/src/auth/rate_limit.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/blob/copy.rs b/crates/jmap/src/blob/copy.rs index bd61d59f..69e6a1d3 100644 --- a/crates/jmap/src/blob/copy.rs +++ b/crates/jmap/src/blob/copy.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/blob/download.rs b/crates/jmap/src/blob/download.rs index 203f07c1..3ef8449c 100644 --- a/crates/jmap/src/blob/download.rs +++ b/crates/jmap/src/blob/download.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/blob/mod.rs b/crates/jmap/src/blob/mod.rs index 0681583c..98e52afe 100644 --- a/crates/jmap/src/blob/mod.rs +++ b/crates/jmap/src/blob/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/blob/upload.rs b/crates/jmap/src/blob/upload.rs index 62b67635..52455130 100644 --- a/crates/jmap/src/blob/upload.rs +++ b/crates/jmap/src/blob/upload.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/changes/get.rs b/crates/jmap/src/changes/get.rs index dbdd80ba..b5835b3d 100644 --- a/crates/jmap/src/changes/get.rs +++ b/crates/jmap/src/changes/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/changes/mod.rs b/crates/jmap/src/changes/mod.rs index 549b8efb..b9497403 100644 --- a/crates/jmap/src/changes/mod.rs +++ b/crates/jmap/src/changes/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/changes/query.rs b/crates/jmap/src/changes/query.rs index 3bc04166..3971ce5e 100644 --- a/crates/jmap/src/changes/query.rs +++ b/crates/jmap/src/changes/query.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/changes/state.rs b/crates/jmap/src/changes/state.rs index 721c6fef..08167e94 100644 --- a/crates/jmap/src/changes/state.rs +++ b/crates/jmap/src/changes/state.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/changes/write.rs b/crates/jmap/src/changes/write.rs index 5ff7e9b2..70e9b791 100644 --- a/crates/jmap/src/changes/write.rs +++ b/crates/jmap/src/changes/write.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/body.rs b/crates/jmap/src/email/body.rs index 01288765..cbbfff91 100644 --- a/crates/jmap/src/email/body.rs +++ b/crates/jmap/src/email/body.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/copy.rs b/crates/jmap/src/email/copy.rs index c4fb820a..5134ca62 100644 --- a/crates/jmap/src/email/copy.rs +++ b/crates/jmap/src/email/copy.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/get.rs b/crates/jmap/src/email/get.rs index 962688ce..0ecfc500 100644 --- a/crates/jmap/src/email/get.rs +++ b/crates/jmap/src/email/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/headers.rs b/crates/jmap/src/email/headers.rs index f84780d2..a7e90d31 100644 --- a/crates/jmap/src/email/headers.rs +++ b/crates/jmap/src/email/headers.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/import.rs b/crates/jmap/src/email/import.rs index f3da28a2..a3d2b236 100644 --- a/crates/jmap/src/email/import.rs +++ b/crates/jmap/src/email/import.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/index.rs b/crates/jmap/src/email/index.rs index d0872a64..04cafe84 100644 --- a/crates/jmap/src/email/index.rs +++ b/crates/jmap/src/email/index.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/ingest.rs b/crates/jmap/src/email/ingest.rs index e098401b..e6a985b3 100644 --- a/crates/jmap/src/email/ingest.rs +++ b/crates/jmap/src/email/ingest.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/mod.rs b/crates/jmap/src/email/mod.rs index 5d40c06e..df394285 100644 --- a/crates/jmap/src/email/mod.rs +++ b/crates/jmap/src/email/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/parse.rs b/crates/jmap/src/email/parse.rs index 1337ac80..691b8eaa 100644 --- a/crates/jmap/src/email/parse.rs +++ b/crates/jmap/src/email/parse.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/query.rs b/crates/jmap/src/email/query.rs index d3854a5f..684bbaa1 100644 --- a/crates/jmap/src/email/query.rs +++ b/crates/jmap/src/email/query.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/set.rs b/crates/jmap/src/email/set.rs index 837bb7d6..46f6e23f 100644 --- a/crates/jmap/src/email/set.rs +++ b/crates/jmap/src/email/set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/email/snippet.rs b/crates/jmap/src/email/snippet.rs index e325bdc4..05e2653e 100644 --- a/crates/jmap/src/email/snippet.rs +++ b/crates/jmap/src/email/snippet.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/identity/get.rs b/crates/jmap/src/identity/get.rs index c3030ead..e0174739 100644 --- a/crates/jmap/src/identity/get.rs +++ b/crates/jmap/src/identity/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/identity/mod.rs b/crates/jmap/src/identity/mod.rs index 2bc23071..3ac096b0 100644 --- a/crates/jmap/src/identity/mod.rs +++ b/crates/jmap/src/identity/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/identity/set.rs b/crates/jmap/src/identity/set.rs index 65f99546..68a26860 100644 --- a/crates/jmap/src/identity/set.rs +++ b/crates/jmap/src/identity/set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/lib.rs b/crates/jmap/src/lib.rs index 559cf5e5..b8c2989c 100644 --- a/crates/jmap/src/lib.rs +++ b/crates/jmap/src/lib.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/mailbox/get.rs b/crates/jmap/src/mailbox/get.rs index d567ebe0..a18b6474 100644 --- a/crates/jmap/src/mailbox/get.rs +++ b/crates/jmap/src/mailbox/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/mailbox/mod.rs b/crates/jmap/src/mailbox/mod.rs index 92ab0813..87aefefe 100644 --- a/crates/jmap/src/mailbox/mod.rs +++ b/crates/jmap/src/mailbox/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/mailbox/query.rs b/crates/jmap/src/mailbox/query.rs index 00176a63..84880059 100644 --- a/crates/jmap/src/mailbox/query.rs +++ b/crates/jmap/src/mailbox/query.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/mailbox/set.rs b/crates/jmap/src/mailbox/set.rs index 4274a71f..4070a8c6 100644 --- a/crates/jmap/src/mailbox/set.rs +++ b/crates/jmap/src/mailbox/set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/principal/get.rs b/crates/jmap/src/principal/get.rs index 6095f673..e0e4a93a 100644 --- a/crates/jmap/src/principal/get.rs +++ b/crates/jmap/src/principal/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/principal/mod.rs b/crates/jmap/src/principal/mod.rs index 10050e8a..cc153667 100644 --- a/crates/jmap/src/principal/mod.rs +++ b/crates/jmap/src/principal/mod.rs @@ -1,2 +1,25 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + pub mod get; pub mod query; diff --git a/crates/jmap/src/principal/query.rs b/crates/jmap/src/principal/query.rs index 5a9ba9fb..cf22142f 100644 --- a/crates/jmap/src/principal/query.rs +++ b/crates/jmap/src/principal/query.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/push/ece.rs b/crates/jmap/src/push/ece.rs index f493b12b..b693956a 100644 --- a/crates/jmap/src/push/ece.rs +++ b/crates/jmap/src/push/ece.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/push/get.rs b/crates/jmap/src/push/get.rs index 7d658ef4..77323630 100644 --- a/crates/jmap/src/push/get.rs +++ b/crates/jmap/src/push/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/push/manager.rs b/crates/jmap/src/push/manager.rs index 64de6b16..106f9a3b 100644 --- a/crates/jmap/src/push/manager.rs +++ b/crates/jmap/src/push/manager.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/push/mod.rs b/crates/jmap/src/push/mod.rs index 857c5f73..fb6afad8 100644 --- a/crates/jmap/src/push/mod.rs +++ b/crates/jmap/src/push/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/push/set.rs b/crates/jmap/src/push/set.rs index 86a78d3c..6a8ff557 100644 --- a/crates/jmap/src/push/set.rs +++ b/crates/jmap/src/push/set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/services/delivery.rs b/crates/jmap/src/services/delivery.rs index a0908444..23cccb69 100644 --- a/crates/jmap/src/services/delivery.rs +++ b/crates/jmap/src/services/delivery.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/services/housekeeper.rs b/crates/jmap/src/services/housekeeper.rs index 74fd3497..ff23888a 100644 --- a/crates/jmap/src/services/housekeeper.rs +++ b/crates/jmap/src/services/housekeeper.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/services/ingest.rs b/crates/jmap/src/services/ingest.rs index d87dc5e8..78b6cc2b 100644 --- a/crates/jmap/src/services/ingest.rs +++ b/crates/jmap/src/services/ingest.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/services/mod.rs b/crates/jmap/src/services/mod.rs index 29d4ff37..899d1397 100644 --- a/crates/jmap/src/services/mod.rs +++ b/crates/jmap/src/services/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/services/state.rs b/crates/jmap/src/services/state.rs index 9c810183..d8fd4fef 100644 --- a/crates/jmap/src/services/state.rs +++ b/crates/jmap/src/services/state.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/sieve/get.rs b/crates/jmap/src/sieve/get.rs index 595e1c91..330e78c8 100644 --- a/crates/jmap/src/sieve/get.rs +++ b/crates/jmap/src/sieve/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/sieve/ingest.rs b/crates/jmap/src/sieve/ingest.rs index f4d8c1e0..ac2d1566 100644 --- a/crates/jmap/src/sieve/ingest.rs +++ b/crates/jmap/src/sieve/ingest.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/sieve/mod.rs b/crates/jmap/src/sieve/mod.rs index 2b3552d8..c7ae3b2e 100644 --- a/crates/jmap/src/sieve/mod.rs +++ b/crates/jmap/src/sieve/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/sieve/query.rs b/crates/jmap/src/sieve/query.rs index 56635e4f..033f0054 100644 --- a/crates/jmap/src/sieve/query.rs +++ b/crates/jmap/src/sieve/query.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/sieve/set.rs b/crates/jmap/src/sieve/set.rs index bf56fdca..7fee2e18 100644 --- a/crates/jmap/src/sieve/set.rs +++ b/crates/jmap/src/sieve/set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/sieve/validate.rs b/crates/jmap/src/sieve/validate.rs index e28f24bd..d2333f68 100644 --- a/crates/jmap/src/sieve/validate.rs +++ b/crates/jmap/src/sieve/validate.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/submission/get.rs b/crates/jmap/src/submission/get.rs index 2935a226..b6277fcd 100644 --- a/crates/jmap/src/submission/get.rs +++ b/crates/jmap/src/submission/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/submission/mod.rs b/crates/jmap/src/submission/mod.rs index aa8dbe8e..5b87a1fe 100644 --- a/crates/jmap/src/submission/mod.rs +++ b/crates/jmap/src/submission/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/submission/query.rs b/crates/jmap/src/submission/query.rs index 8222f521..1442b73b 100644 --- a/crates/jmap/src/submission/query.rs +++ b/crates/jmap/src/submission/query.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/submission/set.rs b/crates/jmap/src/submission/set.rs index e761e455..1567a6ac 100644 --- a/crates/jmap/src/submission/set.rs +++ b/crates/jmap/src/submission/set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/thread/get.rs b/crates/jmap/src/thread/get.rs index 4b95e8c3..53acac78 100644 --- a/crates/jmap/src/thread/get.rs +++ b/crates/jmap/src/thread/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/thread/mod.rs b/crates/jmap/src/thread/mod.rs index 0dd4b5ba..e2021b2c 100644 --- a/crates/jmap/src/thread/mod.rs +++ b/crates/jmap/src/thread/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/vacation/get.rs b/crates/jmap/src/vacation/get.rs index 5518aca2..26fccaa1 100644 --- a/crates/jmap/src/vacation/get.rs +++ b/crates/jmap/src/vacation/get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/vacation/mod.rs b/crates/jmap/src/vacation/mod.rs index 2bc23071..3ac096b0 100644 --- a/crates/jmap/src/vacation/mod.rs +++ b/crates/jmap/src/vacation/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/vacation/set.rs b/crates/jmap/src/vacation/set.rs index 8b76075f..de9aca1b 100644 --- a/crates/jmap/src/vacation/set.rs +++ b/crates/jmap/src/vacation/set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/websocket/mod.rs b/crates/jmap/src/websocket/mod.rs index 55cec9dd..b543207c 100644 --- a/crates/jmap/src/websocket/mod.rs +++ b/crates/jmap/src/websocket/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/websocket/stream.rs b/crates/jmap/src/websocket/stream.rs index f3708861..d11fe347 100644 --- a/crates/jmap/src/websocket/stream.rs +++ b/crates/jmap/src/websocket/stream.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/jmap/src/websocket/upgrade.rs b/crates/jmap/src/websocket/upgrade.rs index 1c3ff98e..e50f25a0 100644 --- a/crates/jmap/src/websocket/upgrade.rs +++ b/crates/jmap/src/websocket/upgrade.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/core/client.rs b/crates/managesieve/src/core/client.rs index 995c7535..04471d6a 100644 --- a/crates/managesieve/src/core/client.rs +++ b/crates/managesieve/src/core/client.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use imap::core::IMAP; use imap_proto::receiver::{self, Request}; use jmap_proto::types::{collection::Collection, property::Property}; diff --git a/crates/managesieve/src/core/mod.rs b/crates/managesieve/src/core/mod.rs index b205b252..803e2af1 100644 --- a/crates/managesieve/src/core/mod.rs +++ b/crates/managesieve/src/core/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + pub mod client; pub mod session; diff --git a/crates/managesieve/src/core/session.rs b/crates/managesieve/src/core/session.rs index 69eefc84..7e347de5 100644 --- a/crates/managesieve/src/core/session.rs +++ b/crates/managesieve/src/core/session.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use imap_proto::receiver::{self, Receiver}; use jmap::auth::rate_limit::RemoteAddress; use tokio::{ diff --git a/crates/managesieve/src/lib.rs b/crates/managesieve/src/lib.rs index 51a95938..65c5f9f3 100644 --- a/crates/managesieve/src/lib.rs +++ b/crates/managesieve/src/lib.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + pub mod core; pub mod op; diff --git a/crates/managesieve/src/op/authenticate.rs b/crates/managesieve/src/op/authenticate.rs index 57e6ecf6..19a8a6f6 100644 --- a/crates/managesieve/src/op/authenticate.rs +++ b/crates/managesieve/src/op/authenticate.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/capability.rs b/crates/managesieve/src/op/capability.rs index 33785e46..db37c0d1 100644 --- a/crates/managesieve/src/op/capability.rs +++ b/crates/managesieve/src/op/capability.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/checkscript.rs b/crates/managesieve/src/op/checkscript.rs index c8a75339..6158e4db 100644 --- a/crates/managesieve/src/op/checkscript.rs +++ b/crates/managesieve/src/op/checkscript.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/deletescript.rs b/crates/managesieve/src/op/deletescript.rs index 7ebae30f..b1fab65f 100644 --- a/crates/managesieve/src/op/deletescript.rs +++ b/crates/managesieve/src/op/deletescript.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/getscript.rs b/crates/managesieve/src/op/getscript.rs index 5d89bde8..ff14b047 100644 --- a/crates/managesieve/src/op/getscript.rs +++ b/crates/managesieve/src/op/getscript.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/havespace.rs b/crates/managesieve/src/op/havespace.rs index 09904833..6c60fbcf 100644 --- a/crates/managesieve/src/op/havespace.rs +++ b/crates/managesieve/src/op/havespace.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/listscripts.rs b/crates/managesieve/src/op/listscripts.rs index c044274e..49dd3458 100644 --- a/crates/managesieve/src/op/listscripts.rs +++ b/crates/managesieve/src/op/listscripts.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/logout.rs b/crates/managesieve/src/op/logout.rs index e98147d7..93dd2404 100644 --- a/crates/managesieve/src/op/logout.rs +++ b/crates/managesieve/src/op/logout.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/mod.rs b/crates/managesieve/src/op/mod.rs index 47642bbf..7cd4e1b8 100644 --- a/crates/managesieve/src/op/mod.rs +++ b/crates/managesieve/src/op/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use jmap_proto::error::method::MethodError; use crate::core::StatusResponse; diff --git a/crates/managesieve/src/op/noop.rs b/crates/managesieve/src/op/noop.rs index 58679592..20c6ff64 100644 --- a/crates/managesieve/src/op/noop.rs +++ b/crates/managesieve/src/op/noop.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/putscript.rs b/crates/managesieve/src/op/putscript.rs index 06258994..90bc7a16 100644 --- a/crates/managesieve/src/op/putscript.rs +++ b/crates/managesieve/src/op/putscript.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/renamescript.rs b/crates/managesieve/src/op/renamescript.rs index 4d171f71..d8b4c459 100644 --- a/crates/managesieve/src/op/renamescript.rs +++ b/crates/managesieve/src/op/renamescript.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/managesieve/src/op/setactive.rs b/crates/managesieve/src/op/setactive.rs index fafea0de..6859f85d 100644 --- a/crates/managesieve/src/op/setactive.rs +++ b/crates/managesieve/src/op/setactive.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/Cargo.toml b/crates/smtp/Cargo.toml index 9e2f818b..1e2c623e 100644 --- a/crates/smtp/Cargo.toml +++ b/crates/smtp/Cargo.toml @@ -7,7 +7,7 @@ homepage = "https://stalw.art/smtp" keywords = ["smtp", "email", "mail", "server"] categories = ["email"] license = "AGPL-3.0-only" -version = "0.1.1" +version = "0.3.0" edition = "2021" resolver = "2" diff --git a/crates/smtp/src/config/auth.rs b/crates/smtp/src/config/auth.rs index d9314cd9..c0b224bf 100644 --- a/crates/smtp/src/config/auth.rs +++ b/crates/smtp/src/config/auth.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/condition.rs b/crates/smtp/src/config/condition.rs index a366c31d..9d71c417 100644 --- a/crates/smtp/src/config/condition.rs +++ b/crates/smtp/src/config/condition.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/if_block.rs b/crates/smtp/src/config/if_block.rs index de1740d2..ab3856ed 100644 --- a/crates/smtp/src/config/if_block.rs +++ b/crates/smtp/src/config/if_block.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/mod.rs b/crates/smtp/src/config/mod.rs index 6562103c..95b65ceb 100644 --- a/crates/smtp/src/config/mod.rs +++ b/crates/smtp/src/config/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/queue.rs b/crates/smtp/src/config/queue.rs index b1dbecf7..60d7dfb8 100644 --- a/crates/smtp/src/config/queue.rs +++ b/crates/smtp/src/config/queue.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/remote.rs b/crates/smtp/src/config/remote.rs index e7c9ad58..1ea5292d 100644 --- a/crates/smtp/src/config/remote.rs +++ b/crates/smtp/src/config/remote.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/report.rs b/crates/smtp/src/config/report.rs index 218b46da..7ad93472 100644 --- a/crates/smtp/src/config/report.rs +++ b/crates/smtp/src/config/report.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/resolver.rs b/crates/smtp/src/config/resolver.rs index 701089eb..4396d351 100644 --- a/crates/smtp/src/config/resolver.rs +++ b/crates/smtp/src/config/resolver.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/scripts.rs b/crates/smtp/src/config/scripts.rs index f0198ee8..d04a4621 100644 --- a/crates/smtp/src/config/scripts.rs +++ b/crates/smtp/src/config/scripts.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/session.rs b/crates/smtp/src/config/session.rs index dfb04b63..1fab268e 100644 --- a/crates/smtp/src/config/session.rs +++ b/crates/smtp/src/config/session.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/config/throttle.rs b/crates/smtp/src/config/throttle.rs index 4a382ad1..237026d6 100644 --- a/crates/smtp/src/config/throttle.rs +++ b/crates/smtp/src/config/throttle.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/core/if_block.rs b/crates/smtp/src/core/if_block.rs index 285ca6de..1c34d341 100644 --- a/crates/smtp/src/core/if_block.rs +++ b/crates/smtp/src/core/if_block.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/core/management.rs b/crates/smtp/src/core/management.rs index 57900382..86cd4c1e 100644 --- a/crates/smtp/src/core/management.rs +++ b/crates/smtp/src/core/management.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/core/mod.rs b/crates/smtp/src/core/mod.rs index 4469f513..7d15e6ec 100644 --- a/crates/smtp/src/core/mod.rs +++ b/crates/smtp/src/core/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/core/params.rs b/crates/smtp/src/core/params.rs index e001970a..c683e73a 100644 --- a/crates/smtp/src/core/params.rs +++ b/crates/smtp/src/core/params.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/core/scripts.rs b/crates/smtp/src/core/scripts.rs index 3217ac5d..febd8988 100644 --- a/crates/smtp/src/core/scripts.rs +++ b/crates/smtp/src/core/scripts.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/core/throttle.rs b/crates/smtp/src/core/throttle.rs index 9f8411a7..49536c67 100644 --- a/crates/smtp/src/core/throttle.rs +++ b/crates/smtp/src/core/throttle.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/core/worker.rs b/crates/smtp/src/core/worker.rs index 1e3778f2..57841516 100644 --- a/crates/smtp/src/core/worker.rs +++ b/crates/smtp/src/core/worker.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/inbound/auth.rs b/crates/smtp/src/inbound/auth.rs index 4250a35f..b15db7fa 100644 --- a/crates/smtp/src/inbound/auth.rs +++ b/crates/smtp/src/inbound/auth.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/inbound/data.rs b/crates/smtp/src/inbound/data.rs index 93f569dd..a0a39e79 100644 --- a/crates/smtp/src/inbound/data.rs +++ b/crates/smtp/src/inbound/data.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/inbound/ehlo.rs b/crates/smtp/src/inbound/ehlo.rs index 468395cb..070aef2d 100644 --- a/crates/smtp/src/inbound/ehlo.rs +++ b/crates/smtp/src/inbound/ehlo.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/inbound/mail.rs b/crates/smtp/src/inbound/mail.rs index bac6e4bf..e275e7f7 100644 --- a/crates/smtp/src/inbound/mail.rs +++ b/crates/smtp/src/inbound/mail.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/inbound/mod.rs b/crates/smtp/src/inbound/mod.rs index be01186e..27b3e4c2 100644 --- a/crates/smtp/src/inbound/mod.rs +++ b/crates/smtp/src/inbound/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/inbound/rcpt.rs b/crates/smtp/src/inbound/rcpt.rs index cd5af8b4..7ab3883f 100644 --- a/crates/smtp/src/inbound/rcpt.rs +++ b/crates/smtp/src/inbound/rcpt.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/inbound/session.rs b/crates/smtp/src/inbound/session.rs index 9da9de56..5b1c8bae 100644 --- a/crates/smtp/src/inbound/session.rs +++ b/crates/smtp/src/inbound/session.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/inbound/spawn.rs b/crates/smtp/src/inbound/spawn.rs index 3a48f26e..1dfb7ea3 100644 --- a/crates/smtp/src/inbound/spawn.rs +++ b/crates/smtp/src/inbound/spawn.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/inbound/vrfy.rs b/crates/smtp/src/inbound/vrfy.rs index dc1abb17..ce266177 100644 --- a/crates/smtp/src/inbound/vrfy.rs +++ b/crates/smtp/src/inbound/vrfy.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/lib.rs b/crates/smtp/src/lib.rs index aa25f11a..3ce4f9c9 100644 --- a/crates/smtp/src/lib.rs +++ b/crates/smtp/src/lib.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/dane/dnssec.rs b/crates/smtp/src/outbound/dane/dnssec.rs index ddd90a70..8372b982 100644 --- a/crates/smtp/src/outbound/dane/dnssec.rs +++ b/crates/smtp/src/outbound/dane/dnssec.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/dane/mod.rs b/crates/smtp/src/outbound/dane/mod.rs index 7d1118dd..f0cf2d3d 100644 --- a/crates/smtp/src/outbound/dane/mod.rs +++ b/crates/smtp/src/outbound/dane/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/dane/verify.rs b/crates/smtp/src/outbound/dane/verify.rs index 3d599d95..0764ac3d 100644 --- a/crates/smtp/src/outbound/dane/verify.rs +++ b/crates/smtp/src/outbound/dane/verify.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/delivery.rs b/crates/smtp/src/outbound/delivery.rs index 80c7ba40..852cb7f9 100644 --- a/crates/smtp/src/outbound/delivery.rs +++ b/crates/smtp/src/outbound/delivery.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/local.rs b/crates/smtp/src/outbound/local.rs index 128602b4..17bf09c2 100644 --- a/crates/smtp/src/outbound/local.rs +++ b/crates/smtp/src/outbound/local.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use smtp_proto::Response; use tokio::sync::{mpsc, oneshot}; use utils::ipc::{DeliveryEvent, DeliveryResult, IngestMessage}; diff --git a/crates/smtp/src/outbound/lookup.rs b/crates/smtp/src/outbound/lookup.rs index 564a9280..c5506a43 100644 --- a/crates/smtp/src/outbound/lookup.rs +++ b/crates/smtp/src/outbound/lookup.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/mod.rs b/crates/smtp/src/outbound/mod.rs index 83a4136c..d3164015 100644 --- a/crates/smtp/src/outbound/mod.rs +++ b/crates/smtp/src/outbound/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/mta_sts/lookup.rs b/crates/smtp/src/outbound/mta_sts/lookup.rs index d0aa2258..b71e75ab 100644 --- a/crates/smtp/src/outbound/mta_sts/lookup.rs +++ b/crates/smtp/src/outbound/mta_sts/lookup.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/mta_sts/mod.rs b/crates/smtp/src/outbound/mta_sts/mod.rs index 5dbd20fb..c032d8cc 100644 --- a/crates/smtp/src/outbound/mta_sts/mod.rs +++ b/crates/smtp/src/outbound/mta_sts/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/mta_sts/parse.rs b/crates/smtp/src/outbound/mta_sts/parse.rs index addb9b8d..38eb60d3 100644 --- a/crates/smtp/src/outbound/mta_sts/parse.rs +++ b/crates/smtp/src/outbound/mta_sts/parse.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/mta_sts/verify.rs b/crates/smtp/src/outbound/mta_sts/verify.rs index af10ea56..3b0e95d4 100644 --- a/crates/smtp/src/outbound/mta_sts/verify.rs +++ b/crates/smtp/src/outbound/mta_sts/verify.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/outbound/session.rs b/crates/smtp/src/outbound/session.rs index d910df8f..a51a9a4c 100644 --- a/crates/smtp/src/outbound/session.rs +++ b/crates/smtp/src/outbound/session.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/queue/dsn.rs b/crates/smtp/src/queue/dsn.rs index 62f9b5fd..55e6eafb 100644 --- a/crates/smtp/src/queue/dsn.rs +++ b/crates/smtp/src/queue/dsn.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/queue/manager.rs b/crates/smtp/src/queue/manager.rs index 61120051..f639c9dd 100644 --- a/crates/smtp/src/queue/manager.rs +++ b/crates/smtp/src/queue/manager.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/queue/mod.rs b/crates/smtp/src/queue/mod.rs index ca39de07..d4275791 100644 --- a/crates/smtp/src/queue/mod.rs +++ b/crates/smtp/src/queue/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/queue/quota.rs b/crates/smtp/src/queue/quota.rs index e7820efc..affad4a6 100644 --- a/crates/smtp/src/queue/quota.rs +++ b/crates/smtp/src/queue/quota.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/queue/serialize.rs b/crates/smtp/src/queue/serialize.rs index 3c7f7f35..11a31b37 100644 --- a/crates/smtp/src/queue/serialize.rs +++ b/crates/smtp/src/queue/serialize.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/queue/spool.rs b/crates/smtp/src/queue/spool.rs index f92c910f..dfe0222c 100644 --- a/crates/smtp/src/queue/spool.rs +++ b/crates/smtp/src/queue/spool.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/queue/throttle.rs b/crates/smtp/src/queue/throttle.rs index 92aafb66..3fae6d2d 100644 --- a/crates/smtp/src/queue/throttle.rs +++ b/crates/smtp/src/queue/throttle.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/reporting/analysis.rs b/crates/smtp/src/reporting/analysis.rs index 50a3f0c2..205b0968 100644 --- a/crates/smtp/src/reporting/analysis.rs +++ b/crates/smtp/src/reporting/analysis.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/reporting/dkim.rs b/crates/smtp/src/reporting/dkim.rs index 63e8ba5e..8329c5da 100644 --- a/crates/smtp/src/reporting/dkim.rs +++ b/crates/smtp/src/reporting/dkim.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/reporting/dmarc.rs b/crates/smtp/src/reporting/dmarc.rs index 80f908aa..cd0c19cb 100644 --- a/crates/smtp/src/reporting/dmarc.rs +++ b/crates/smtp/src/reporting/dmarc.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/reporting/mod.rs b/crates/smtp/src/reporting/mod.rs index c774ef1e..966c8ffb 100644 --- a/crates/smtp/src/reporting/mod.rs +++ b/crates/smtp/src/reporting/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/reporting/scheduler.rs b/crates/smtp/src/reporting/scheduler.rs index eecfff9e..50b8ded4 100644 --- a/crates/smtp/src/reporting/scheduler.rs +++ b/crates/smtp/src/reporting/scheduler.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/reporting/spf.rs b/crates/smtp/src/reporting/spf.rs index 9955901f..7e4cdb32 100644 --- a/crates/smtp/src/reporting/spf.rs +++ b/crates/smtp/src/reporting/spf.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/smtp/src/reporting/tls.rs b/crates/smtp/src/reporting/tls.rs index 00101386..6f5e9a47 100644 --- a/crates/smtp/src/reporting/tls.rs +++ b/crates/smtp/src/reporting/tls.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/backend/rocksdb/bitmap.rs b/crates/store/src/backend/rocksdb/bitmap.rs index add1627a..194522b4 100644 --- a/crates/store/src/backend/rocksdb/bitmap.rs +++ b/crates/store/src/backend/rocksdb/bitmap.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/backend/sqlite/id_assign.rs b/crates/store/src/backend/sqlite/id_assign.rs index b256bea6..fecc64b7 100644 --- a/crates/store/src/backend/sqlite/id_assign.rs +++ b/crates/store/src/backend/sqlite/id_assign.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/lang.rs b/crates/store/src/fts/lang.rs index 3b642bf2..e5b780dc 100644 --- a/crates/store/src/fts/lang.rs +++ b/crates/store/src/fts/lang.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/mod.rs b/crates/store/src/fts/mod.rs index 9dcbd303..3f3d0b9e 100644 --- a/crates/store/src/fts/mod.rs +++ b/crates/store/src/fts/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/pdf.rs b/crates/store/src/fts/pdf.rs index ff069e00..85386ff6 100644 --- a/crates/store/src/fts/pdf.rs +++ b/crates/store/src/fts/pdf.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/search_snippet.rs b/crates/store/src/fts/search_snippet.rs index bf8d3e68..89c557b1 100644 --- a/crates/store/src/fts/search_snippet.rs +++ b/crates/store/src/fts/search_snippet.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/stemmer.rs b/crates/store/src/fts/stemmer.rs index e9fa8ac8..aa056d22 100644 --- a/crates/store/src/fts/stemmer.rs +++ b/crates/store/src/fts/stemmer.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/term_index.rs b/crates/store/src/fts/term_index.rs index 36f441ff..e2653853 100644 --- a/crates/store/src/fts/term_index.rs +++ b/crates/store/src/fts/term_index.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/tokenizers/chinese.rs b/crates/store/src/fts/tokenizers/chinese.rs index d0db67cd..e741571d 100644 --- a/crates/store/src/fts/tokenizers/chinese.rs +++ b/crates/store/src/fts/tokenizers/chinese.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/tokenizers/indo_european.rs b/crates/store/src/fts/tokenizers/indo_european.rs index 73d39c86..e1f34ce6 100644 --- a/crates/store/src/fts/tokenizers/indo_european.rs +++ b/crates/store/src/fts/tokenizers/indo_european.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/tokenizers/japanese.rs b/crates/store/src/fts/tokenizers/japanese.rs index b8116bb4..816ba0a3 100644 --- a/crates/store/src/fts/tokenizers/japanese.rs +++ b/crates/store/src/fts/tokenizers/japanese.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/tokenizers/mod.rs b/crates/store/src/fts/tokenizers/mod.rs index 31870a10..3679b2b3 100644 --- a/crates/store/src/fts/tokenizers/mod.rs +++ b/crates/store/src/fts/tokenizers/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/store/src/fts/tokenizers/word.rs b/crates/store/src/fts/tokenizers/word.rs index 085ba9cf..3e50ba1a 100644 --- a/crates/store/src/fts/tokenizers/word.rs +++ b/crates/store/src/fts/tokenizers/word.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/codec/base32_custom.rs b/crates/utils/src/codec/base32_custom.rs index d6cfef8a..5a03580b 100644 --- a/crates/utils/src/codec/base32_custom.rs +++ b/crates/utils/src/codec/base32_custom.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/codec/leb128.rs b/crates/utils/src/codec/leb128.rs index 133c2cfe..447086f8 100644 --- a/crates/utils/src/codec/leb128.rs +++ b/crates/utils/src/codec/leb128.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/config/certificate.rs b/crates/utils/src/config/certificate.rs index 8954261d..959f4904 100644 --- a/crates/utils/src/config/certificate.rs +++ b/crates/utils/src/config/certificate.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/config/listener.rs b/crates/utils/src/config/listener.rs index 72b283de..bb46e371 100644 --- a/crates/utils/src/config/listener.rs +++ b/crates/utils/src/config/listener.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/config/mod.rs b/crates/utils/src/config/mod.rs index 1057bb2f..e3ebe52e 100644 --- a/crates/utils/src/config/mod.rs +++ b/crates/utils/src/config/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/config/parser.rs b/crates/utils/src/config/parser.rs index cfc53bcb..ac54f1df 100644 --- a/crates/utils/src/config/parser.rs +++ b/crates/utils/src/config/parser.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/config/utils.rs b/crates/utils/src/config/utils.rs index 5c9a1ae2..9bf7239d 100644 --- a/crates/utils/src/config/utils.rs +++ b/crates/utils/src/config/utils.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs index 0481294f..a24fe2c0 100644 --- a/crates/utils/src/lib.rs +++ b/crates/utils/src/lib.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/map/bitmap.rs b/crates/utils/src/map/bitmap.rs index 8733a9f0..3cf6e2cb 100644 --- a/crates/utils/src/map/bitmap.rs +++ b/crates/utils/src/map/bitmap.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/map/mod.rs b/crates/utils/src/map/mod.rs index 970c2bee..e457b42f 100644 --- a/crates/utils/src/map/mod.rs +++ b/crates/utils/src/map/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/crates/utils/src/map/vec_map.rs b/crates/utils/src/map/vec_map.rs index ba10fc8c..fdd8eec1 100644 --- a/crates/utils/src/map/vec_map.rs +++ b/crates/utils/src/map/vec_map.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/resources/config/jmap.toml b/resources/config/jmap.toml index 61db0874..48da087e 100644 --- a/resources/config/jmap.toml +++ b/resources/config/jmap.toml @@ -70,6 +70,7 @@ max-results = 5000 account = "1000/1m" authentication = "10/1m" anonymous = "100/1m" +use-forwarded = false [jmap.rate-limit.cache] size = 1024 @@ -155,6 +156,7 @@ max-attempts = 3 [oauth.expiry] user-code = "30m" +auth-code = "10m" token = "1h" refresh-token = "30d" refresh-token-renew = "4d" diff --git a/tests/src/directory/imap.rs b/tests/src/directory/imap.rs index d15f288b..453ecab2 100644 --- a/tests/src/directory/imap.rs +++ b/tests/src/directory/imap.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::sync::Arc; use mail_parser::decoders::base64::base64_decode; diff --git a/tests/src/directory/ldap.rs b/tests/src/directory/ldap.rs index b8690d50..5de83610 100644 --- a/tests/src/directory/ldap.rs +++ b/tests/src/directory/ldap.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::fmt::Debug; use directory::{Principal, Type}; diff --git a/tests/src/directory/mod.rs b/tests/src/directory/mod.rs index 7e3b4ccd..2fbd197b 100644 --- a/tests/src/directory/mod.rs +++ b/tests/src/directory/mod.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + pub mod imap; pub mod ldap; pub mod smtp; diff --git a/tests/src/directory/smtp.rs b/tests/src/directory/smtp.rs index d3de3976..a32831a1 100644 --- a/tests/src/directory/smtp.rs +++ b/tests/src/directory/smtp.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::sync::Arc; use directory::DirectoryError; diff --git a/tests/src/directory/sql.rs b/tests/src/directory/sql.rs index f52d71a0..e84ac897 100644 --- a/tests/src/directory/sql.rs +++ b/tests/src/directory/sql.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use directory::{Directory, Principal, Type}; use mail_send::Credentials; diff --git a/tests/src/imap/acl.rs b/tests/src/imap/acl.rs index 54013d15..0bb5df22 100644 --- a/tests/src/imap/acl.rs +++ b/tests/src/imap/acl.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/append.rs b/tests/src/imap/append.rs index 05550dac..bb856aef 100644 --- a/tests/src/imap/append.rs +++ b/tests/src/imap/append.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/basic.rs b/tests/src/imap/basic.rs index 6694f5e5..e52c86be 100644 --- a/tests/src/imap/basic.rs +++ b/tests/src/imap/basic.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/body_structure.rs b/tests/src/imap/body_structure.rs index 1d789dd7..32bc29c6 100644 --- a/tests/src/imap/body_structure.rs +++ b/tests/src/imap/body_structure.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::fs; use imap::op::fetch::AsImapDataItem; diff --git a/tests/src/imap/condstore.rs b/tests/src/imap/condstore.rs index 43f9aa95..1e5a4f9f 100644 --- a/tests/src/imap/condstore.rs +++ b/tests/src/imap/condstore.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/copy_move.rs b/tests/src/imap/copy_move.rs index 46be2ef2..b599b666 100644 --- a/tests/src/imap/copy_move.rs +++ b/tests/src/imap/copy_move.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/fetch.rs b/tests/src/imap/fetch.rs index 21aa74ab..f4451b30 100644 --- a/tests/src/imap/fetch.rs +++ b/tests/src/imap/fetch.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/idle.rs b/tests/src/imap/idle.rs index 16995611..d141769b 100644 --- a/tests/src/imap/idle.rs +++ b/tests/src/imap/idle.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/mailbox.rs b/tests/src/imap/mailbox.rs index ceab2931..989c4a07 100644 --- a/tests/src/imap/mailbox.rs +++ b/tests/src/imap/mailbox.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/managesieve.rs b/tests/src/imap/managesieve.rs index 597c5d69..13809647 100644 --- a/tests/src/imap/managesieve.rs +++ b/tests/src/imap/managesieve.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/mod.rs b/tests/src/imap/mod.rs index 7084302c..f878224b 100644 --- a/tests/src/imap/mod.rs +++ b/tests/src/imap/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/search.rs b/tests/src/imap/search.rs index c48197e6..40770883 100644 --- a/tests/src/imap/search.rs +++ b/tests/src/imap/search.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/store.rs b/tests/src/imap/store.rs index 882553f5..851f2d56 100644 --- a/tests/src/imap/store.rs +++ b/tests/src/imap/store.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/imap/thread.rs b/tests/src/imap/thread.rs index 5b1339e8..167dedf1 100644 --- a/tests/src/imap/thread.rs +++ b/tests/src/imap/thread.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2020-2022, Stalwart Labs Ltd. * - * This file is part of the Stalwart IMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/auth_acl.rs b/tests/src/jmap/auth_acl.rs index e5959501..ac878ca7 100644 --- a/tests/src/jmap/auth_acl.rs +++ b/tests/src/jmap/auth_acl.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/auth_limits.rs b/tests/src/jmap/auth_limits.rs index a1b35b6d..4f3c7689 100644 --- a/tests/src/jmap/auth_limits.rs +++ b/tests/src/jmap/auth_limits.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/auth_oauth.rs b/tests/src/jmap/auth_oauth.rs index 89e315a2..c75ac660 100644 --- a/tests/src/jmap/auth_oauth.rs +++ b/tests/src/jmap/auth_oauth.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/delivery.rs b/tests/src/jmap/delivery.rs index 1ef0a96a..cab155b8 100644 --- a/tests/src/jmap/delivery.rs +++ b/tests/src/jmap/delivery.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/email_changes.rs b/tests/src/jmap/email_changes.rs index 3308306d..8008748f 100644 --- a/tests/src/jmap/email_changes.rs +++ b/tests/src/jmap/email_changes.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/email_copy.rs b/tests/src/jmap/email_copy.rs index 1da963c1..84cd6a7f 100644 --- a/tests/src/jmap/email_copy.rs +++ b/tests/src/jmap/email_copy.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/email_get.rs b/tests/src/jmap/email_get.rs index f528597c..b5c8c29c 100644 --- a/tests/src/jmap/email_get.rs +++ b/tests/src/jmap/email_get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/email_parse.rs b/tests/src/jmap/email_parse.rs index 4ee45685..ad402e72 100644 --- a/tests/src/jmap/email_parse.rs +++ b/tests/src/jmap/email_parse.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/email_query.rs b/tests/src/jmap/email_query.rs index 57fc84c6..6e865895 100644 --- a/tests/src/jmap/email_query.rs +++ b/tests/src/jmap/email_query.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/email_query_changes.rs b/tests/src/jmap/email_query_changes.rs index 1bb6f09d..fa141a15 100644 --- a/tests/src/jmap/email_query_changes.rs +++ b/tests/src/jmap/email_query_changes.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/email_search_snippet.rs b/tests/src/jmap/email_search_snippet.rs index 0ccd32e5..0cee0800 100644 --- a/tests/src/jmap/email_search_snippet.rs +++ b/tests/src/jmap/email_search_snippet.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/email_set.rs b/tests/src/jmap/email_set.rs index 60f33574..c3b6016b 100644 --- a/tests/src/jmap/email_set.rs +++ b/tests/src/jmap/email_set.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/email_submission.rs b/tests/src/jmap/email_submission.rs index 51f97c72..6cef7fa8 100644 --- a/tests/src/jmap/email_submission.rs +++ b/tests/src/jmap/email_submission.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/event_source.rs b/tests/src/jmap/event_source.rs index 8f3f6630..361f74cf 100644 --- a/tests/src/jmap/event_source.rs +++ b/tests/src/jmap/event_source.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/mailbox.rs b/tests/src/jmap/mailbox.rs index 6d34f1a9..6db4d782 100644 --- a/tests/src/jmap/mailbox.rs +++ b/tests/src/jmap/mailbox.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/mod.rs b/tests/src/jmap/mod.rs index 307d4212..5562ecd3 100644 --- a/tests/src/jmap/mod.rs +++ b/tests/src/jmap/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/push_subscription.rs b/tests/src/jmap/push_subscription.rs index a929714e..70923940 100644 --- a/tests/src/jmap/push_subscription.rs +++ b/tests/src/jmap/push_subscription.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/quota.rs b/tests/src/jmap/quota.rs index 372c5925..5ba41da5 100644 --- a/tests/src/jmap/quota.rs +++ b/tests/src/jmap/quota.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::sync::Arc; use jmap::{blob::upload::DISABLE_UPLOAD_QUOTA, mailbox::INBOX_ID, JMAP}; diff --git a/tests/src/jmap/sieve_script.rs b/tests/src/jmap/sieve_script.rs index dc3b2bbf..af9641b3 100644 --- a/tests/src/jmap/sieve_script.rs +++ b/tests/src/jmap/sieve_script.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/stress_test.rs b/tests/src/jmap/stress_test.rs index e5e2f603..a8dd5740 100644 --- a/tests/src/jmap/stress_test.rs +++ b/tests/src/jmap/stress_test.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/thread_get.rs b/tests/src/jmap/thread_get.rs index a74e4629..cfee8bc9 100644 --- a/tests/src/jmap/thread_get.rs +++ b/tests/src/jmap/thread_get.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/thread_merge.rs b/tests/src/jmap/thread_merge.rs index 8ae1d565..1346be07 100644 --- a/tests/src/jmap/thread_merge.rs +++ b/tests/src/jmap/thread_merge.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/vacation_response.rs b/tests/src/jmap/vacation_response.rs index 2292f889..72c068c7 100644 --- a/tests/src/jmap/vacation_response.rs +++ b/tests/src/jmap/vacation_response.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/jmap/websocket.rs b/tests/src/jmap/websocket.rs index 75064bd1..b8cea703 100644 --- a/tests/src/jmap/websocket.rs +++ b/tests/src/jmap/websocket.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart JMAP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/config.rs b/tests/src/smtp/config.rs index eda2fd2c..de790490 100644 --- a/tests/src/smtp/config.rs +++ b/tests/src/smtp/config.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::{fs, path::PathBuf, sync::Arc, time::Duration}; use tokio::net::TcpSocket; diff --git a/tests/src/smtp/inbound/auth.rs b/tests/src/smtp/inbound/auth.rs index 89d9a420..8cf014d0 100644 --- a/tests/src/smtp/inbound/auth.rs +++ b/tests/src/smtp/inbound/auth.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/basic.rs b/tests/src/smtp/inbound/basic.rs index 3c2d8707..ec88e85e 100644 --- a/tests/src/smtp/inbound/basic.rs +++ b/tests/src/smtp/inbound/basic.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/data.rs b/tests/src/smtp/inbound/data.rs index 0153be85..411cbbed 100644 --- a/tests/src/smtp/inbound/data.rs +++ b/tests/src/smtp/inbound/data.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/dmarc.rs b/tests/src/smtp/inbound/dmarc.rs index 913d598e..d070e294 100644 --- a/tests/src/smtp/inbound/dmarc.rs +++ b/tests/src/smtp/inbound/dmarc.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/dnsrbl.rs b/tests/src/smtp/inbound/dnsrbl.rs index ff10542b..43891d61 100644 --- a/tests/src/smtp/inbound/dnsrbl.rs +++ b/tests/src/smtp/inbound/dnsrbl.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/ehlo.rs b/tests/src/smtp/inbound/ehlo.rs index d052dec3..e787c109 100644 --- a/tests/src/smtp/inbound/ehlo.rs +++ b/tests/src/smtp/inbound/ehlo.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/limits.rs b/tests/src/smtp/inbound/limits.rs index ecfdccd3..b1893d2b 100644 --- a/tests/src/smtp/inbound/limits.rs +++ b/tests/src/smtp/inbound/limits.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/mail.rs b/tests/src/smtp/inbound/mail.rs index a01f8e24..cd42c7b6 100644 --- a/tests/src/smtp/inbound/mail.rs +++ b/tests/src/smtp/inbound/mail.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/mod.rs b/tests/src/smtp/inbound/mod.rs index 1c30f880..2902fac9 100644 --- a/tests/src/smtp/inbound/mod.rs +++ b/tests/src/smtp/inbound/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/rcpt.rs b/tests/src/smtp/inbound/rcpt.rs index f12f8caa..3441f183 100644 --- a/tests/src/smtp/inbound/rcpt.rs +++ b/tests/src/smtp/inbound/rcpt.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/scripts.rs b/tests/src/smtp/inbound/scripts.rs index 8e236344..533eacd6 100644 --- a/tests/src/smtp/inbound/scripts.rs +++ b/tests/src/smtp/inbound/scripts.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/sign.rs b/tests/src/smtp/inbound/sign.rs index 28d30e38..11c70cbe 100644 --- a/tests/src/smtp/inbound/sign.rs +++ b/tests/src/smtp/inbound/sign.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/throttle.rs b/tests/src/smtp/inbound/throttle.rs index 40e69984..8b1954bd 100644 --- a/tests/src/smtp/inbound/throttle.rs +++ b/tests/src/smtp/inbound/throttle.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/inbound/vrfy.rs b/tests/src/smtp/inbound/vrfy.rs index 1af49279..3acbb6bb 100644 --- a/tests/src/smtp/inbound/vrfy.rs +++ b/tests/src/smtp/inbound/vrfy.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/lookup/mod.rs b/tests/src/smtp/lookup/mod.rs index 433fe836..0b098899 100644 --- a/tests/src/smtp/lookup/mod.rs +++ b/tests/src/smtp/lookup/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/lookup/sql.rs b/tests/src/smtp/lookup/sql.rs index a0e955f1..6efe9d3c 100644 --- a/tests/src/smtp/lookup/sql.rs +++ b/tests/src/smtp/lookup/sql.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/lookup/utils.rs b/tests/src/smtp/lookup/utils.rs index ce2d1fd0..5bd76478 100644 --- a/tests/src/smtp/lookup/utils.rs +++ b/tests/src/smtp/lookup/utils.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use std::{ net::IpAddr, time::{Duration, Instant}, diff --git a/tests/src/smtp/management/mod.rs b/tests/src/smtp/management/mod.rs index 57076c72..a194cf55 100644 --- a/tests/src/smtp/management/mod.rs +++ b/tests/src/smtp/management/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/management/queue.rs b/tests/src/smtp/management/queue.rs index 6eec9cbe..7db2bd80 100644 --- a/tests/src/smtp/management/queue.rs +++ b/tests/src/smtp/management/queue.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/management/report.rs b/tests/src/smtp/management/report.rs index ce9ff924..be0b6ee6 100644 --- a/tests/src/smtp/management/report.rs +++ b/tests/src/smtp/management/report.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/mod.rs b/tests/src/smtp/mod.rs index 60818abf..b00c790e 100644 --- a/tests/src/smtp/mod.rs +++ b/tests/src/smtp/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/outbound/dane.rs b/tests/src/smtp/outbound/dane.rs index 58fe0eb5..7d4b63f8 100644 --- a/tests/src/smtp/outbound/dane.rs +++ b/tests/src/smtp/outbound/dane.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/outbound/extensions.rs b/tests/src/smtp/outbound/extensions.rs index 0440b31a..364e387d 100644 --- a/tests/src/smtp/outbound/extensions.rs +++ b/tests/src/smtp/outbound/extensions.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/outbound/lmtp.rs b/tests/src/smtp/outbound/lmtp.rs index c1f2bf42..1b5a7870 100644 --- a/tests/src/smtp/outbound/lmtp.rs +++ b/tests/src/smtp/outbound/lmtp.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/outbound/mod.rs b/tests/src/smtp/outbound/mod.rs index d85c30c5..e72973f7 100644 --- a/tests/src/smtp/outbound/mod.rs +++ b/tests/src/smtp/outbound/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/outbound/mta_sts.rs b/tests/src/smtp/outbound/mta_sts.rs index d0bd47aa..5663f870 100644 --- a/tests/src/smtp/outbound/mta_sts.rs +++ b/tests/src/smtp/outbound/mta_sts.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/outbound/smtp.rs b/tests/src/smtp/outbound/smtp.rs index 26833cb8..9766dc34 100644 --- a/tests/src/smtp/outbound/smtp.rs +++ b/tests/src/smtp/outbound/smtp.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/outbound/throttle.rs b/tests/src/smtp/outbound/throttle.rs index 568dfdb7..4bfd46f7 100644 --- a/tests/src/smtp/outbound/throttle.rs +++ b/tests/src/smtp/outbound/throttle.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/queue/dsn.rs b/tests/src/smtp/queue/dsn.rs index e8204730..f1768dad 100644 --- a/tests/src/smtp/queue/dsn.rs +++ b/tests/src/smtp/queue/dsn.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/queue/manager.rs b/tests/src/smtp/queue/manager.rs index 028411e26..3b6ac7f0 100644 --- a/tests/src/smtp/queue/manager.rs +++ b/tests/src/smtp/queue/manager.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/queue/mod.rs b/tests/src/smtp/queue/mod.rs index fdef57ee..c39cd621 100644 --- a/tests/src/smtp/queue/mod.rs +++ b/tests/src/smtp/queue/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/queue/retry.rs b/tests/src/smtp/queue/retry.rs index 07add43d..f6271aab 100644 --- a/tests/src/smtp/queue/retry.rs +++ b/tests/src/smtp/queue/retry.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/queue/serialize.rs b/tests/src/smtp/queue/serialize.rs index 3e9749c4..3bf625d5 100644 --- a/tests/src/smtp/queue/serialize.rs +++ b/tests/src/smtp/queue/serialize.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/reporting/analyze.rs b/tests/src/smtp/reporting/analyze.rs index 5d2ba00e..b2b282b8 100644 --- a/tests/src/smtp/reporting/analyze.rs +++ b/tests/src/smtp/reporting/analyze.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/reporting/dmarc.rs b/tests/src/smtp/reporting/dmarc.rs index 48f295f5..779604b7 100644 --- a/tests/src/smtp/reporting/dmarc.rs +++ b/tests/src/smtp/reporting/dmarc.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/reporting/mod.rs b/tests/src/smtp/reporting/mod.rs index 5cbbeabc..60d0384b 100644 --- a/tests/src/smtp/reporting/mod.rs +++ b/tests/src/smtp/reporting/mod.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/reporting/scheduler.rs b/tests/src/smtp/reporting/scheduler.rs index ca19fefb..179cafaa 100644 --- a/tests/src/smtp/reporting/scheduler.rs +++ b/tests/src/smtp/reporting/scheduler.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/reporting/tls.rs b/tests/src/smtp/reporting/tls.rs index 669cc43c..fb72b8f1 100644 --- a/tests/src/smtp/reporting/tls.rs +++ b/tests/src/smtp/reporting/tls.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/smtp/session.rs b/tests/src/smtp/session.rs index 719440fc..660290ec 100644 --- a/tests/src/smtp/session.rs +++ b/tests/src/smtp/session.rs @@ -1,7 +1,7 @@ /* * Copyright (c) 2023 Stalwart Labs Ltd. * - * This file is part of the Stalwart SMTP Server. + * This file is part of Stalwart Mail Server. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/tests/src/store/blob.rs b/tests/src/store/blob.rs index 3b94ed9c..a2b0e292 100644 --- a/tests/src/store/blob.rs +++ b/tests/src/store/blob.rs @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2023 Stalwart Labs Ltd. + * + * This file is part of Stalwart Mail Server. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * in the LICENSE file at the top-level directory of this distribution. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * You can be released from the requirements of the AGPLv3 license by + * purchasing a commercial license. Please contact licensing@stalw.art + * for more details. +*/ + use store::{write::now, BlobKind, Store}; use utils::config::Config;