mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2024-11-24 06:19:46 +00:00
Azure backend minor fixes
This commit is contained in:
parent
9b4f5e8c75
commit
5a6b191bd4
3 changed files with 211 additions and 225 deletions
422
Cargo.lock
generated
422
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -58,7 +58,7 @@ Key features:
|
|||
- **Greylisting** to temporarily defer unknown senders.
|
||||
- **Spam traps** to set up decoy email addresses that catch and analyze spam.
|
||||
- **Flexible and scalable**:
|
||||
- Pluggable storage backends with **RocksDB**, **FoundationDB**, **PostgreSQL**, **mySQL**, **SQLite**, **S3-Compatible**, **Redis** and **ElasticSearch** support.
|
||||
- Pluggable storage backends with **RocksDB**, **FoundationDB**, **PostgreSQL**, **mySQL**, **SQLite**, **S3-Compatible**, **Azure**, **Redis** and **ElasticSearch** support.
|
||||
- **Clustering** support with node autodiscovery and partition-tolerant failure detection.
|
||||
- Full-text search available in 17 languages.
|
||||
- Sieve scripting language with support for all [registered extensions](https://www.iana.org/assignments/sieve-extensions/sieve-extensions.xhtml).
|
||||
|
|
|
@ -51,7 +51,11 @@ impl AzureStore {
|
|||
_ => {
|
||||
config.new_build_error(
|
||||
prefix.as_str(),
|
||||
format!("Failed to create credentials: exactly one of 'access-key' and 'sas-token' must be specified"));
|
||||
concat!(
|
||||
"Failed to create credentials: exactly one of ",
|
||||
"'access-key' and 'sas-token' must be specified"
|
||||
),
|
||||
);
|
||||
return None;
|
||||
}
|
||||
};
|
||||
|
@ -140,7 +144,7 @@ impl AzureStore {
|
|||
) {
|
||||
Ok(None)
|
||||
} else {
|
||||
Err(trc::StoreEvent::S3Error.reason(e))
|
||||
Err(trc::StoreEvent::AzureError.reason(e))
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -178,7 +182,7 @@ impl AzureStore {
|
|||
) {
|
||||
Ok(false)
|
||||
} else {
|
||||
Err(trc::StoreEvent::S3Error.reason(e))
|
||||
Err(trc::StoreEvent::AzureError.reason(e))
|
||||
}
|
||||
} else {
|
||||
Ok(true)
|
||||
|
@ -200,5 +204,5 @@ impl AzureStore {
|
|||
|
||||
#[inline(always)]
|
||||
fn into_error(err: impl Display) -> trc::Error {
|
||||
trc::StoreEvent::S3Error.reason(err)
|
||||
trc::StoreEvent::AzureError.reason(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue