mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
- introduce and test BccSelf config, to prevent bcc-self on outgoing mails
- introduce context.get_config_int() which respects default values declared in config.rs (Config)
This commit is contained in:
@@ -143,16 +143,11 @@ impl<'a> MimeFactory<'a> {
|
||||
/*******************************************************************************
|
||||
* Render a basic email
|
||||
******************************************************************************/
|
||||
// restrict unsafe to parts, introduce wrapmime helpers where appropriate
|
||||
// XXX restrict unsafe to parts, introduce wrapmime helpers where appropriate
|
||||
pub unsafe fn render(&mut self) -> Result<(), Error> {
|
||||
if self.loaded == Loaded::Nothing || !self.out.is_null() {
|
||||
bail!("Invalid use of mimefactory-object.");
|
||||
}
|
||||
ensure!(
|
||||
!self.recipients_names.is_empty() && !self.recipients_addr.is_empty(),
|
||||
"message has no recipients"
|
||||
);
|
||||
|
||||
let context = &self.context;
|
||||
let from = wrapmime::new_mailbox_list(&self.from_displayname, &self.from_addr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user