Cleanup constants module

This commit is contained in:
link2xt
2023-01-11 23:33:33 +00:00
parent f460043e87
commit f0e900b885
2 changed files with 10 additions and 31 deletions

View File

@@ -4,13 +4,17 @@ use super::Smtp;
use async_smtp::{EmailAddress, Envelope, SendableEmail, Transport};
use crate::config::Config;
use crate::constants::DEFAULT_MAX_SMTP_RCPT_TO;
use crate::context::Context;
use crate::events::EventType;
use std::time::Duration;
pub type Result<T> = std::result::Result<T, Error>;
// if more recipients are needed in SMTP's `RCPT TO:` header, recipient-list is splitted to chunks.
// this does not affect MIME'e `To:` header.
// can be overwritten by the setting `max_smtp_rcpt_to` in provider-db.
pub(crate) const DEFAULT_MAX_SMTP_RCPT_TO: usize = 50;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("Envelope error: {}", _0)]