Skip to content

Commit

Permalink
v0.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Oct 17, 2023
1 parent d448ac6 commit 30092ce
Show file tree
Hide file tree
Showing 29 changed files with 1,215 additions and 95 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).

## [0.x.x] - 2023-xx-xx
## [0.3.10] - 2023-10-17

## Added
- Option to allow invalid certificates on outbound SMTP connections.
Expand All @@ -13,7 +13,6 @@ All notable changes to this project will be documented in this file. This projec

### Fixed


## [0.3.9] - 2023-10-07

## Added
Expand Down
82 changes: 41 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Stalwart Labs Ltd. <[email protected]>"]
license = "AGPL-3.0-only"
repository = "https://github.com/stalwartlabs/cli"
homepage = "https://github.com/stalwartlabs/cli"
version = "0.3.9"
version = "0.3.10"
edition = "2021"
readme = "README.md"
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion crates/imap/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "imap"
version = "0.3.9"
version = "0.3.10"
edition = "2021"
resolver = "2"

Expand Down
2 changes: 1 addition & 1 deletion crates/install/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Stalwart Labs Ltd. <[email protected]>"]
license = "AGPL-3.0-only"
repository = "https://github.com/stalwartlabs/mail-server"
homepage = "https://github.com/stalwartlabs/mail-server"
version = "0.3.9"
version = "0.3.10"
edition = "2021"
readme = "README.md"
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion crates/jmap/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jmap"
version = "0.3.9"
version = "0.3.10"
edition = "2021"
resolver = "2"

Expand Down
2 changes: 1 addition & 1 deletion crates/main/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage = "https://stalw.art"
keywords = ["imap", "jmap", "smtp", "email", "mail", "server"]
categories = ["email"]
license = "AGPL-3.0-only"
version = "0.3.9"
version = "0.3.10"
edition = "2021"
resolver = "2"

Expand Down
2 changes: 1 addition & 1 deletion crates/nlp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nlp"
version = "0.3.9"
version = "0.3.10"
edition = "2021"
resolver = "2"

Expand Down
2 changes: 1 addition & 1 deletion crates/smtp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage = "https://stalw.art/smtp"
keywords = ["smtp", "email", "mail", "server"]
categories = ["email"]
license = "AGPL-3.0-only"
version = "0.3.9"
version = "0.3.10"
edition = "2021"
resolver = "2"

Expand Down
9 changes: 1 addition & 8 deletions crates/smtp/src/config/scripts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

use std::time::Duration;

use nlp::bayes::{cache::BayesTokenCache, BayesClassifier};
use nlp::bayes::cache::BayesTokenCache;
use sieve::{compiler::grammar::Capability, Compiler, Runtime};

use crate::{
Expand All @@ -44,7 +44,6 @@ pub trait ConfigSieve {
#[derive(Default)]
pub struct SieveContext {
pub psl: PublicSuffix,
pub bayes_classify: BayesClassifier,
pub bayes_cache: BayesTokenCache,
}

Expand All @@ -54,12 +53,6 @@ impl ConfigSieve for Config {
let mut fnc_map = register_functions().register_plugins();
let sieve_ctx = SieveContext {
psl: self.parse_public_suffix()?,
bayes_classify: BayesClassifier {
min_token_hits: self.property_or_static("bayes.min-token-hits", "2")?,
min_tokens: self.property_or_static("bayes.min-tokens", "11")?,
min_prob_strength: self.property_or_static("bayes.min-prob-strength", "0.05")?,
min_learns: self.property_or_static("bayes.min-learns", "200")?,
},
bayes_cache: BayesTokenCache::new(
self.property_or_static("bayes.cache.capacity", "8192")?,
self.property_or_static("bayes.cache.ttl.positive", "1h")?,
Expand Down
Loading

0 comments on commit 30092ce

Please sign in to comment.